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

Re: [amibroker] Fraud Email



PureBytes Links

Trading Reference Links




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="jpg00050.jpg" align=baseline 
border=0>


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 












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: ""