Hello,

Thanks for all that can help.

My moving average crossover algorithm is ordering at random times.

It is supposed to buy as 20 day ema passes over 200 day ema( 5 minutes consolidators for each).

However, it orders at times not warranted:

Order # 1 BUY: 2019-12-23 09:40:00 : [200 EMA = 43.46] [ 20EMA = 44.17](this one is kinda ok)

Order # 2 SELL :2019-12-23 15:45:00 : [200 EMA = 44.52] [ 20 EMA = 45.47] 

Order # 3: ok

Order # 4 SELL: 2019-12-26 11:50:00 : EMA200 =  45.97--- EMA20=46.87

Order # 5 BUY: 2019-12-26 13:45:00 : EMA200 = 46.01.   EMA20 = 46.25

 

As you can see these are totally random.

 

Any and all help is appreciated!