Basic Entry for EA

 

Hello,

I have been writing very basic stuff, and from this code I don't understand why not all the candles are accounted for. It should be the case that each candle is a new trade, but yet there are some gaps in dates aside from the weekend (according to my trade history and the visualization it is obvious that candles have been missed. Also, it is obvious that a candle is never equal to the moving average (it is way above, yet no trade for some reason).



Any help would be epic!


bool maBullish = mrate[1].close > MA1Val[1];
bool maBearish = mrate[1].close < MA1Val[1];
 
It appears that it has something to deal with the real ticks vs every tick settings.
 
Westie30:

Hello,

I have been writing very basic stuff, and from this code I don't understand why not all the candles are accounted for. It should be the case that each candle is a new trade, but yet there are some gaps in dates aside from the weekend (according to my trade history and the visualization it is obvious that candles have been missed. Also, it is obvious that a candle is never equal to the moving average (it is way above, yet no trade for some reason).



Any help would be epic!


It is hard to see because we don't know what `mrate` and `MA1Val` are  .

Reason: