IDataLoader interface

Questions about MultiCharts .NET and user contributed studies.
riverTrader
Posts: 64
Joined: 15 Aug 2011
Has thanked: 3 times
Been thanked: 50 times

IDataLoader interface

Postby riverTrader » 24 Aug 2012

I am working on integrating my tickFactory into mc.net. At the moment i am taking the approach of accessing the data through the indicator class: eg. for every bar I retrieve the appropriate analytic value from my tickFactory. While this works the data I generate more closely approximates bar values (ohlcv) for synthetic instruments than it does a study for a particular real-world instrument. I can do accomplish what I want by creating an instrument that I access through ascii files, but what I really want to do is to do this real-time.

What I'm wondering -- and what would be really coool -- would be if I could use the IDataLoader interface to design a class that I can then have mc.net reference to load the data series as an instrument on the chart, rather than as a study. it seems possible, but I don't get how to hand the context the class.

radekj
Posts: 113
Joined: 28 Apr 2008
Has thanked: 20 times
Been thanked: 1 time

Re: IDataLoader interface

Postby radekj » 25 Aug 2012

IDataLoader results only "List of Bars", nothing else.

If you want to create real instrument you need MC-Data-API.

ciao
radekj

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

Re: IDataLoader interface

Postby Henry MultiСharts » 27 Aug 2012

Hello RiverTrader,

Please have a look at the attached example.
Attachments
ExampleUsingPLTypes.zip
(8 KiB) Downloaded 491 times

riverTrader
Posts: 64
Joined: 15 Aug 2011
Has thanked: 3 times
Been thanked: 50 times

Re: IDataLoader interface

Postby riverTrader » 29 Aug 2012

okay thanks. got it. I think I'll pass on buying $$$$$$$$ the api for now ;).


Return to “MultiCharts .NET”