_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() );
TimeFrameSet(inDaily);
H3=HHV(High,3);
L3=LLV(Low,3);
C3=Ref(C,-1);
H1= Ref(H,-1) ;
L1=Ref(L,-1);
C1= Ref(C,-1);
P3=(H3+L3+C3)/3;
P1=(H1+L1+C1)/3;
Num=(H3+L3)/2;
PD=abs(P1-Num);
RPH=P1+PD;
RPL=abs(P1-PD);
TimeFrameRestore();
Plot(TimeFrameExpand(P1,inDaily,expandFirst),"Daily Pivot",colorPink,styleDots);
Plot(TimeFrameExpand(P3,inDaily,expandFirst),"Rolling 3 Daily Pivot",colorAqua,styleDots);
Plot(TimeFrameExpand(RPH,inDaily,expandFirst),"Rolling Pivot High",colorGreen,styleDots);
Plot(TimeFrameExpand(RPL,inDaily,expandFirst),"Rolling Pivot Low",colorRed,styleDots);
Plot(TimeFrameExpand(Num,inDaily,expandFirst),"Rolling Pivot Low",colorYellow,styleDots);
_SECTION_END();