Jump to content

MA of RSI


gctex

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...