I wrote a static data provider (for IB). Now I'm focusing on streaming. I re-purposed the old google provider code from the wealthlab site. While the chart is open, I click on the streaming button on the bottom right. But no event is fired in the GoogleStreamingV2.cs file. Not even the Initialize function.
Can someone please point me in the right direction?
Ref:
https://www2.wealth-lab.com/wl5wiki/apiStreamingDataProviders.ashx
Size:
Color:
Make sure the project targets .NET 4.6 or 4.7 and the DLL is placed in the WLD main folder under Program Files.
Size:
Color:
Yap, both are in place. Using .NET 4.72. Running VS as admin so it places the DLL in the program's folder automatically when launching debug.
Static works fine (repurposed your old google code).
I assume that once I click on the streaming button - something (Initialize) should fire. Please help.
Size:
Color:
Yes it should but only if you select your new Streaming provider in Wealth-Lab's Preferences > Streaming Data.
Size:
Color:
Bingo!
Thanks Eugene!!
Size:
Color:
Glad I could be of assistance!
Size:
Color:
Hi!
Working on the the IB provider, I'm able to catch and handle a "cancel update" event in the DataProvider window ( in public override void CancelUpdate() ). However, on a chart window, while retrieving data, pressing on {Esc} key to cancel chart operation spits:
CODE:
Please log in to see this code.
How to catch {Esc} event?
Size:
Color:
I don't think it's an event you can catch.
Size:
Color:
Isn't the answer to simply handle this error with try/catch in your download thread and return whatever data you had retrieved until then?
Size:
Color:
Well, I was hoping for a simple solution like the cancel event. Cone's solution would be the next best option.
Size:
Color: