OrderMagicNumber() != ORDER_MAGIC || OrderComment() != ORDER_COMMENT ||
These are enums, not only that, they are MQL5 enums!
They have no place in your code.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
hi everyone
so here is the problem
I wrote a Multi Time Frame EA that can open orders in any time frame
but the problem is my code wanted to tell EA check if any order was opened before
if not Send Order ()
if there is order already : check how many second has passed since last order open time then after
a 900 or 3600 second you can open another position
so here is the code
but the problem is ea does not follow the rules and open too many position