Change Color Of Indicators
Change Color Of Indicators
22 Feb 2013, 02:50
I would like to ask you, if it's possible to change the color of a line indicator. For example when the slope of a Moving Average is Positive -> Lime and when is Negative -> Red.
thanks
Replies
thakas
22 Feb 2013, 21:47
( Updated at: 21 Dec 2023, 09:20 )
Thanks for your response.
At least is it possible to have 2 lines indicators (One Lime for positive slope and a Red second one for negative slope), instead to have dot style's indicators (like in your example) ?
I tried to change the dots (PlotType.Points) to lines (PlotType.Line), but all of of the lines are visible simultaneously.
Is it any way to make visible only each of the line at any time or I have to use points?.
thanks
@thakas
cAlgo_Fanatic
25 Feb 2013, 11:17
Not at the moment, the only way is with the Points.
Regards,
@cAlgo_Fanatic
cAlgo_Fanatic
22 Feb 2013, 10:02
Hello thakas,
No, this is not possible currently. As a workaround, you may use two points outputs instead of one line and in the calculation of the indicator display the lime when posistive and set the red to NaN and vice versa. This is an example: /algos/show/188
@cAlgo_Fanatic