View Single Post
  #11 (permalink)  
Old 03-15-2006, 10:24 PM
RedJack RedJack is offline
Member
 
Join Date: Mar 2006
Posts: 49
RedJack is on a distinguished road
Quote:
Originally Posted by FXJJ
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
Ok lets see if this helps

Jack..
Reply With Quote