Order ID
-
Hi, im trying to make an EA that uses multiple different entry and exit strategies. So like a portfolio of several strategies combined in one ea.
For example:
strategy one buys when rsi goes above 50 and closes when rsi hits 70.
Strategy 2 buys when macd signal crosses above main line and closes when main line crosses below signal line.How can i create an order id for each strategy, so that the close condition of strategy 1 does not close trades opened by strategy 2 and vice verca.
Thanks
-
@piptheripper You need to define as many different groups as strategies. You will find the way to create them here:
https://fxdreema.com/instructions/builder/groups-and-magic-numbers
-
Thanks, appreciate it.
I tried using the group function, but i must do it wrong. The EA only opens trades from group 2 now. On the screenshot you can see i have two strategies (group 1 and 2).
For each "no trade, "sell now", "if trade" and "close trade" i have specified the group (1 and 2), but somehow its not working. Can you see what im doing wrong? Cheers

-
@piptheripper Can you please share the link to the project?
-
sorry, my bad, its actually working fine. The issue was one of the conditions in one of the groups did never take place.. Thanks
-
@piptheripper You're welcome.