Change Color Of Indicators

Created at 22 Feb 2013, 02:50
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
TH

thakas

Joined 22.02.2013

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


@thakas
Replies

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

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