// Downloaded From https://www.WiseStockTrader.com TimeFrameSet(inDaily); DayH= LastValue(Ref(H,-1)); DayL= LastValue(Ref(L,-1)); DayC= LastValue(Ref(C,-1)); TimeFrameRestore(); //Daily PP = (DayL + DayH + DayC)/3; R1 = (2 * PP) - DayL; S1 = (2 * PP) - DayH; R2 = PP + (DayH - DayL); S2 = PP - (DayH - DayL); R3 = DayH + 2*(PP - DayL); S3 = DayL - 2*(DayH - PP); TimeFrameSet(inMonthly); MonthH= LastValue(Ref(H,-1)); MonthL= LastValue(Ref(L,-1)); MonthC= LastValue(Ref(C,-1)); TimeFrameRestore(); //Monthly MPP = (MonthL + MonthH + MonthC)/3; MR1 = (2 * MPP) - MonthL; MS1 = (2 * MPP) - MonthH; MR2 = MPP + (MonthH- MonthL); MS2 = MPP - (MonthH- MonthL); MR3 = MonthH + 2*(MPP - MonthL); MS3 = MonthL - 2*(MonthH- MPP); SHOWDPIVOTS = ParamToggle("Daily Pivots", "No|Yes",0); SHOWMPIVOTS = ParamToggle("Monthly Pivots","No|Yes",0); SHOW3 = ParamToggle("3rd Line", "No|Yes",0); for (i=BarCount-2;i>(BarCount-13);i--)//set the last bars to the final PP value { PP[i] = PP[BarCount-1]; R1[i] = R1[BarCount-1]; R2[i] = R2[BarCount-1]; S1[i] = S1[BarCount-1]; S2[i] = S2[BarCount-1]; ColorG[i] = colorGreen; ColorB[i] = colorBlue; ColorR[i] = colorRed; } // // Conceal all but the trailing portion of the line // for (i=0;i