How to create block for different strategies inside same EA?
-
Hi, it is unclear to me how to create different buy/sell orders related to different entries inside same project.
If I just create different entries they don't work
image url) -
@alex81 Just put a buy/sell beneath the conditions as you have above, you can do this as many times as you like, use a bool condition to switch on/off in inputs if you want to limit what EA can do.
-
@jstap as I did above it doesn't work. Instead if I create 3 different EAs they work with just one buy and one sell. What am I missing?
-
@alex81 I am unsure, put a shared link here and I'll have a look
-
@alex81 The most efficient way is using groups. Each set of conditions can be defined under a different groups. That way trades can be managed in fifferent ways too.
https://fxdreema.com/instructions/builder/groups-and-magic-numbers
-
@l-andorrà said in How to create block for different strategies inside same EA?:
@alex81 The most efficient way is using groups. Each set of conditions can be defined under a different groups. That way trades can be managed in fifferent ways too.
https://fxdreema.com/instructions/builder/groups-and-magic-numbers
that's my issue, how do we create blocks? The instructions are unclear to me...
-
@alex81 You need to create separate block trees for evey different group/entry. Each with a 'high' position block definiting the origin of group condition and finally with a 'low' position buy/sell now block like this:
