I'm trying to plot the current month open by using a secondary data series. But apparently it's not as simple as referencing the 2nd bar data series...??
I can get the correct month open values to print in the Output window, but the plot value is "N/A".
I see on previous posts references to Monthly OHLC but the indicator offered is for the Prior month values.
Thanks
=================== CODE SAMPLE START ===================
protected override void OnBarUpdate()
{
if (BarsInProgress == 1 && CurrentBars[1] > 0)
{
CurrentMonthOpen[0] = Opens[1][0];
// print to check values are correct
double currentMonthOpen = Opens[1][0];
Print("Current Month Open Value: " + currentMonthOpen);
}
}
region Properties
[Browsable(false)]
[XmlIgnore]
public Series<double> CurrentMonthOpen
{
get { return Values[0]; }
}
#endregion
=================== CODE SAMPLE END ===================

Comment