trevman:
is it possible to build an indicator based on the MA levels, eg if i wanted to use a 21 SMA with levels of +40 and -40, how would this be coded in comparison to
is it possible to build an indicator based on the MA levels, eg if i wanted to use a 21 SMA with levels of +40 and -40, how would this be coded in comparison to
ma = iMA(NULL,0,21,0,MODE_SMA,PRICE_CLOSE,0);
is it simply a case of
ma + 0.0040
ma - 0.0040Yes, it's simple as ma + 0.0040!
But don't forget to get the point size of the pair!

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
is it possible to build an indicator based on the MA levels, eg if i wanted to use a 21 SMA with levels of +40 and -40, how would this be coded in comparison to
ma = iMA(NULL,0,21,0,MODE_SMA,PRICE_CLOSE,0);
is it simply a case of
ma + 0.0040
ma - 0.0040