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

Re: [amibroker] formula question



PureBytes Links

Trading Reference Links

Is this what you want?

range = Param("years",3,1,10,1)*250; //250 trading days per year
myrange = ((HHV(C,range) - LLV(C,range)) / HHV(C,range)) * 100;
Plot(myrange,"n%",colorBlack,styleOwnScale,0,100);

Which gives the percent change vs the Highest High over the period on a day
by day basis. (Canšt use the Low without getting percentages > 100).

Terry
--

> I am trying to write a formula:
> 
> A stock has been trading in a range (n%) of High and low for a minimum of 3
> years.....
> 
> Thank you
> Anthony...
> 



[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/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/