color selection

Questions about MultiCharts and user contributed studies.
york timothy
Posts: 166
Joined: 21 Nov 2007

color selection

Postby york timothy » 06 May 2008

Hello,
Does anyone have a list of the color selections available for MC? I wanted to do a search for that topic but was unable to. I would appreciate it if someone could give me a list of the colors available. Thank you.


Tim

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Postby TJ » 06 May 2008

I made a search... and this popped up:

http://forum.tssupport.com/viewtopic.php?t=4493

york timothy
Posts: 166
Joined: 21 Nov 2007

Postby york timothy » 07 May 2008

Thank you TJ, much obliged for your help.


Tim

york timothy
Posts: 166
Joined: 21 Nov 2007

Postby york timothy » 07 May 2008

TJ,
Do you know why they restricted the colors in the studies etc to 17? It would have made sense to continue with the same format as in the charts.

Tim

User avatar
Geoff
Posts: 198
Joined: 18 Apr 2007
Has thanked: 15 times
Been thanked: 4 times

Postby Geoff » 07 May 2008

Tim,

It's only restricted if LegacyColorValue=True otherwise you can use all 16m RGB colours.

The following is from PL editor F1 key help:

LegacyColorValue
Specifies the color designation scheme to be used for interpretation of numerical color values.
Usage
[LegacyColorValue = LogicalValue]

Where: LogicalValue - a true/false value; True = Enable; False = Disable




If the attribute is set to False, or not present in the study's code, the RGB (new) 16M color scheme will be used.

If LegacyColorValue the attribute is set to True, the legacy (old) 16-bit, 16-color scheme will be used.
Notes
When a color name is converted to a numerical color value, the specified scheme will be followed.

To ensure compatibility, the attribute [LegacyColorValue = True] is inserted automatically when older versions, prior to v8.1, of EasyLanguage studies are imported.
Examples
Enable legacy color value interpretation:

[LegacyColorValue = True];


Create a Green color plot using the legacy color scheme:

[LegacyColorValue = True];

Plot1(Open);

SetPlotColor(1,4);


Create a Green color plot using the RGB color scheme:

[LegacyColorValue = False];

Plot1(Open);

SetPlotColor(1,65280);


Assign a value, representing the color Green under the legacy color scheme, to Value1 (Value1 will be assigned a value of 4):

[LegacyColorValue = True];

Value1=Green;


Assign a value, representing the color Green under the RGB color scheme, to Value1 (Value1 will be assigned a value of 65280):

[LegacyColorValue = False];

Value1=Green;

User avatar
Marina Pashkova
Posts: 2758
Joined: 27 Jul 2007

Postby Marina Pashkova » 07 May 2008

Thank you Geoff.

york timothy
Posts: 166
Joined: 21 Nov 2007

Postby york timothy » 07 May 2008

Hi Geoff,
Thank you for your explanation and taking the trouble to post it. Unfortunately, when it comes to computers and me, it is like water and oil...lol. The indicator, which includes labels is not open for me to change. This is probably a good thing...lol. Once again, thank you for your kindness.


Tim


Return to “MultiCharts”