In the interest of others that might find it useful - here's the code
for Quotetracker Pivot Points - I'm also working on a version for
Camarilla Pivot Points.

One question for the group - I'd love to display a little "R1" next to
each line on the left side of the screen - any easy way to do that?

Thanks - and thanks LaL for helping me with this.
---------------------------------------------

Show_Prev = ParamToggle("Display Pivots", "No|Yes", 1);

// Get Previous Day's close, Low and High
Prev_Close = TimeFrameGetPrice( "C", inDaily, -1, expandFirst) ;
Prev_Low = TimeFrameGetPrice( "L", inDaily, -1, expandFirst) ;
Prev_High = TimeFrameGetPrice( "H", inDaily, -1, expandFirst) ;
Today = LastValue(Day() );
P = (Prev_High + Prev_Low + Prev_Close)/3;
R1 = (P*2)-Prev_Low;
S1 = (P*2)-Prev_High;
R2 = P + (R1 - S1);
S2 = P - (R1 - S1);


if(Show_Prev)
{
Plot(IIf(Today == Day(), P, Null), "P", ParamColor("P", colorRed),
styleLine|styleThick|styleNoRescale);
Plot(IIf(Today == Day(), R1, Null), "R1", ParamColor("R1", colorRed),
styleLine|styleThick|styleNoRescale);
Plot(IIf(Today == Day(), R2, Null), "R2", ParamColor("R2", colorRed),
styleLine|styleThick|styleNoRescale);
Plot(IIf(Today == Day(), S1, Null), "S1", ParamColor("S1", colorRed),
styleLine|styleThick|styleNoRescale);
Plot(IIf(Today == Day(), S2, Null), "S2", ParamColor("S2", colorRed),
styleLine|styleThick|styleNoRescale);
}


Reply via email to