How do I build this EA
-
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
-
I can see your EA and I can tell you what doesn't look good with it.
First, take a look at this, because some of your blocks have no chance to run and they need to be disconnected from the Buy blocks: https://fxdreema.com/tutorial/builder/things-not-to-do#2
I see you have "No trade" at the top, which would pass if there is no trade from the current symbol. But since you either have 0 or 2 trades at a time, this is not a problem... but could be a problem if you plan to be able to have only 1 trade from symbol that is not the current. So take a look at this:

Bucket blocks can work... but better connect them one after another and disconnect them from the Buy blocks. I don't think that what you ask for in "Condition" is good. The chance is that in all times the profits from both trades are different, even with one cent, so basically the block will always pass and is useless. I think you want to add something like "+10" in the Adjust field of one of both sides, so you can check if the profit of one trade is bigger that the other with 10 (dollars). And another similar Condition for the opposite case.