private Series<int> TPO_BLdiff_Series;
and added the following code in the OnStateChange() method:
if (State == State.DataLoaded)
{
// "this" refers to the NinjaScript object itself. This syncs the Series object to historical data bars
// MaximumBarsLookBack determines how many values the Series<double> will have access to
TPO_BLdiff_Series = new Series<int>(this, MaximumBarsLookBack.Infinite);
}
For the OnBarUpdate() method, I have calculated values and added them to my series as follows:
//my code for calculating and storing values
if(VAt.IsValidDataPoint(0) && POC.IsValidDataPoint(0) && VAb.IsValidDataPoint(0))
{
TPO_BLdiff_Series[0] = Convert.ToInt32(100*(POC[0]-VAb[0]));
}
Now the hurdle I have been unable to overcome is how to display the values of my series in the data box. I don't know how to code the xml of the Properties region to achieve this so that if I hover my mouse cursor above a bar on the chart, I can see the value of TPO_BLdiff_Series for that bar in the data box. I have reached the limits of my programming know-how and would highly appreciate if someone could kindly help me to accomplish my desired task. Many thanks in advance.
Comment