PlotVAPOverlay( Param("Lines", 200, 1, 5000000000, 1 ), Param("Width", 10, 1, 1000000000, 1 ), ParamColor("Color", colorGold ), ParamToggle("Side", "Left|Right",1) | 2 * ParamToggle("Style", "Fill|Lines", 1) | 4*ParamToggle("Z-order", "On top|Behind", 1 ) );
_SECTION_BEGIN("VAP");
segments = IIf( Interval() < inDaily, Day(), Month() );
segments = segments != Ref( segments , -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();
PlotVAPOverlay( Param("Lines", 200, 1, 5000000000, 1 ), Param("Width", 10, 1, 1000000000, 1 ), ParamColor("Color", colorGold ), ParamToggle("Side", "Left|Right",1) | 2 * ParamToggle("Style", "Fill|Lines", 1) | 4*ParamToggle("Z-order", "On top|Behind", 1 ) );
_SECTION_BEGIN("VAP");
segments = IIf( Interval() < inDaily, Day(), Month() );
segments = segments != Ref( segments , -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();
Buy = ExRem(Buy,Sell); Short = ExRem(Short,Cover);
Sell = ExRem(Sell,Buy); Cover = ExRem(Cover,Short);
PlotShapes(Buy *1+Short*2,colorWhite,0,IIf(Buy,L,H),-24);
PlotShapes(Sell*4+Cover*3,colorWhite,0,IIf(Cover,L,H),-24);
_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();