//P_SelectedRange ///////////Plot a selected date range in the middle of chart using BarIndex or DateNum //Plot(IIf(BarIndex() >= 978 AND BarIndex() <= 988,C,Null)," ",1,1); Plot(IIf(DateNum() >= 1050101 AND DateNum() <= 1050430,C,Null)," ",1,1); ///////////Plot a selected range at the end of a chart LastBarIndex = LastValue(BarIndex()); //Plot(IIf(BarIndex() >= LastBarIndex - 10,C,1)," ",8,1);