I want to an EA that will open a buy position on the eurusd on the same time that it opens a buy position for an equal amount on the usdchf, no specific conditions for opening, and then close both positions when collectively there is a profit because one position,either the eurusd or usdchf has a larger positive profit than the other and I want the profit amount to be editable either in terms of pips or money.
I was able to get as far as creating an EA to open the positions and even to close them but the step for getting it to recognize the profit according to my conditions does not seem to work can anyone help me here