PureBytes Links
Trading Reference Links
|
Gordon,
As well as the excellent code already posted you can use the TradeSim
ExtFml as shown below. It has no PREV statements in it so is very
fast when testing with TradeSim.
If you need more info you should look at the TradeSim Application
Note 2 - Implementing Volatility Stops the Simple Way.
regards
Steve
Period:=Input("Period",2,50,7);
ARC:=Input("Average Range Constant",0.5,10,3);
Volatility:=ARC*ATR(Period);
{ Trailing Stop Indicator on the Long side}
stop:=ExtFml( "TradeSim.TrailingStop",
BAND, {mode 1=indicator;2=binary trigger}
LONG, {long or short}
Volatility, {user defined see variable above}
HIGH, {RefPoint for stop calc}
CLOSE); {threshold point - stop breached}
stop
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/sO0ANB/LIdGAA/ySSFAA/BefplB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|