What about nLastValid on startup of the plugin ,  which is always -1.
How does it know which is the last bar updated and which bar to update
next. Even on exiting the Preferences menu nLastValid is set to -1
when GetQuotes is called.

Help TJ.



--- In amibroker@yahoogroups.com, "Tomasz Janeczko" <[EMAIL PROTECTED]> wrote:
>
> Hello,
> 
> It is automatically saved. You need to go to File->Database Settings
> and define number of bars to be preserved there.
> And make sure that "Local data storage" is set to "Enabled.
> 
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message ----- 
> From: "Sachin" <[EMAIL PROTECTED]>
> To: <amibroker@yahoogroups.com>
> Sent: Tuesday, October 02, 2007 9:14 AM
> Subject: [amibroker] Data Plugin / Preserve Database
> 
> 
> > How to make AB preserve a database for a streaming real time source
> > which does not support backfill/hist. data from the remote server and
> > depends on the current price to build the database and is updated
> > using ::SendMessage(ParentWn,WM_USER_STREAMING_UPDATE... -> GetQuotes
> > Mechanism and not the Timer mechanism ?
> > 
> > When writing a RT data plugin nLastValid always is -1 when GetQuotes
> > is called for the first time so automatically on startup the previous
> > quotes are deleted
> > 
> > also
> > 
> > when the timer event fires periodically ( Preferences -> Intraday -> 
> > Realtime chart refresh ) again GetQuotes is called with the value of
> > nLastValid as -1. 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > Please note that this group is for discussion between users only.
> > 
> > To get support from AmiBroker please send an e-mail directly to 
> > SUPPORT {at} amibroker.com
> > 
> > For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> > http://www.amibroker.com/devlog/
> > 
> > For other support material please check also:
> > http://www.amibroker.com/support.html
> > 
> > Yahoo! Groups Links
> > 
> > 
> > 
> > 
> >
>


Reply via email to