PureBytes Links
Trading Reference Links
|
<SPAN
class=719493116-12092003>
<SPAN
class=719493116-12092003>most likely, MDI and/or PDI use other prices besides
the close you got back from Foreign(), so they're not responding
correctly.
<SPAN
class=719493116-12092003>
<SPAN
class=719493116-12092003>try this:
<SPAN
class=719493116-12092003>
<SPAN
class=719493116-12092003>SetForeign("VGY");
// swap out all the price arrays
<SPAN
class=719493116-12092003>Cond7 = MDI(Pds1) > PDI(Pds1);Cond8 = MDI(Pds1)
< PDI(Pds1);
<SPAN
class=719493116-12092003>RestorePriceArrays(); // restore the
original price arrays
<SPAN
class=719493116-12092003>
<SPAN
class=719493116-12092003>dave
<BLOCKQUOTE
>
<SPAN
>I am trying to write a system the
relies on signals generated by VGY to trade other stocks. Part of
the VGY signal is using MDI and PDI as filtering conditions. Currently
it works until I add the MDI, PDI conditions. How do I make the MDI and
PDI conditions apply to VGY not the individual stock
<SPAN
>
<SPAN
>VGY =
<SPAN
>Foreign<FONT
face="Courier New" color=black size=1><SPAN
>(<FONT
face="Courier New" color=fuchsia size=1><SPAN
>"VGY"<FONT
face="Courier New" color=black size=1><SPAN
>,<FONT
face="Courier New" color=fuchsia size=1><SPAN
>"C"<FONT
face="Courier New" color=black size=1><SPAN
>);<FONT
face="Courier New" color=green size=1><SPAN
>//this will
read the VGY and place it in the variable called VGY
<SPAN
>
<SPAN
>Cond7 =
<SPAN
>MDI<FONT
face="Courier New" color=black size=1><SPAN
>(Pds1) >
<SPAN
>PDI<FONT
face="Courier New" color=black size=1><SPAN
>(Pds1);
<SPAN
>Cond8 =
<SPAN
>MDI<FONT
face="Courier New" color=black size=1><SPAN
>(Pds1) <
<SPAN
>PDI<FONT
face="Courier New" color=black size=1><SPAN
>(Pds1);
<SPAN
>
<SPAN
>Thanks for you
help,
<SPAN
>
<SPAN
>Larry M. Powell
<FONT face="Times New Roman"
size=3><SPAN
>---------------------------------------------------------------------Eliminate
annoying spam!My mailbox is protected by iHateSpam, the #1-rated spam
buster.<A href=""
target=_blank>http://www.ihatespam.net
<SPAN
> Send
BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
Yahoo! Groups Sponsor
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.
|