Choose data for specific time period

Questions about MultiCharts .NET and user contributed studies.
viresearch
Posts: 12
Joined: 21 Mar 2013

Choose data for specific time period

Postby viresearch » 22 Apr 2013

Hello. How to read the bar data for specific time period? e.g. the bar data in current month. Display the bar data from 2010; bar.close minus 0.5 for the March, 2009.

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

Re: Choose data for specific time period

Postby Henry MultiСharts » 22 Apr 2013

Hello viresearch,

There are two ways:
1) You can plot this data on the chart, then reference it from the code for calculation with the help of BarsOfData() method.
2) Use IDataLoader to load the data you need, process and use it.

For more details and examples please refer to MultiCharts.NET-ProgrammingGuide:
4.2 Data Access
4.7.4 Receiving the data for any symbol and any resolution. DataLoader.

Another IDataLoader example can be found here.


Return to “MultiCharts .NET”