It is the end user who decides how much data he/she wants, not the plugin. The end user sets the limit and you should just present nSize most recent ticks/bars. If you have more, discard oldest, replace with newest.
This is also the place I don't understand because I am at
Data Plugin Database setting
Number of bars is set to 500000,
However, I used debug to receive the GetQuoteEx
nLastValid = 6655224 , and nSize = 6655225
Obviously nSize is greater than 500000
You may have imported data using ASCII importer earlier. Such data won't be removed.
By the way, are you registered user? Your email is not in registered database.
Only users with purchased license are allowed to use AmiBroker Development Kit. Please change your email in Profile to registered or use private message to show registration status.
In the case of this case, how can we not discard old data and add new data?
And I am wrong, nSize = 6655225, and nLastValid = 6655224
All the pQuote buffers are filled with data, so you cannot add data, without discarding old data.