i have problem with groups
-
i read a lot about groups but i still don't understand or how could i create / identify groups
or how can i divide my project into groups
thank u -
It depends on what you want. I usually use it to distinguish two different ways to open trades on the same EA. I then separate conditions dependong on each group. What do you exactly need?
-
@l-andorrà how i separate my project into several groups ??
-
You need to create separate threads for each group as in this example:
https://fxdreema.com/shared/pbOdy79D
You need to 'envelope' all conditions applying to a same group with a block specifying its number on top and bottom of that thread. Same for groups defining closing trades.
-
Only do that if you want to have something like 2 (or more) different strategies in the same EA. Like 2-in-1. But remember that it is still one EA and if the strategies are completely different, it's better to just make two separate EAs.
Otherwise... imagine that you have 2 different groups of blocks that are separate - one for the first strategy and one for the second. In all blocks in the second groups of blocks where you have Group, you should set it to 2 for example. Such blocks are "No trade", "Buy now" and basically all these blocks who are working with trades or pending orders.
The EA will have one master magic number (it's the MagicStart parameter of the EA) and where you have Group number that is different than 0 (empty value), the magic number will equal to MagicStart + Group.