plot color of indicator in EA using ChartIndicatorAdd

 

Hi

This mql5 EA code plots the indicaot fine.

How canI chnage the indicator color?

int OnInit() {
   int maHandle = iMA(NULL, 0, 200, 0, MODE_SMA, PRICE_CLOSE);
  ChartIndicatorAdd(0, 0, maHandle);

Thanks


 

Reason: