MT4 EA
Dear friend<
try to put a Deals Counter filter ..
best luck
If you need help then show your code and explain in more detail.
-
Please edit your (original) post and use the CODE button (or Alt+S)! (For large amounts of code, attach it.)
General rules and best pratices of the Forum. - General - MQL5 programming forum (2019)
Messages Editor -
if(iMA(s2, PERIOD_CURRENT, 50, 0, MODE_SMA, PRICE_CLOSE, 0) > (s2, PERIOD_CURRENT, 200, 0, MODE_SMA, PRICE_CLOSE, 0) //Moving Average > Moving Average
Do not post code that will not even compile.
-
Please edit your (original) post and use the CODE button (or Alt+S)! (For large amounts of code, attach it.)
General rules and best pratices of the Forum. - General - MQL5 programming forum (2019)
Messages Editor - Do not post code that will not even compile.
- Repeat!
Please edit your post and use the "</>" icon or Alt-S to post your code properly, otherwise it's difficult to read, especially with the double line white-space (so clean it up).
Alternatively given that it is quite long, attach it as a file instead. - Repeat!
If you want us to analyse it properly, then make sure it can compile. This is important even if it is just an example.

Hi all,
My mt4 ea is based on 1minute timeframe based on moving average but it opens and closes trade every minute and keeps on repeating. How do I fix this problem ? Please help is needed. I have used function such as max open trade, max long trade, max short trade, max pending trade etc, but I can't seem to find out the problem.