Change Color of Indicator CiMA

To add comments, please log in or register
Thomas Schwabhaeuser
246
Thomas Schwabhaeuser  

Dear all, I am writing a trading panel. Pressing a button it creates two CiMA objects. Both indicators are then displayed as red lines. Could somebody give me a hint at where the documentation shows how to change the colors of indicators created this way?

Thanks in advance!

Thomas 

Alain Verleyen
38980
Alain Verleyen  
Thomas Schwabhäuser:

Dear all, I am writing a trading panel. Pressing a button it creates two CiMA objects. Both indicators are then displayed as red lines. Could somebody give me a hint at where the documentation shows how to change the colors of indicators created this way?

Thanks in advance!

Thomas 

You can't.

The only way to do that by code is with a custom indicator, if you have the source code.

Thomas Schwabhaeuser
246
Thomas Schwabhaeuser  
Alain Verleyen:

You can't.

The only way to do that by code is with a custom indicator, if you have the source code.

Thanks for your speed reply!

Just to clarify I assume the slightly more verbose answer is that I have to make sure the custom indicator has to have a parameter for the color so that I am able to pass the desired color when creating the CiCustom object, right?

Alain Verleyen
38980
Alain Verleyen  
Thomas Schwabhäuser:

Thanks for your speed reply!

Just to clarify I assume the slightly more verbose answer is that I have to make sure the custom indicator has to have a parameter for the color so that I am able to pass the desired color when creating the CiCustom object, right?

Yes that's a solution. There are others.
To add comments, please log in or register