How to add option to turn ON-OFF MA's
-
Hello friends. I need your help. I am working on a project which have several MA's. And in the tests I want to have the turning ON-OFF MA's. this option is make it able to use one project instead of hundreds. and this is why I need you to help me.
I am new and don't now everything.
Many thanks those who help me.
-
Do you mean you should choose any combination of MAs to be used at will, right? So for example if you are using a maximum of 3 MAs (A, B and C) you should be able to choose any of these options.
- A alone.
- B alone.
- C alone.
- A, B and C combined.
- A. and B combined.
- A and C combined.
- B and C combined.
Is that what you want?
-
@l'andorrà
Thank you for the message.
But that's not what I mean. I will give an example.
I have MA's A, B, C, D and I want to be able to change it in the settings and have an option true/false for every single individual MA and the MA not be used if it is false.
I will give a nother example:
A = true,
B = false,
C = true,
D = true
or
A = false,
B = false,
C = true,
D = true
and other mixez. -
You can do that by using 'turn on/off' blocks depending on the option selected. However, you will have to build as many separate block trees as potential combinations of MAs selectable. That's a complex structure to build. Are you familiar with those blocks?
-
@l'andorrà
Thank you for the message.
Unfortunately don't know this option and have a wanting can you add a screenshot how it is supposed to look. -
@OM-Re This is the basic structure:
https://fxdreema.com/shared/dPYX3VlK
Please notice there are blocks on two tabs, on init and on tick. The first two block trees on the on init tab are activating indicators individually on the on tick tab.The third block tree is activating a combination of the two. Please notice all blocks on top of the block trees on the on tick tab are 'OFF' (surrounded by a red line).
You will have to build as many different structures as possible combinations of indicators you need.