Please I need help!
I wrote the code at the page 71 (ref. 4.7.4 Receiving the data for any symbol and any resolution. DataLoader) of the "MultiCharts.NET-ProgrammingGuide-v1.0".
So i finally succeed in loading other symbols not in the main chart.
At the moment I'm trying to develop a Trading system capable, during the session, to switch between different timeframe (e.g. minute 1,5,15,30,60) of the same symbol (future).
Here's the problem: the "container" List<Bar>.
I've found some difficult to put the result (loaded symbol at the requested timeframe contained in a List<Bar>) as input (ISeries<double>) of the function used in my TradeSystem to generate Signals.
So I ask: It is possible to do the typecasting of the "container" List<Bar> in ISeries<double>.
(sorry but I'm discovering the C# right now)
Thanks
(sorry for my English too)
DataLoader
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2958 times
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2958 times
Re: DataLoader
Please find a sample code attached.
- Attachments
-
- Test_ArrayToSeries.pln
- (1.41 KiB) Downloaded 1129 times
- LorealeTeam
- Posts: 11
- Joined: 05 Dec 2013
- Has thanked: 2 times
Re: DataLoader
Thanks, this codes seems to be a perfect solution!
but please tell me how (write a method) to copy into (List<T> m_data) your Container class a List<Bar> previously loaded by my own (outside the class).
but please tell me how (write a method) to copy into (List<T> m_data) your Container class a List<Bar> previously loaded by my own (outside the class).
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2958 times
Re: DataLoader
LorealeTeam, the example that we have provided above shows the logic that you need to use. You just need to modify it a little bit to suit your exact needs.