This everything I'm currently using below, what do I change to plot two days?
private bool _onlyPlotToday = false;
SessionIterator _sessionIterator;
***************
if (State == State.Historical)
{
//stores the sessions once bars are ready, but before OnBarUpdate is called
_sessionIterator = new SessionIterator(Bars);
}
*******
protected override void OnBarUpdate()
{
if(_onlyPlotToday)
{
_sessionIterator.GetNextSession(Time[0], true);
TimeSpan ts = DateTime.Now - _sessionIterator.ActualTradingDayExchange;
if(ts.Days == 0) //is today
PlotIndy();
}
else
{
PlotIndy();
}
}
private void PlotIndy()
{
*******
[NinjaScriptProperty]
[Display(Name = "OnlyPlotToday", Description = " Uses Less Data"+"\n"+"\nOn the next day once this indicator loads: hit reset (reset - Apply - OK) to reload the bars"+"\n"+"\n Go to Indicator > template > reset = (template >> save load reset)"+"\n -to keep from the continuation of painting of strong bars where it applies", Order = 1, GroupName = "FibDrawn_1R")]
public bool OnlyPlotToday
{
get { return _onlyPlotToday; }
set { _onlyPlotToday = value; }
}​
