Help needed

 

Can you make the different levels on an indicator different colors.

I tried but there was errors.

here is what I want to do

#property indicator_level1 75

#property indicator_levelcolor White

#property indicator_level2 50

#property indicator_levelcolor Red

#property indicator_level3 25

#property indicator_levelcolor White

 

It was described here https://www.mql5.com/en/forum/177752

By the way it is your thread

 

Also,

you can take a look at this thread form post 50 and son on.

As with MQL4 you have :

#property indicator_level1

#property indicator_level2

#property indicator_level2

etc

#property indicator_color1

#property indicator_color2

#property indicator_color3

etc

You don't have

#property indicator_levelcolor1 an so on

There is only one chance to set the indicator color.

 

I am trying to make the level lines different colors not the indicator itself.

the Juice indicator in that post has the levels all the same color.

I understand the following ok

#property indicator_levelcolor Red

how ever I would like the 50 line one color and the 75 line another if that is possible.

 
Linuxser:
Also,

#property indicator_color1

#property indicator_color2

#property indicator_color3

etc

You don't have

#property indicator_levelcolor1 an so on

There is only one chance to set the indicator color.

Thanks Linuxser

So You cant have different level colors in a indicator, but you can change the color of the indicator as it crosses a level.

Is that correct?

 

here is what Im trying to do if its possible.

Files:
lines.gif  11 kb
 
droesparky:
here is what Im trying to do if its possible.

Hi droesparky..

Could u please tell me what's the blue line in your chart?

If it is an indicator, could u please post it?

Thank you and Happy New Year!!!

 

Blue line is SSL indicator created by Kalenzo.

Your Welcome

Files:
ssl.mq4  3 kb
 
droesparky:
here is what Im trying to do if its possible.

I don't think so (read my previous post) because levelcolor is limited to only one.

You can create objects in the same place where you want the levels. And then set the colors for every object.

RSIOMA indicator is a good example about objects like levels.

 

and if you add unicnumbergenerator (in mladens StochasticColor102classicB - stoch. thread) objects won't appear and disappear(step on each other)

Reason: