No trade on multiple EAs
-
Hello, I have muliple EAs running on the same pair, all with a 'No trade' condition so that there's only 1 open trade at a time. With this setup, will any of the EA 'detect' an open trade made by the other EA and not open a trade even if condition is met? My EAs are on the same pair, different timeframes. Thank you!
-
@tanjiayi1 If they have same magic number the other instances will recognize the trades on the symbol they are attached at. If you use the same EA, try to set magic number by yourself with the logic base number + timeframe in minutes.
Exapmle:
Base: 10000
M1: 10001
M5: 10005
... and so on.However, you need to implement the logic by yourself.
-
@trader-philipps thanks for your advice! Right now they all have different magic numbers. Does it mean that if I only want 1 open trade at a time for the pair (across all the timeframes which the EAs are running one), I should set the same magic number for all these EAs?
-
@tanjiayi1 Well, that't not what I would recommend to do, but if your EAs check if there is a trade open, yes, that's a way to do it.