4.7.4 Receiving the data for any symbol and any resolution. DataLoader: Difference between revisions
From MultiCharts
4.7.4 Receiving the data for any symbol and any resolution. DataLoader (view source)
Revision as of 16:56, 3 May 2013
, 3 May 2013no edit summary
No edit summary |
No edit summary |
||
Line 19: | Line 19: | ||
Resolution structure helps to determine both regular and irregular resolutions. | |||
* <div style="background-color: #E5F6FF;">'''Example of determining a regular resolution:''' | * <div style="background-color: #E5F6FF;">'''Example of determining a regular resolution:''' | ||
<syntaxhighlight> | <syntaxhighlight> | ||
Resolution _res = new Resolution(EResolution.Tick, 10); | |||
</syntaxhighlight> | </syntaxhighlight> | ||
If the request resolution is set in this way then 10-tick data will be requested. | |||
</div> | </div> | ||
* <div style="background-color: #E5F6FF;">'''Example of determining an irregular resolution:''' | * <div style="background-color: #E5F6FF;">'''Example of determining an irregular resolution:''' | ||
<syntaxhighlight> | <syntaxhighlight> | ||
Resolution _res = Resolution.CreatePointAndFigure(EResolution.Tick, 10, 0.001, 3, PointAndFigureBasis.HighLow, true); | |||
</syntaxhighlight> | </syntaxhighlight> | ||
</div> | </div> | ||
Line 54: | Line 54: | ||
'''{{color|blue|LoadDataCallback}}''' – is a delegate with the following signature: | |||
<syntaxhighlight> | <syntaxhighlight> | ||
public delegate void LoadDataCallback(IDataLoaderResult Result); | public delegate void LoadDataCallback(IDataLoaderResult Result); |