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

[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.

 

<font size=1 color=green
face="Courier New">//Stan Harley %R Indicator

<font size=1 color=black
face="Courier New"> 

<font size=1 color=black
face="Courier New">x=<span
>6<font
size=1 color=black face="Courier New">;

<font size=1 color=black
face="Courier New">Avg2=<span
>5<font
size=1 color=black face="Courier New">;

<font size=1 color=black
face="Courier New"> 

<font size=1 color=black
face="Courier New">R = ((<span
>HHV<font
size=1 color=black face="Courier New">(H,x) -
C) /(<font size=1
color=blue face="Courier New">HHV<span
> (<span
>H,x) -<font size=1
color=blue face="Courier New">LLV<span
> (<span
>L,x))) * -<font size=1
color=fuchsia face="Courier New">100<span
>;

<font size=1 color=black
face="Courier New"> 

<font size=1 color=black
face="Courier New">R1 = (<span
>MA<font
size=1 color=black face="Courier New">(R,Avg2));

<font size=1 color=blue
face="Courier New">Plot<span
>(R1,<font
size=1 color=fuchsia face="Courier New">"S-H%R"<font
size=1 color=black face="Courier New">,<font size=1 color=fuchsia
face="Courier New">6<span
>,<font
size=1 color=fuchsia face="Courier New">4<font size=1
color=black face="Courier New">);

 

 

 

Thanks,

 



Larry M. Powell



<font size=3
face="Times New Roman">
---------------------------------------------------------------------
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 Sponsor


  ADVERTISEMENT











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 the Yahoo! Terms of Service.