gctex Posted September 16, 2010 Report Share 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 Quote Link to comment Share on other sites More sharing options...
iwjw Posted September 16, 2010 Report Share 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. Quote Link to comment Share on other sites More sharing options...
gctex Posted September 17, 2010 Author Report Share Posted September 17, 2010 Thank you, appreciate the prompt response. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.