Colors of customer indicator

Back to topics list To post a new topic, please log in or register
avatar
50
dolemi 2015.03.10 02:59
 

Hi,

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


avatar
2017
gooly 2015.03.10 08:27 #
 

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

One option would be

#property indicator_color1 Yellow


avatar
Moderator
3206
angevoyageur 2015.03.10 20: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.
avatar
50
dolemi 2015.03.11 05:16 #
 

Any command like this?

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

   else  SetIndexColor(1, clrGreen);

avatar
Moderator
3416
GumRai 2015.03.11 06:03 #
 
dolemi:

Any command like this?

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

   else  SetIndexColor(1, clrGreen);

Try it and see what happens
Back to topics list  

To add comments, please log in or register