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

Re: Donchian channels Indicator formula



PureBytes Links

Trading Reference Links

It was pointed out to me privately that I missed other errors. The code 
below verifies in TS4. BTW, TS has canned code for several channel breakout 
systems posted circa 1992.

Bill Wynne

Bill@xxxxxxxxxxxxxxx


Input: LEntryL(20), SEntryL(20), LExitL(10), SExitL(10);

If Currentbar >1 and Close > Highest(High,LEntryL)[1] Then Buy on Close;
If Currentbar >1 and Close < Lowest(Low,SEntryL)[1] Then Sell on Close;
ExitLong Lowest(Low, LExitL) stop;
ExitShort Highest(High, LExitL) stop;