jcalow:
Could someone please have a quick look down the code and let me know which part is limiting this. I believe that it could be the check position section. Many thanks.
I think you are correct . .
//Check position bool IsTrade = False; for (int i = 0; i < Total; i ++) { OrderSelect(i, SELECT_BY_POS, MODE_TRADES); if(OrderType() <= OP_SELL && OrderSymbol() == Symbol()) { // IsTrade = True; <------------ comment out this line . . . . but probably not a good idea on it's own
. . . you can remove it by simply commenting out that line. As a result you will probably get more than one order being placed . . . you will probably get many.
The issue you have here is that the code has been designed in a particular way, your make a change that was never really catered for and the consequences go beyond what you intended. Try it on the Strategy tester and see what happens . . .

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
Below is an EA that I am using as a template to build an EA for a system that I use. I am not an experienced programmer and I am hoping this project will allow me to build my knowledge of mql4. The below code is working well however I am stuck on one small part. This EA will currently only have one trade open at a time. I would like simultaneous trades to be possible. Could someone please have a quick look down the code and let me know which part is limiting this. I believe that it could be the check position section. Many thanks.