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

[amibroker] Set Stop for Low of Trade Bar



PureBytes Links

Trading Reference Links

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 --------------------~--> 
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/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/