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

[amibroker]



PureBytes Links

Trading Reference Links









<span
>Dimitris:

<span
> 

<span
>I am trying to use this in
AA as a scan/backtest criteria, and cannot seem to figure out how to create the
Buy rules.  Any help would be appreciated.  

<span
> 

<span
>Thanks,

<font size=2 color=green
face="Courier New"> 

<font size=2 color=green
face="Courier New">//Demark_Buy created by Dimitris//

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

<font size=2 color=blue
face="Courier New">Plot<span
>(<span
>C,<font size=2 color=fuchsia
face="Courier New">"C"<font size=2 color=black
face="Courier New">,colorBlack,<font
size=2 color=fuchsia face="Courier New">64<font size=2
color=black face="Courier New">);Title=<font
size=2 color=blue face="Courier New">Name<font size=2 color=black
face="Courier New">();

<font size=2 color=maroon
face="Courier New">for<font size=2 color=black
face="Courier New">(x=<span
>5<font
size=2 color=black face="Courier New">;x<<font size=2 color=fuchsia
face="Courier New">20<span
>;x++)

<font size=2 color=black
face="Courier New">{S2=<span
>Sum<font
size=2 color=black face="Courier New">(C<<font
size=2 color=blue face="Courier New">Ref<font size=2 color=black
face="Courier New">(C,-<font
size=2 color=fuchsia face="Courier New">3<font size=2
color=black face="Courier New">),x)==x;

<font size=2 color=black
face="Courier New">Buy<font size=2 color=black
face="Courier New">=s2==<span
>0<font
size=2 color=black face="Courier New"> AND <font
size=2 color=blue face="Courier New">Ref<font size=2 color=black
face="Courier New">(s2,-<span
>1<font
size=2 color=black face="Courier New">);

<font size=2 color=blue
face="Courier New">PlotShapes<span
>((<span
>shapeHollowSmallCircle+<span
>shapePositionAbove)*s2,x);

<font size=2 color=blue
face="Courier New">PlotShapes<span
>(<span
>shapeUpArrow*Buy,colorBrightGreen);

<font size=2 color=black
face="Courier New">Title<font size=2 color=black
face="Courier New">=Title+<font
size=2 color=blue face="Courier New">WriteIf<font size=2 color=black
face="Courier New">(s2,<span
>"["<font
size=2 color=black face="Courier New">+<font size=2 color=blue
face="Courier New">WriteVal<span
>(x,<font
size=2 color=fuchsia face="Courier New">1.0<font size=2
color=black face="Courier New">)+<span
>"]"<font
size=2 color=black face="Courier New">,<font size=2 color=fuchsia
face="Courier New">""<font size=2 color=black
face="Courier New">);}

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

 

Larry M. Powell

<font size=2
face="Times New Roman">---------------------------------------------------------------------
Eliminate annoying spam!

My mailbox is protected by iHateSpam, the #1-rated spam buster.
http://www.ihatespam.net

 










Yahoo! Groups Sponsor


  ADVERTISEMENT 









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



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.