[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: Quotetracker Pivot Points



PureBytes Links

Trading Reference Links

Hi guys;

If I want to plot the pivot in the daily chart, should I need to change "inDaily" to "inweekly" for the Calculation?

Regards

 


--- In amibroker@xxxxxxxxxxxxxxx, "sidhartha70" <sidhartha70@xxx> wrote:
>
> Use PlotText()... here's some standard Pivot code...
>
> H1=SelectedValue(TimeFrameGetPrice( "H", inDaily, -1 ));
> L1=SelectedValue(TimeFrameGetPrice( "L", inDaily, -1 ));
> C1=SelectedValue(TimeFrameGetPrice( "C", inDaily, -1 ));
>
> /*PIVOT Calculation*/
> p = ( H1+ L1 + C1 )/3;
> s1 = (2*p)-H1;
> r1 = (2*p)-L1;
> s2 = p -(H1 - L1);
> s3 = S1 - (H1-L1);
> r2 = p +(H1 - L1);
> r3 = R1 +(H1-L1);
>
> Plot (p,"Pivot",25,styleDashed|styleNoRescale);
> PlotText("PIVOT",BarCount,LastValue(p),25);
> Plot (r1,"R1",40,styleDashed|styleNoRescale);
> PlotText("R1",BarCount,LastValue(r1),40);
> Plot (r2,"R2",40,styleDashed|styleNoRescale);
> PlotText("R2",BarCount,LastValue(r2),40);
> Plot (r3,"R3",40,styleDashed|styleNoRescale);
> PlotText("R3",BarCount,LastValue(r3),40);
> Plot (s1,"S1",44,styleDashed|styleNoRescale);
> PlotText("S1",BarCount,LastValue(s1),44);
> Plot (s2,"S2",44,styleDashed|styleNoRescale);
> PlotText("S2",BarCount,LastValue(s2),44);
> Plot (s3,"S3",44,styleDashed|styleNoRescale);
> PlotText("S3",BarCount,LastValue(s3),44);
>
>
>
> --- In amibroker@xxxxxxxxxxxxxxx, "droskill" droskill@ wrote:
> >
> > 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);
> > }
> >
>

__._,_.___

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___