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

[amibroker] Help with IIF



PureBytes Links

Trading Reference Links




hi,
 
the other guys already explained it but here 
I add an example how to drag Foreign Open - High - Low - Close data of the 
indices of 3 major markets inside your code (the ticker symbols apply if 
you have the QuotePlus data base). rgds, Ed
 
// find in which market stock 
is mi = <FONT 
color=#0000ff>MarketID<FONT 
color=#000000>(); if 
(mi == 1<FONT 
color=#000000>) {    fo = <FONT 
color=#0000ff>Foreign(<FONT 
color=#ff00ff>"!DJI",<FONT 
color=#ff00ff>"Open"<FONT 
color=#000000>);    fh = <FONT 
color=#0000ff>Foreign(<FONT 
color=#ff00ff>"!DJI",<FONT 
color=#ff00ff>"High"<FONT 
color=#000000>);    fl = <FONT 
color=#0000ff>Foreign(<FONT 
color=#ff00ff>"!DJI",<FONT 
color=#ff00ff>"Low"); 
   fc = Foreign<FONT 
color=#000000>("!DJI"<FONT 
color=#000000>,"Close"<FONT 
face="Courier New">); } <FONT 
color=#000000>else <FONT 
color=#000000>if (mi == <FONT 
color=#ff00ff>2) { 
      fo = <FONT 
color=#0000ff>Foreign(<FONT 
color=#ff00ff>"!XAX",<FONT 
color=#ff00ff>"Open"<FONT 
color=#000000>);       fh = <FONT 
color=#0000ff>Foreign(<FONT 
color=#ff00ff>"!XAX",<FONT 
color=#ff00ff>"High"<FONT 
color=#000000>);       fl = <FONT 
color=#0000ff>Foreign(<FONT 
color=#ff00ff>"!XAX",<FONT 
color=#ff00ff>"Low"); 
      fc = <FONT 
color=#0000ff>Foreign(<FONT 
color=#ff00ff>"!XAX",<FONT 
color=#ff00ff>"Close"<FONT 
color=#000000>); } else<FONT 
color=#000000> if (mi == 
3<FONT 
color=#000000>) {       fo = <FONT 
color=#0000ff>Foreign(<FONT 
color=#ff00ff>"!COMP",<FONT 
color=#ff00ff>"Open"<FONT 
color=#000000>);       fh = <FONT 
color=#0000ff>Foreign(<FONT 
color=#ff00ff>"!COMP",<FONT 
color=#ff00ff>"High"<FONT 
color=#000000>);       fl = <FONT 
color=#0000ff>Foreign(<FONT 
color=#ff00ff>"!COMP",<FONT 
color=#ff00ff>"Low"); 
      fc = <FONT 
color=#0000ff>Foreign(<FONT 
color=#ff00ff>"!COMP",<FONT 
color=#ff00ff>"Close"<FONT 
color=#000000>); } else<FONT 
face="Courier New"> {    fo = 
Foreign(<FONT 
color=#ff00ff>"!COMP",<FONT 
color=#ff00ff>"Open"<FONT 
color=#000000>);    fh = <FONT 
color=#0000ff>Foreign(<FONT 
color=#ff00ff>"!COMP",<FONT 
color=#ff00ff>"High"<FONT 
color=#000000>);    fl = <FONT 
color=#0000ff>Foreign(<FONT 
color=#ff00ff>"!COMP",<FONT 
color=#ff00ff>"Low"); 
   fc = Foreign<FONT 
color=#000000>("!COMP"<FONT 
color=#000000>,"Close"<FONT 
color=#000000>); } 
----- Original Message ----- 
<BLOCKQUOTE 
>
  <DIV 
  >From: 
  <A title=RudyStefenel@xxxxxxxxx 
  href="">RudyStefenel@xxxxxxxxx 
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Thursday, March 11, 2004 6:56 
  AM
  Subject: [amibroker] Trading system 
  question
  I have a simple question about AmiBroker:Can one 
  use data from a mutual fund or stock togenerate the trading signals to 
  trade a different fundor stock with AmiBroker.  If so, please give 
  somedirection how to do this.As an example, with TradeStaion, you 
  can put two fundsin a single work space and refer to the second one 
  as(Close of Data2) and write trading rules for the second one to trade 
  the first one.  The firstone is referred to just Close or (Close of 
  Data1).You can optimize variables and back test doing this.You can 
  do basically the same thing with Windows onWallStreet and later verisons 
  of MetaStock.I would expect that is can be done with AmiBroker,but 
  I could not find out how in the help.Rudy 
  StefenelSend 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 
  


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




Click Here















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.