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

[amibroker] Re: Price Channel



PureBytes Links

Trading Reference Links


--- In amibroker@xxxxxxxxxxxxxxx, "Bob" <b.steven@xxxx> wrote:
> 
> 
> I am trying to code the plot for a 20-day price channel, that 
marks 
> the high and the low of the last 20 days. I have searched all the 
> sample formulas and have drawn a blank. This is simple, I am sure, 
> but I could use help.
> 
> thanx
> 
> bob


Hello, 

there likely are more than one way to do this.
Here's what I'm using:

// Plots a 20 period Donchian channel


pds = Param("Periods", 20, 6, 80, 1); 

DonchianUpper =HHV(Ref(H,-1),pds);
DonchianLower = LLV(Ref(L,-1),pds);

Plot(DonchianUpper,"DU",colorBlue,styleLine);
Plot(DonchianLower,"DL",colorRed,styleLine); 

Hope this helps,

Angelo.






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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

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