}
PlotVWAPH1[0] = (iCumTypicalVolumeH1 / iCumVolumeH1);
PlotVWAPL1[0] = (iCumTypicalVolumeL1 / iCumVolumeL1);
}
region Properties
[Browsable(false)]
[XmlIgnore]
public Series<double> PlotVWAPH1
{
get { return Values[0]; }
}
[Browsable(false)]
[XmlIgnore]
public Series<double> PlotVWAPL1
{
get { return Values[1]; }
}
***************************
When Indicator applied to chart the plots are as expected
*******************************
Indicator applied to Strategy using secondary dataseries Closes[1] which is a 1 minute bar
Added Prints to Strategy
Print("PlotH1 Strat: " + ATSVWAPScalper1.PlotVWAPH1[0]);/// Prints the Plot as shown on my chart as expected
Print("PlotL1 Strat: " + ATSVWAPScalper1.PlotVWAPL1[0]);/// same
Print("PlotH1 ValueH1: " + ATSVWAPScalper1.Plots[0]);
Print("PlotL1 ValueL1: " + ATSVWAPScalper1.Plots[1]);
Print Output
PlotH1 Strat: 13469.4166666667
PlotL1 Strat: 13467.5125521304
PlotH1 ValueH1: NinjaTrader.Gui.Plot
PlotL1 ValueL1: NinjaTrader.Gui.Plot
If i AddChartIndicator to the Chart to Plot on Chart if will n ot allow me to use PlotVWAPH![0] must use Plots[0] as shown
ATSVWAPScalper1.Plots[0].Brush = Brushes.Orange;
ATSVWAPScalper1.Plots[1].Brush = Brushes.Orange;
AddChartIndicator(ATSVWAPScalper1);
************
WHAT AM I MISSING HERE Values[0] is PlotVWAPH1 and plots on the chart as expected
BUT THE Plots[0] plots on Chart entirely different value than the Print of PlotH1 Strat
Why?
AND IF I am using in Strategy condition sets referencing ATSVWAPScalper1.PlotVWAPH1[0]
Is the Strategy getting the Print of
Print("PlotH1 Strat: " + ATSVWAPScalper1.PlotVWAPH1[0]);/// Prints the Plot as shown on my chart as expected PlotH1 Strat: 13469.4166666667
or the incorrect Plot of the Value plotted on chart ATSVWAPScalper1.Plots[0].Brush = Brushes.Orange;
or a none value of the Print PlotH1 ValueH1: NinjaTrader.Gui.Plot
Thanks
Comment