Colour Coded Moving Average

To add comments, please log in or register
david mackay
2879
david mackay  

Do we have available a moving average indicator that would change colour when the average changes direction.......

and , further to that, is it possible to create an indicator that would be able to use, say three or four moving averages and then create an alert when two or three of them are going the same way.....?

I am new to writing code for Metatrader so I have to ask a few questions before I can develop some ideas.......

Thanks for your help

dave

Sergey Golubev
Moderator
108364
Sergey Golubev  

I posted something here.

david mackay
2879
david mackay  

Moving Average colours

Thanks Newdigital, I will have a look at those.......

thanks again

alp
195
alp  

of the same indicator. HMA is a basic one.

According to this

buffer=iMA(NULL,0,MathFloor

(HMA_Period/2),0,MODE_LWMA,PRICE_CLOSE,i)*2-

iMA(NULL,0,HMA_Period,0,MODE_LWMA,PRICE_CLOSE,i);

one LWMA subtracts from the other.

That means it more like MACD,

I like bar coloring more.

Enjoy

david mackay
2879
david mackay  

Alp

Thanks for those.......

Sergey Golubev
Moderator
108364
Sergey Golubev  
Blaiserboy:
Do we have available a moving average indicator that would change colour when the average changes direction.......

and , further to that, is it possible to create an indicator that would be able to use, say three or four moving averages and then create an alert when two or three of them are going the same way.....?

I am new to writing code for Metatrader so I have to ask a few questions before I can develop some ideas.......

Thanks for your help

dave

Blaiserboy,

Thanks that you started this thread. I think we all are using MA.

I added some an other indicators with color changing etc here.

wccmcd
108
wccmcd  

mladen,

I found megatrend is very useful. Is it possible to add a horizontally shift parameter to it?

Files:
wccmcd
108
wccmcd  

mladen,

do NOT bother my previous request, I found one here https://c.mql5.com/forextsd/forum/36/hma_ma_tc_shift.mq4

wccmcd:
mladen, I found megatrend is very useful. Is it possible to add a horizontally shift parameter to it?
Mladen Rakic
126171
Mladen Rakic  
wccmcd:
mladen, I found megatrend is very useful. Is it possible to add a horizontally shift parameter to it?

wccmcd

"megatrend" is hull moving average. There are quite a few correctly coded hull averages (with and without shift) at this thread : https://www.mql5.com/en/forum/174961

To add comments, please log in or register