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

Re: [amibroker] Formula Help



PureBytes Links

Trading Reference Links

> The following plots correctly except the numbers are all negative.  I would
> like them to be positive.  This is essentially a moving average of the
> Williams %R, so it is range bound.  I have tried using ABS but it changes
> the shape of the plot.
> 
>  
> 
> //Stan Harley %R Indicator
> 
>  
> 
> x=6;
> 
> Avg2=5;
> 
>  
> 
> R = ((HHV(H,x) - C) /(HHV (H,x) -LLV (L,x))) * -100;

Just looking more carefully, replace -100 with 100

Franco

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
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/