iMFI with iMA

To add comments, please log in or register
zemo
436
zemo  

Hi,

 

I'm trying to code a iMFI that has a iMA inside it... the iMA will get the "first indicator's data".

but I cann't find any sample to understand how I could code this...

I tried to code it my self , but isn't working... the iMA is not getting data correctly.

 http://pastebin.com/vpPmg2MY


Keith Watford
Moderator
18556
Keith Watford  
Look at iMAOnArray()
Alain Verleyen
39069
Alain Verleyen  
Keith Watford:
Look at iMAOnArray()
This is MT5 Keith, there is no iMAOnArray().
Alain Verleyen
39069
Alain Verleyen  
zemo:

Hi,

 

I'm trying to code a iMFI that has a iMA inside it... the iMA will get the "first indicator's data".

but I cann't find any sample to understand how I could code this...

I tried to code it my self , but isn't working... the iMA is not getting data correctly.

 http://pastebin.com/vpPmg2MY


Show your attempt if you want help.
mntiwana
4537
mntiwana  
Alain Verleyen:
Show your attempt if you want help.
Perhaps it was explained earlier but i guess it needs so many opinions :)

Alain Verleyen
39069
Alain Verleyen  
mntiwana:
Perhaps it was explained earlier but i guess it needs so many opinions :)

The chart published is MT5.

Anyway...
zemo
436
zemo  
mntiwana:
Perhaps it was explained earlier but i guess it needs so many opinions :)

about my post in another board I got no "solution" to this problem , 

so I tried here.. I can't see any problem about this,

but you allways like to follow my threads without any useful helping, why? 

Keith Watford
Moderator
18556
Keith Watford  
Alain Verleyen:
This is MT5 Keith, there is no iMAOnArray().
That is why we need a section that deals exclusively with mql5 code.

So mql5 has iMA, but not not iMAOnArray, that is weird.
zemo
436
zemo  
Keith Watford:
That is why we need a section that deals exclusively with mql5 code.

So mql5 has iMA, but not not iMAOnArray, that is weird.

Keith thank you for your reply

yes, I think the same.. sometimes is very hard to help or get help, or find something using search button,

because all topics show only mt4 answers.. 

Alain Verleyen
39069
Alain Verleyen  
Keith Watford:
That is why we need a section that deals exclusively with mql5 code.
Agree but there is a mql4 section and people are still posting mql4 questions anywhere.
So mql5 has iMA, but not not iMAOnArray, that is weird.
With mql5 you can use MovingAverages.mqh include file (distributed with MT5) and then SimpleMAOnBuffer() for example.

You can also just apply iMA() on other indicator (using an handle). Depends of the goal.
zemo
436
zemo  

Mr. Alain,


thank you , you tip using handle was exactly what I needed..

To add comments, please log in or register