_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();
_SECTION_BEGIN("VAP");
VPTF = ParamList("VP Timeframe","Hourly|Daily|Weekly|Monthly",1);
if (VPTF == "Monthly") segments = Month() != Ref(Month(),-1);
else if (VPTF == "Daily") segments = Day() != Ref(Day(), -1);
else if (VPTF == "Hourly") segments = Hour() != Ref(Hour(), -1);
else segments = (DayOfWeek()== 1 AND Ref(DayOfWeek(),-1) != 1);
PlotVAPOverlayA( segments , Param("Lines", 200, 100, 1000, 1 ), Param("Width", 70, 1, 100, 1 ), ParamColor("Color", colorGold ), ParamToggle("Side", "Right|Left" ) | 2 * ParamToggle("Style", "Fill|Lines", 0) | 4*ParamToggle("Z-order", "On top|Behind", 1 ) );
_SECTION_END();