bool ExistGBPJPYPosition() { for (int i=0; i<OrdersTotal(); i++) { if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES)) { if (OrderSymbol()=="GBPJPY" && OrderMagicNumber()==MagicNo) { return(True); } } } return(false); }This is the main code you need. You have to do minor changes to fit your code/need !.
Osama Shaban:
This is the main code you need. You have to do minor changes to fit your code/need !.
Thank you, it's working
This is the main code you need. You have to do minor changes to fit your code/need !.
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