'******************************** ' Simple Channel Breakout System ' TradersStudio(r) 2004-2007 , All rights reserved Sub CHANBREAKOUTProtectStop (SLen,ProStop) Dim MinMove MinMove=GetActiveMinMove() Buy("ChanBuy",1,Highest(High,SLen,0)+MinMove ,STOP,DAY) Sell("ChanSell",1,Lowest(Low,SLen,0)-MinMove,STOP,DAY) protectivedollarstop("",ProStop,1) End Sub
Here an example. The first argument is the signal to exit, "" means all. It not the signal name these are prenamed so they can be identified as dollar stops. |