
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, i was looking throught the forum traying to find aswers to my question but found nothing.
Im pretty new to MQL but trying my best.
Well, the question is I have this code but it only opens one buy position. I would like to have second set of code to open one sell position based on different rule.
I need to basicaly use the OrdersTotal for only open buy positions and then use different OdersTotal for sell postions so then i can control how many trades i can open for either buy or sell.
If I just say total < 2 then it might open two same direction position which i dont want.
Any tips on how to code that?