PureBytes Links
Trading Reference Links
|
Thank you droskill for this code..
All the best
--- In amibroker@xxxxxxxxxxxxxxx, "droskill" <droskill@xxx> 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
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|