exchange related pair
-
hello I would like the ea when it opens a position on a currency opens it at the same time also on a correlated pair
-
@cristall86 just replicate the trade on whatever pair it is
-
@cristall86 You can specify what pairs are supposed to be open on the 'Symbol' box within many blocks. However, you will need to be very specific and I guess this is not exactñy what you want. Right?
-
@l-andorrà although I have never done it you could get the market name of the trade just placed a pink for each trade block-modify variables block with a loop, then use this to select a certain set of blocks starting with a set current market block to place trades on all correlating markets. To have this list dynamic is a lot more difficult, if you find an indicator that tells you currently correlating markets this is likely possible.
-
@jstap Agreed. An indicator should do this more easily.
-
@l-andorrà i want cha when my EA when it opens a long trade in EURUSD it also opens long in EURJPY
-
@cristall86 Then you can run your EA on the EURUSD chart and do this:

-
@l-andorrà thanks perfect, if I want to change the currency in input?
-
@cristall86 You need to create a string type Constant and then embed it into the appropriate box.