I define the DataSeries
private DataSeries pivotSeries; //Data Series for PivotPoints
Calculate the Variableat the start of the day:-
if(BarsInProgress == 2)// 5 Min Bars
{
#region Calculate and Draw Pivots
if(ToTime(Time[0]) == 80500)
{
if(historical)
{
// Calculate Pivot Points(for order Entery)
pp = Math.Round((Highs[1][0] + Lows[1][0] + Closes[1][0])/3,2);
and set the DataSeries on the Daybar update,
if(BarsInProgress == 1)// Day Bars
{
pivotSeries.Set(pp); // Adds Current Pivot to Pivot DataSeries
}
But when I do Print(pivotSeries[1]); I get 0 as the reply???
Comment