Download MetaTrader 5
To add comments, please log in or register
Are you a good trader? Become a signals provider and make even more money!
dolemi
145
dolemi 2015.03.10 01:59 

Hi,

  Could I change color of a customer indicator without use extra buffer? And how? I mean one indicator 4 colors.

Carl Schreiber
5953
Carl Schreiber 2015.03.10 07:27  

In principle yes, but it depends on the 'environment'.

One option would be

#property indicator_color1 Yellow
Alain Verleyen
Moderator
28626
Alain Verleyen 2015.03.10 19:46  
dolemi:

Hi,

  Could I change color of a customer indicator without use extra buffer? And how? I mean one indicator 4 colors.


You need 4 buffers.
dolemi
145
dolemi 2015.03.11 04:16  

Any command like this?

   if (a>0)    SetIndexColor(1, clrRed);

   else  SetIndexColor(1, clrGreen);

Keith Watford
Moderator
7947
Keith Watford 2015.03.11 05:03  
dolemi:

Any command like this?

   if (a>0)    SetIndexColor(1, clrRed);

   else  SetIndexColor(1, clrGreen);

Try it and see what happens
/
To add comments, please log in or register