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.
IDataLoader interface
-
- Posts: 64
- Joined: 15 Aug 2011
- Has thanked: 3 times
- Been thanked: 50 times
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: IDataLoader interface
Hello RiverTrader,
Please have a look at the attached example.
Please have a look at the attached example.
- Attachments
-
- ExampleUsingPLTypes.zip
- (8 KiB) Downloaded 502 times
-
- Posts: 64
- Joined: 15 Aug 2011
- Has thanked: 3 times
- Been thanked: 50 times
Re: IDataLoader interface
okay thanks. got it. I think I'll pass on buying $$$$$$$$ the api for now .