[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: Set Stop for Low of Trade Bar



PureBytes Links

Trading Reference Links

Many thanks Bob, Graham & Stephane - that valuewhen function fits the 
bill perfectly. (I'll need some time to digest the code you sent 
Stephane - some intersting ideas ! )

Best regards,

Dean H.





--- In amibroker@xxxxxxxxxxxxxxx, "Dean Hodgins" <deanhodgins@xxxx> 
wrote:
> There must be a way of setting a stop to equal the low of the bar 
at 
> which a trade signal is given but I can't quite figure out how to 
put 
> the AFL functions together to achieve this.
> 
> I'm using    "Short = ExRem(Short,Cover);"  to restrict the 
> number of trade signals given and a normal applystop function that
> limits uses a 1% stop loss:
> 
> ApplyStop(stopTypeLoss,stopModePercent, 
>          Optimize( "Stop Loss ", 1, 1, 2, 1 ), 
>          True ); 
>  
> How would I set the loss at the value of the high of the bar at 
which 
> the short signal was generated. (or reverse for a buy)
> 
>   
> As Always - thanks for any suggestions or pointers.
> 
> 
> Regards to all
> 
> 
> Dean Hodgins





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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 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/

<*> 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/