Trade one currency pair at a time multi-currency
-
Hi, Trying to figure if I have a multi-currency ea, how to trade one pair at a time. Ex. Trade for EURUSD is opened, only open trades fro EURUSD for a certain period of time. Then reset for next trading session which next trade could be maybe USDCAD, etc.. thanks
-
@hjmr You will need a globat 'set current market' block on top and then different condition blocks specifying what symbols can do this or that:

-
@l-andorrà Thank you very much for always showing interest and trying to help. I appreciate your suggestion, the only detail is that it would be for more than two currency pairs. It could be at least 10 to 20 pairs trading in a multicurrency ea, so whichever pair signals first during the time period, that would be the only pair opening trades. Then reset, time period starts again, a different currency pair may get an entry signal.
Haven't sat down yet, but I'm thinking maybe using a flag to change if I can manage to store in a variable the currency pair of the first entry signal. If the flag is false then trades of others currency pairs will not open trades during time period. Reset flag to true at end of time period. Let see if it works. For sure you may have a better solution, I'm just learning little by little. thanks again.
-
@hjmr Using flags is an option but you will need to specify single symbols one way or the another. Just try both options and let me know.