View Single Post
  #10 (permalink)  
Old 03-15-2006, 09:38 PM
FXJJ FXJJ is offline
Junior Member
 
Join Date: Feb 2006
Posts: 10
FXJJ is on a distinguished road
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.
Reply With Quote