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

Re: [amibroker] asx quotes from yahoo



PureBytes Links

Trading Reference Links

A couple of things
time shift is +16 hrs

Second, this will also affect all past data times. Every time daylight
saving changes in Australia and USA I make the changes to the
historical data in intraday databse
This involves exporting the data with a time shift to match the
effects of daylight saving changes, then import back into AB. This is
then set up for the new season

I think I have posted this code in the library,
http://www.amibroker.com/library/formula.php?id=327

If you need to vary the historic data then add in an IF statement as below

Buy=datenum()<1041101;



fh = fopen( "c:\\csvData\\" + Name()+".txt", "w"); 
if( fh ) 
{ 
//    fputs( "Ticker,Date,Time,Open,High,Low,Close,Volume,OI \n", fh ); 
   y = Year(); 
   m = Month(); 
   d = Day(); 
//   r = Hour();
//   e = Minute();
//   n = Second();
   
   for( i = 0; i < BarCount; i++ ) 
   { 
if( buy )
{
      fputs( Name() + "," , fh );

      ds = StrFormat("%02.0f/%02.0f/%02.0f,", m[ i ], d[ i ], y[ i ] ); 
      fputs( ds, fh ); 
     
//       ts = StrFormat("%02.0f:%02.0f:%02.0f,", r[ i ],e[ i ],n[ i ] ); 
//       fputs( ts, fh ); 

      qs = StrFormat("%.4f,%.4f,%.4f,%.4f,%.0f,%.0f\n", O[ i ],H[ i
],L[ i ],C[ i ],V[ i ],OI[i] );
      fputs( qs, fh ); 
   } 
}
   fclose( fh ); 
} 

Filter=Buy;
AddColumn(C,"",1.3);


On Wed, 10 Nov 2004 01:32:05 -0000, ywwol <ylow@xxxxxxxxxxx> wrote:
> 
> 
> Ever since daylight saving began, my yahoo current updates in amiquote
> have been wrong. What are the correct database settings?
> I have the day session set to 10:00-16:15, and have tried time shift
> +14, +15 and +16 hours. Or does it have nothing to do with that?
> 
> 
> Check AmiBroker web page at:
> http://www.amibroker.com/
> 
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> Yahoo! Groups Links
> 
> 
> 
> 
> 


-- 
Cheers
Graham
http://e-wire.net.au/~eb_kavan/


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

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:
    http://docs.yahoo.com/info/terms/