Variables
private string ibh1 = "";
protected override void Initialize()
{
Add(new Plot(new Pen(Color.Gray,1), PlotStyle.Line,ibh1));
}
What I'm trying to do is dynamically change that plot label to something in onbarupdate based on a condition.
Eg: if
if (Instrument.MasterInstrument.Name == "TF"){ibh1="1-95%";}
The issue is the "1-95%" doesn't show up on the chart. Any ideas on this one?
Thanks in advance
DJ
Comment