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

EL Help



PureBytes Links

Trading Reference Links

Have created and verified following function to give an entry signal, that
the moving average is rising over 20 days and the close is above it

IF   (XAverage(close,50 ) - XAverage(close,50 )[20]) > 0
       and Close > XAverage(close,50 ) 
       then
       Test01= True

When I write a system and use this function it does not show entries only
when the moving average is rising but also when moving average is falling

{ LONG ENTRY  }
IF CurrentBar >1 and MarketPosition = 0 then begin
 	IF Test01= true
		then buy at high + 1 stop;				                                           
                     
end;

Strange thing is it seems to work on some stocks


Mel F
melsmail@xxxxxxxxxxx