Session Template Timestamp

Questions about MultiCharts .NET and user contributed studies.
FistPeso
Posts: 16
Joined: 01 Sep 2013
Has thanked: 3 times
Been thanked: 8 times

Session Template Timestamp

Postby FistPeso » 16 Sep 2013

I noticed a little gotcha with Session Templates and it appears that it may be a bug. At the very least it is a user need to know issue.

The first time you add a new Instrument, or an existing instrument whose data has been deleted, to a chart, it looks like it is a good idea to use the Default Session Template. This will populate the database with the date/time stamp as provided by the Datafeed provider / exchange. Then you can go back and add a Session Template to the chart after the fact. The data in the database is "pure" as you would expect.

However, If you you use a Session Template on a new Instrument added to the chart, the date/time stamp in the database is modified to the session template parameters and overwrites the Datafeed providers date/time stamp. Thus the database data is no longer pure, and other charts may require the full date/time series which is no longer available.

Perhaps I am missing something, but these are my findings while testing.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Session Template Timestamp

Postby Henry MultiСharts » 17 Sep 2013

Hello FistPeso,

There is no bug. What you have experienced is expected behavior.
The data you have stored in the database will not be changed after a session template has been applied to a chart. Only the data you have loaded on the chart will be saved to the local database.

If you want all data streamed by the data provider to be saved to your database you can do the following:
1) Plot a chart or a market scanner with the instrument you need and desired session settings;
2) Enable the option "Collect RT data w/o plotting" in QuoteManager:
The option collects real time data from the moment you enable it for the symbol, only while QuoteManager is up and running.
To specify the quote fields and resolutions you want to have collected – right click on the symbol and go to Fields to Collect.
To connect the symbol right click on it->Connect symbol.
Data collection will start automatically next time the QuoteManager is opened (if the symbol was not disconnected before closing QM).


Return to “MultiCharts .NET”