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

RE: (please reduce message size) was [amibroker] Re: Real-Time Trading System Examples



PureBytes Links

Trading Reference Links




for 
example?
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2>herman

  <FONT face=Tahoma 
  size=2>-----Original Message-----From: dingo 
  [mailto:dingo@xxxxxxxxxxxx]Sent: Monday, April 12, 2004 1:51 
  PMTo: amibroker@xxxxxxxxxxxxxxxSubject: RE: [amibroker] 
  Re: Real-Time Trading System ExamplesImportance: 
  High
  <FONT face=Arial 
  color=#0000ff size=2>Better yet - use a small script to do the importing. That 
  way you specify the name of the format file.
  <FONT face=Arial 
  color=#0000ff size=2> 
  <FONT face=Arial 
  color=#0000ff size=2>d
  
    
    
    From: Herman van den Bergen 
    [mailto:psytek@xxxxxxxx] Sent: Monday, April 12, 2004 1:41 
    PMTo: amibroker@xxxxxxxxxxxxxxxSubject: RE: 
    [amibroker] Re: Real-Time Trading System Examples
    
    Here is the procedure I used, if it can be improved please 
    let me know. Edit the path, filename and name of your EOD database and Scan 
    this code (based on that in the AB Help) on the Watchlist you want to import 
     into your RT database. So far so good :-) not too much work, since it 
    has to be done only once a day.
    
    if(GetDatabaseName() == "EOD-QP2-31MAR04") // This prevents me from 
    Scanning the RT DB by 
    accident{Buy=Sell=Short=Cover=0;Filter=Status("LastBarInTest");// 
    The following code exports quotes of current stock to 
    quotes.csv comma separated filePath = "C:\\Program 
    Files\\AmiBroker\\EODexports\\";fh = fopen( Path+Name()+"-EOD.csv", 
    "w");if( fh )        
    {//      fputs( 
    "Date,Open,High,Low,Close,Volume\n", fh 
    );        y = 
    Year();        m = 
    Month();        d = 
    Day();        for( i = 0; i < 
    BarCount; i++ )        
            
    {        
            ds = 
    StrFormat("%02.0f-%02.0f-%02.0f,", y[ i ], m[ i ], d[ i ] 
    );        
            fputs( ds, fh 
    );        
            qs = StrFormat("%.4f, %.4f, %.4f, 
    %.4f, %.0f\n", O[ i ], H[ i ], L[ i ], C[ i ], V[ i ] 
    );        
            fputs( qs, fh 
    );        
            
    }        fclose( fh 
    );        }} 
    
    
    
    Here are the import settings I used... does anybody know how to 
    make this setting default? It keeps reverting back to its original 
    setting. 
    
    <IMG alt="" hspace=0 src="jpg00053.jpg" align=baseline 
    border=0>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 
    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 
    


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 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.






Attachment: Description: ""