1
double high0 = !(Input is PriceSeries || Input is Bars) ? Input[0] : High[0];
double low0 = !(Input is PriceSeries || Input is Bars) ? Input[0] : Low[0];
double close0 = !(Input is PriceSeries || Input is Bars) ? Input[0] : Close[0];
2
if (BarsArray[0].BarsType.IsRemoveLastBarSupported && CurrentBar < saveCurrentBar)
{
currentSwingHigh = SwingHighPlot.IsValidDataPoint(0) ? SwingHighPlot[0] : 0;
currentSwingLow = SwingLowPlot.IsValidDataPoint(0) ? SwingLowPlot[0] : 0;
lastSwingHighValue = swingHighSeries[0];
lastSwingLowValue = swingLowSeries[0];
swingHighSeries[Strength] = 0;
swingLowSeries[Strength] = 0;
lastHighCache.Clear();
lastLowCache.Clear();
for (int barsBack = Math.Min(CurrentBar, constant) - 1; barsBack >= 0; barsBack--)
{
lastHighCache.Add(!(Input is PriceSeries || Input is Bars) ? Input[barsBack] : High[barsBack]);
lastLowCache.Add(!(Input is PriceSeries || Input is Bars) ? Input[barsBack] : Low[barsBack]);
}
saveCurrentBar = CurrentBar;
return;
}

Comment