Download MetaTrader 5

Colors of customer indicator

To add comments, please log in or register
Launch agents on an idle PC. It is profitable!
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
6609
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
30745
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
9624
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