gctex Posted September 16, 2010 Report Posted September 16, 2010 Hi, How to code moving average based on data from other indicators like RSI or ADX please? On MT4 window I can set the RSI indicator window first, drag the MA on to it and select "use previous indicator's data". My question is how code this in mql4? Any sample code would be helpful. Thanx -GC
iwjw Posted September 16, 2010 Report Posted September 16, 2010 Hi, How to code moving average based on data from other indicators like RSI or ADX please? On MT4 window I can set the RSI indicator window first, drag the MA on to it and select "use previous indicator's data". My question is how code this in mql4? Any sample code would be helpful. Thanx -GC double iMAOnArray( double array[], int total, int period, int ma_shift, int ma_method, int shift) Calculation of the Moving Average on data stored in a numeric array. Unlike iMA(...), the iMAOnArray function does not take data by symbol name, timeframe, the applied price. The price data must be previously prepared. The indicator is calculated from left to right. To access to the array elements as to a series array (i.e., from right to left), one has to use the ArraySetAsSeries function.
gctex Posted September 17, 2010 Author Report Posted September 17, 2010 Thank you, appreciate the prompt response.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now