how to set indicator output color in hex via parameter?

Created at 02 Mar 2021, 20:49
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!
HY

Hyperion

Joined 12.09.2013

how to set indicator output color in hex via parameter?
02 Mar 2021, 20:49


I have an indicator which is a bunch of MAs - something like multli MA ribbon (aka rainbow)

Let's say there are several MAs that are of the same color - how to set color for each of them by typing it in hex in one parameter field?

(I want to test many color combinations and variations and pasting them one by one sixteen times for each composition (16 MAs) is really a waste of time.)

Something similar this perhaps (this doesn't work btw ;) ):

 


@Hyperion
Replies

PanagiotisCharalampous
03 Mar 2021, 07:57

Hi Tengu,

Unfortunately it is not possible to modify IndicatorDataSeries color through code. You can only set the color through the interface.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous