{ TR Test1 Mike Bryant Breakout Futures Copyright 2002 } Input: StopPts (10); { Size of money management stop, points } Var: TR (0); { True Range } TR = TrueRange; {Condition1 = TR < TR[1] and TR < TR[2];} Condition1 = true; Condition2 = C > C[14] and C < C[2]; {Condition2 = C < C[2];} Condition3 = C < C[14] and C > C[2]; {Condition3 = C > C[2];} If Condition1 and Condition2 then Buy next bar at Highest(H, 2) stop; If Condition1 and Condition3 then Sell short next bar at Lowest(L, 2) stop; If MarketPosition = 1 and C > EntryPrice and BarsSinceEntry >= 1 then Sell this bar at close; If MarketPosition = -1 and C < EntryPrice and BarsSinceEntry >= 1 then Buy to cover this bar at close; If MarketPosition = 1 then Sell next bar at EntryPrice - StopPts stop; If MarketPosition = -1 then Buy to Cover next bar at EntryPrice + StopPts stop;