Forum

array out of range when coding MACD

I want to simultaneously use TEMA and MACD indicator to open/close position. But my EA always got " array out of range " error in my MACD code part. //+------------------------------------------------------------------+ //| TEMA+MACD testEA.mq5 |

Why my MACD has two buffers?

I want to put TEMA and MACD together to use. But my code did not work well. //+------------------------------------------------------------------+ //| TEMA+MACD testEA.mq5 | //+------------------------------------------------------------------+ #include

The reason of this order sent by my first EA?

Today my first EA sent its first order, which was at the place of the blue arrow, Buy order EURUSD @1.08420. What I confused is, why my EA sent this two order? The design logic of this EA is, when MA35 crossed MA20, the buy order can be send. But as I can see from picture, there is no any MA cross