How to access the trades made by same EA on another chart
-
I have an EA which I run on several charts. I want to ensure that I do not get into trades with same currency. For instance when there is a EURUSD trade I dont want to enter into another trade which is GBPUSD. How can EA running on GPBUSD chart know if EURUSD chart has a trade? (Assuming same EA is run on both charts on the same account). Is there a way to see running trades on the other charts?
-
Do you want a total number of trades to be 1?
Or only 1 trade for *USD?
and i assume then also 1 trade for *EUR / *GBP etc etc -
trades aren't saved by chart but they are saved by account.
each trade started by an EA has a "magic number" so the program can somehow sort which trade was started by which EA.
leave the magic number the same on both charts.
and if you always want to have only 1 trade make a block like this

if you're using multiple trades and want for different trades to affect different trades put the same group number to those trades.
if you want only 1 trade active on your account then leave it empty
(changing the group number will increase the magic number by the group number. that way the client can know with which trade to interact)
put symbol to any symbol and the block will check all running trades on your account on any symbol, check for their magic number and if there's no trade running the block will proceed (orange path) -
@spuzy Great. This is exactly what I wanted to know