Download MetaTrader 5

Change ChartIndicatorAdd Chart Color

To add comments, please log in or register
choongay
10
choongay  

Hi, any possibility to change the chart color displayed by function "ChartIndicatorAdd"?


Thank you.


int EMA_HIGH_20_Handle = iMA(_Symbol,_Period,20,MAShift,MODE_EMA,PRICE_HIGH);  <-- This should be Color of BLUE and the style as STYLE_DOT

ChartIndicatorAdd(ChartID(), 0, EMA_HIGH_20_Handle);

int EMA_LOW_20_Handle = iMA(_Symbol,_Period,20,MAShift,MODE_EMA,PRICE_LOW); <-- This should be Color of RED and the style as STYLE_DOT

ChartIndicatorAdd(ChartID(), 0, EMA_LOW_20_Handle);

Alain Verleyen
Moderator
32028
Alain Verleyen  
It's not possible.
To add comments, please log in or register