(ADX is greater than its 10 SMA), How can I write this in mql4 language?
asdisd: (ADX is greater than its 10 SMA), How can I write this in mql4 language?
Why would you want to? ADX is a number [0 … 100], SMA is a price [0 … 1.5] ADX will usually be greater on non-JPY pairs and usually less
on JPY pairs.
If you mean how to build the 10-SMA of ADX, you can do this with iMAOnArray on an array of ADX values. Or compute it with a loop:
double sma10=0; for(int i=0; i<10; i++) sma10+=iADX(...,i); sma10/=10; if(iADX(...,0)>sma10) DoIt();
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