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

[amibroker] Foreign Help - 2



PureBytes Links

Trading Reference Links









Ken, Jayson & Dave,  I appreciate the help.  I
am trying all the ideas and condensed the AFL to the following –

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

<font size=1 color=green
face="Courier New">// VGY test by LMP 

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

<font size=1 color=black
face="Courier New">Pds1 = <span
>13<font
size=1 color=black face="Courier New"> ; <font size=1 color=green
face="Courier New">//Optimize("pds1",6,2,21,1);

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

<font size=1 color=black
face="Courier New">SetForeign(<font size=1 color=fuchsia
face="Courier New">"VGY"<font size=1 color=black
face="Courier New">);        <font
size=1 color=green face="Courier New">// swap out all the price arrays

<font size=1 color=black
face="Courier New">Cond7 = <span
>PDI<font
size=1 color=black face="Courier New">(Pds1) > <font size=1 color=blue
face="Courier New">MDI<span
>(Pds1); <font
size=1 color=green face="Courier New">// +DI is above -DI 

<font size=1 color=black
face="Courier New">Cond8 = <span
>MDI<font
size=1 color=black face="Courier New">(Pds1) > <font size=1 color=blue
face="Courier New">PDI<span
>(Pds1); <font
size=1 color=green face="Courier New">// -DI is above +DI

<font size=1 color=black
face="Courier New">RestorePriceArrays();    <font
size=1 color=green face="Courier New">// restore the original price arrays

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

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

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

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

<font size=1 color=black
face="Courier New">Buy<font size=1 color=black
face="Courier New"> = <span
>ExRem<font
size=1 color=black face="Courier New">(Buy,<span
>Sell);

<font size=1 color=black
face="Courier New">Sell<font size=1 color=black
face="Courier New"> = <span
>ExRem<font
size=1 color=black face="Courier New">(Sell,<span
>Buy);

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

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

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

 

When I &#8220;check&#8221; the formula or try to run it I
get a Syntax Error message.

Thanks for any continued help.

 



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

 










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.