Inputs: Multi(1), lookbak(10), ECpct(.85), Closetime(1300);
Vars: TRange(0), Hptr(0), Lptr(0);
TRange=truehigh-truelow;
Condition1=TrueRange>(average(truerange, lookbak)*multi);
Condition2=C>((Trange*ECpct)+truelow);
Condition3=C<(truehigh-(Trange*ECpct));
If Condition1 and (condition2 or condition3) and time>=Closetime then begin
Plot1(High,"high");
Plot2(Low,"low");
End;