Show Indicator Labels --> access in code?
Author: dansmo
Creation Date: 3/4/2010 9:31 AM
profile picture

dansmo

#1
Hi,

is it possible to define this in the code directly?
profile picture

Eugene

#2
I guess that the answer is no since even a 'hack' won't do it:
CODE:
Please log in to see this code.

profile picture

dansmo

#3
I would ask for an override of PlotSeries, where one can specify the label.
profile picture

Eugene

#4
Look up the DataSeries.Description property.
profile picture

dansmo

#5
What do you mean with that? The Label that is plotted on the chart s not equal to the series´ description. If it would be the description it would be okay for me.
profile picture

Eugene

#6
What does it mean "specify the label" then? What for?

What is the "label" then -- is this what is on the right edge of the chart?
profile picture

Cone

#7
Just to throw it out there, keep in mind the "Alt" shortcut for the indicator labels, status bars, and fundamental items on charts. Holding the Alt key while clicking one of those buttons changes all of the chart windows.
profile picture

dansmo

#8
Given the following series:

Dat
CODE:
Please log in to see this code.

When I plot this in its own ChartPane, I can see a label on the left sidde of the pane saying that the indicator is a RSI with parameters of x and z.

What I expected was, that the label

- says "mySeries" instead of RIS()
- that one could remove the label. The point here is that I dont want to show which indicator it is, if someone else uses the strategy. I would like have a option in the code to allow a label or not.

profile picture

Eugene

#9
QUOTE:
When I plot this in its own ChartPane, I can see a label on the left sidde of the pane saying that the indicator is a RSI with parameters of x and z.

It may sound and feel non-intuitive, but your statement creates a new blank DataSeries object in the variable "ds". This is what the first line of code does. Then, you're assigning a data series i.e. RSISeries, which already exists in the Bars.Cache with its own description "saying that the indicator is a RSI with parameters of x and z", to the variable "ds".

Use the Description property after creating a series:
CODE:
Please log in to see this code.

This will let you get rid of the standard description and hence be able to "camouflage" the formula.

QUOTE:
- that one could remove the label.

One couldn't remove the label by design.

profile picture

dansmo

#10
Ahhh, I think that will make it.
CODE:
Please log in to see this code.

Like you said: non-intuitive.
profile picture

Eugene

#11
Maybe, but makes great sense once you get familiar with the Bars.Cache modus operandi.