Download MetaTrader 5

Simple Moving average with color change of bars

To add comments, please log in or register
sharehunk
8
sharehunk  

Hi,

 

Appreciate if any of the great coding minds here can write a code to do the following simple moving average function

 

Change the bars color 

Green - SMA 5 > SMA 15    &    SMA 5 > SMA 30

Red  -   SMA 5< SMA 15     &    SMA 5 < SMA 30

Yellow - SMA 5 > SMA 15   &   SMA 5 < SMA 30 

 

 Thanks.

 

SH. 

Alain Verleyen
Moderator
33807
Alain Verleyen  
To add comments, please log in or register