PureBytes Links
Trading Reference Links
|
Louis
from a previous recent post by TJ
> Hello,
> ApplyStop( StopTypeNBar, stopTypeBars, IIF( Buy, 10, 5 ) );
> Best regards,
> Tomasz Janeczko
> amibroker.com
and from the help files
/amount/ =
percent/point loss/profit trigger/risk amount.
This could be a number (static stop level) or an array (dynamic stop level)
So you should be OK with
amount = IIf( Close < 10, 10,
IIf(Close > 50, 2.5, 5));
ApplyStop(stopTypeLoss,stopModePercent,amount);
Have not tested this.
Regards
ChrisB
louisprefontaine wrote:
>
> Ok I got an easier question and I hope I'll be clear at first! ;-)
>
> I already use the stop/loss option at 10% stop. But I'd like to have
> a changing stop:
>
> Example:
>
> Close<10 // I'd like a stop of 10%
> Close>10 AND Close<35 //I'd like a stop of 5%
> Close>50 // I'd like a stop of 2.5%
>
> I think you get the idea.
>
> Is there any way to do this?
>
> Thanks again for reading and helping! I hope I'll be good enough soon
> to help others too! ;-)
>
> Louis
>
>
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|