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

RE: [amibroker] Foreign Help


  • To: <amibroker@xxxxxxxxxxxxxxx>
  • Subject: RE: [amibroker] Foreign Help
  • From: "Jayson" <jcasavant@xxxxxxxxxxx>
  • Date: Fri, 12 Sep 2003 07:54:22 -0700
  • In-reply-to: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAHiNWvlX4zUKaLpAfyBdF9sKAAAAQAAAAuGRbVnR/OUeK4tBOTzz3CgEAAAAA@xxxxxxxxxxx>

PureBytes Links

Trading Reference Links




Larry, 
try setforeign.......
<FONT face=Arial color=#0000ff 
size=2> 

SetForeign( 'ticker' )- replaces current price/volume 
arrays with those of foreign security, returns True if ticker exists, False 
otherwise.If ticker does not exist (and function returns false) price arrays 
are not changed at all.Equivalent to the following 
sequence:C = Foreign( "ticker", "C" );O = Foreign( "ticker", "O" 
);H = Foreign( "ticker", "H" );L = Foreign( "ticker", "L" );V = 
Foreign( "ticker", "V" );OI = Foreign( "ticker", "I" );Avg = ( C + H + L 
)/3;but 6x faster (SetForeign takes about the same time as single 
foreign). To restore original prices 
callRestorePriceArrays();
 
Regards, 
Jayson 
<FONT face=Tahoma 
size=2>-----Original Message-----From: Larry M Powell 
[mailto:larypowell@xxxxxxxxxxxxx]Sent: Friday, September 12, 2003 
10:37 AMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] 
Foreign Help

<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


  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.