Jackery: I'll be putting my EA on several pairs at the same time which is something I'm doing for the first time. Usually with one pair its quite easy to manage using a check for Now I want to make sure that not more than one trade is taken per pair when trading with multiple pairs. How can this be done?
- Check the position's symbol
- Use and check the position's magic number.
Returns the symbol corresponding to the open position
Returns the requested property of an open position (datetime or int)
POSITION_MAGIC
Position magic number (see ORDER_MAGIC)
long
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
I'll be putting my EA on several pairs at the same time which is something I'm doing for the first time. Usually with one pair its quite easy to manage using a check for
PositionsTotal()
Now I want to make sure that not more than one trade is taken per pair when trading with multiple pairs. How can this be done?