nigeleyre:
I am running an EA on 3 different currency pairs.
Can I use (OrdersTotal() ==0) to tell me that there are no open trades on any of the pairs or will it just apply to the pair on which it is operating?
I want to be able to tell the EA for each of the pairs to stop trading if the profit level is above say 5% and there are no open trades.
or is there a better way of doing this.
I just want to be able to interogate the trades tab and tell the EA if there are no open trades on any pair??
Many thanks.
I believe it will tell you of the open and pending trades within the context of the account. So will not be symbol specific.
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 am running an EA on 3 different currency pairs.
Can I use (OrdersTotal() ==0) to tell me that there are no open trades on any of the pairs or will it just apply to the pair on which it is operating?
I want to be able to tell the EA for each of the pairs to stop trading if the profit level is above say 5% and there are no open trades.
or is there a better way of doing this.
I just want to be able to interogate the trades tab and tell the EA if there are no open trades on any pair??
Many thanks.