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

Re: [amibroker] Re: Plot Pivots



PureBytes Links

Trading Reference Links

This is what I use. Not my code.



Hi1 = IIf(Day()!=Ref(Day(),-1),Ref(HighestSince( Day()!=Ref
(Day(),-1), H,1),-1),0);
Hi = ValueWhen(Day()!=Ref(Day(),-1),Hi1,1);
//i = Val1)//;
Lo1 = IIf(Day()!=Ref(Day(),-1),Ref(LowestSince( Day()!=Ref
(Day(),-1), L,1),-1),0);
Lo = ValueWhen(Day()!=Ref(Day(),-1),Lo1,1);
CL1=IIf(Day()!=Ref(Day(),-1),Ref(C,-1),0);
CL = ValueWhen(Day()!=Ref(Day(),-1),CL1,1);
rg = Hi - Lo;
bp = (Hi+Lo+CL)/3;
R1 = (2*bP) - Lo ;
S1 = (2*bP) - Hi;
R2 = bP + rg;
S2 = bP - rg;
Plot(bp,"Pivot",colorIndigo,8);
Plot(R1,"R1",colorBlue,1);
Plot(S1,"S1",colorBlue,1);
Plot(R2,"R2",colorBlue,1);
Plot(S2,"S2",colorBlue,1);




---- Original Message ----- 
From: "renilange" <reni.lange@xxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Wednesday, November 03, 2004 7:51 AM
Subject: [trading] [amibroker] Re: Plot Pivots




Thank you. But what I´m looking for is pivots with  horizontal lines
plotted through the chart.

Thxs  Reni


--- In amibroker@xxxxxxxxxxxxxxx, ERKAN BISEVAC <ebisevac@xxxx>
wrote:
> X1=(Ref(H,-1)+Ref(L,-1)+Ref(C,-1))/3;
> Y1=(Ref(H,-1)+Ref(L,-1))/2;
> Z1= Abs(X1-Y1);
> DPH1=X1+Z1;
> DPL1=X1-Z1;
> PLOT(DPH1,"DPH1",1,1);
> PLOT(DPL1,"DPL1",2,1);
>
>
> renilange <reni.lange@xxxx> wrote:
>
> I have this METASTOCK formula to plot the daily pivot lines.
> Could a AFL specialist "translate" it?
>
>
> daily pivots / High and Low
>
>
> X1:=(Ref(H,-1)+Ref(L,-1)+Ref(C,-1))/3;
> Y1:=(Ref(H,-1)+Ref(L,-1))/2;
> Z1:= Abs(X1-Y1);
> DPH1:=X1+Z1;
> DPL1:=X1-Z1;
> DPH1;
> DPL1;
>
>
> Thank you. Reni
>
>
>
>
>
>
> Check AmiBroker web page at:
> http://www.amibroker.com/
>
> Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
>
> ---------------------------------
> Do you Yahoo!?
>  Check out the new Yahoo! Front Page.  www.yahoo.com/a
>
> [Non-text portions of this message have been removed]






Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links



 



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> 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/