If position block
-
Hi guys, can anyone tell me if the "if position" block is using magic number to differentiate orders, or how else the block differntiates between orders? I would like to run multiple instances of the same EA on the same symbol from the same mt5 terminal and also same timeframe.
I use the "if position" block to modify things like stop loss and takeprofit etc. If I use the EA on the same symbol and timeframe, on the same account and from the same mt5 terminal, will the two instances of the EA interfere with each other and modify the positions back and forth?
-
@piptheripper The group number you have in blocks will take care of this, the group number is added to the magic number, so if magic is 1111, group for specific trade is 1, then for these trades only the magic number becomes 1112.
-
@piptheripper You'll find useful info here:
https://fxdreema.com/instructions/builder/groups-and-magic-numbers
-
Thank you guys, much appreciated!
I guess that using a text as a group id is not a good idea then? I have sometimes used group id's such as buy or sell etc..
-
@piptheripper I have never tried, but as it adds to magic I doubt it would work.
-
@jstap THANKS!