Hello,
I have an EA that runs in the same time on two different charts with two different pairs.
Could it be that OrderSelect() in one instance also selects the order for the second instance?
Because checking my logs it seems that sometimes the EA attached to EURUSD is trying to manage the order opened by the EA attached to USDJPY while this shoudnt be the case. At the start() of the EA I am using OrderSelect() to select the order to be managed considering the Symbol where the EA is attached. So I dont know if this is the case or I have to check for bugs...
Thanks!
I have an EA that runs in the same time on two different charts with two different pairs.
Could it be that OrderSelect() in one instance also selects the order for the second instance?
Because checking my logs it seems that sometimes the EA attached to EURUSD is trying to manage the order opened by the EA attached to USDJPY while this shoudnt be the case. At the start() of the EA I am using OrderSelect() to select the order to be managed considering the Symbol where the EA is attached. So I dont know if this is the case or I have to check for bugs...
Thanks!
Trading = a mirror to your human flaws. Fix them or be fixed.