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

[amibroker] Re: Formula Help



PureBytes Links

Trading Reference Links

Try using R = R + 100; // make range 0 - 100

rgds, Pal

--- In amibroker@xxxxxxxxxxxxxxx, "larypowell" <larypowell@xxxx> 
wrote:
> 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;
> 
>  
> 
> R1 = (MA(R,Avg2));
> 
> Plot(R1,"S-H%R",6,4);
> 
>  
> 
>  
> 
>  
> 
> Thanks,
> 
>  
> 
> Larry M. Powell
> 
> 
> --------------------------------------------------------------------
-
> Eliminate annoying spam!
> 
> My mailbox is protected by iHateSpam, the #1-rated spam buster.
> http://www.ihatespam.net


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/