Jump to content

⤴️-Paid Ad- Check advertising disclaimer here. Add your banner here.🔥

Recommended Posts

Posted

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

Posted
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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

⤴️-Paid Ad- Check advertising disclaimer here. Add your banner here.🔥

×
×
  • Create New...