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

[amibroker] Re: Data Plugin / Preserve Database



PureBytes Links

Trading Reference Links

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@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <groups@xxx> 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" <sachin_13@xxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> 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
> > 
> > 
> > 
> > 
> >
>




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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/