Please I am a newbie in coding. I am trying to write a code for my EA to only take two trade. And I am confuse on how to write it. The books says OrderTotal returns the total number of open trade on a chart.
Can I write.
if ( Total ==OrderTotal) Total=<2
For (I= 0 ; I=<OrderTotal ; I++)
iMA= argument for moving average.
- How to get the total number of opened orders and select them in MQL4?
- Count number of oders
- Limit Opening Orders per Pair

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