DataLoader

Questions about MultiCharts .NET and user contributed studies.
User avatar
LorealeTeam
Posts: 11
Joined: 05 Dec 2013
Has thanked: 2 times

DataLoader

Postby LorealeTeam » 05 Dec 2013

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)

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

Re: DataLoader

Postby Henry MultiСharts » 09 Dec 2013

Hello LorealeTeam,

We will check that.

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

Re: DataLoader

Postby Henry MultiСharts » 11 Dec 2013

Please find a sample code attached.
Attachments
Test_ArrayToSeries.pln
(1.41 KiB) Downloaded 1108 times

User avatar
LorealeTeam
Posts: 11
Joined: 05 Dec 2013
Has thanked: 2 times

Re: DataLoader

Postby LorealeTeam » 14 Dec 2013

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).

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

Re: DataLoader

Postby Henry MultiСharts » 18 Dec 2013

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.


Return to “MultiCharts .NET”