|
EW TREND
inputs: period(numeric),trigger(numeric);
vars trend(0), osc(0);
osc = EWO
if osc = @highest(osc,period) and trend = 0 then trend = 1
if osc = @lowest(osc-period) and trend = 0 then trend = -1
if @lowest(osc,period) < 0 and trend = -1 and osc < and trend -1 and
osc > -1*trigger*lowest(osc,period) then trend = -1
vice versa for highest
EWTREND=trend;
this might help
Last edited by FXJJ; 03-15-2006 at 09:46 PM.
|