@ amitrandive
here is the code....
even i use to have this but i never found . so i coded fresh for u.
DayO= TimeFrameGetPrice("O", inDaily, -1);
DayH= TimeFrameGetPrice("H", inDaily, -1);
DayL= TimeFrameGetPrice("L", inDaily, -1);
DayC= TimeFrameGetPrice("C", inDaily, -1);
HH=IIf(DayC == DayO,((DayH+DayL+2*DayC)/2)-DayL,IIf(DayC < DayO,((DayH+2*DayL+DayC)/2)-DayL,((2*DayH+DayL+DayC)/2)-DayL));
LL=IIf(DayC == DayO,((DayH+DayL+2*DayC)/2)-DayH,IIf(DayC < DayO,((DayH+2*DayL+DayC)/2)-DayH,((2*DayH+DayL+DayC)/2)-DayH));
PP=IIf(DayC == DayO,((DayH+DayL+2*DayC)/4),IIf(DayC < DayO,((DayH+2*DayL+DayC)/4),((2*DayH+DayL+DayC)/4)));
Plot( PP," \nPivot : ", ParamColor( "Piv Color", colorYellow ), ParamStyle("Style",styleDashed) );
Plot( HH," \nH pred : ", ParamColor( "H Color", colorBrightGreen ), ParamStyle("Style",styleDashed) );
Plot( LL," \nL pred : ", ParamColor( "L Color", colorRed), ParamStyle("Style",styleDashed) );
Enjoy...!