Hello,
New to programming MT4 and am struggling on the declaring my variables.
What I want to do is have an external input for 2 simple moving averages, then compare them to one another, if I get a long signal, I want an up arrow and if a short sognal a down arrow (of course).
When I go to compile, I get an error that I have not defined the the MA's correctly. My syntax is messed up or it could be in my IF statement as an example for my fast moving average = F_MA and I have a statement (F_MA(2) < F_MA(1))...what I am trying to do there, is if the fast ma of 2 bars ago is less than the last fast ma bar ect...I could be completely off there also...
I have been searching for other indicators that I can look at and see what I am doing wrong and am not seeing anything as basic as what I want to do...any thoughts or directions would be appreciated.
New to programming MT4 and am struggling on the declaring my variables.
What I want to do is have an external input for 2 simple moving averages, then compare them to one another, if I get a long signal, I want an up arrow and if a short sognal a down arrow (of course).
When I go to compile, I get an error that I have not defined the the MA's correctly. My syntax is messed up or it could be in my IF statement as an example for my fast moving average = F_MA and I have a statement (F_MA(2) < F_MA(1))...what I am trying to do there, is if the fast ma of 2 bars ago is less than the last fast ma bar ect...I could be completely off there also...
I have been searching for other indicators that I can look at and see what I am doing wrong and am not seeing anything as basic as what I want to do...any thoughts or directions would be appreciated.