the problem is, I want to open order when my indicator gives signal. How can I do that?
I have been trying to do with iCustom()
but it is not satisfying.
I tried to use GlobalVariableSet()
in indicator and GlobalVariableGet()
method in EA but it is not properly worked.
Please help.
The syntax is:
Here is the example using custom Alligator indicator (which should be available by default as
Alligator.mq4
in MT platform).where
13, 8, 8, 5, 5, 3
are corresponding input parameters of custom Alligator as defined in indicator it-self:and
mode
is the corresponding line index as defined in the indicator by: