Crosstalk between pairs on EA
-
The EA I've built is designed to close trades that are already open as the MacD line crosses the signal line. The one I've provided closes "buy" trades (there is another that closes "sell" trades).
The problem I'm having is with cross talk. When a trade on one pair closes as designed, other trade pairs are also closed even when the criteria for closing is not met.
I've individualized the EA for pairs as much as I can determine, but still get this cross talk. What could I be missing? If I have to build a separate EA for each and every pair, I'll do so if MT4 will hold them all. -
close trade closes everything, as you have noted. In my opinion you can use under "controlling blocks tab" Set "current market" and use it as a variable for each pair.
When loaded on each pair, you will need to ensure you set the correct pair.
-
Instead of specifying each symbol, you can create as many different group numbers as symbols. For example, blocks 1 and 3 can be given group number 1, blocks 6 and 6,group number 2 and so on. That way every 'close trades2 block will close those belonging to their group only.