Chart / Strategy AutoUpdate
Author: ichechet
Creation Date: 8/23/2010 8:53 AM
profile picture

ichechet

#1
Is it possible to autoupdate candles on chart or in Strategy window?
profile picture

Eugene

#2
You well know that your Streaming data provider does just that! ;)

There's no easy way to do it as static charts do not have a new bar event listener. Why'd you want to auto-update a static chart?
profile picture

ichechet

#3
I just created 4 WorkSpaces for alert generation. Each hour I use Reload Chart History. And after all I get the new candle. But it's not an elegant solution :( Just asked because you know all backdoors for WLD ;)
profile picture

Eugene

#4
"Reload chart history" results in a request that grabs the entire historical data for that symbol from your vendor/database/whatever. Clicking the "Go" button is more appropriate, although not suitable as it still requires doing something manually.

Strategy Monitor is the way to go (once fixed in 6.0) as it will, if implemented in your provider, request only the updates for the last hour. Check out the Google provider source code in the Wealth-Lab Wiki for the essential method to override, RequestUpdates.

But if you really need to update the 4 workspaces for visual trading, the best bet is a streaming data provider. By the way, in a few days I'm going to upload the updated source code of the DDE example provider - the design pattern has changed for 6.0 as we helped the developer find and fix some 5.6 bug that involved the GetMarketInfo and Unsubscribe methods.
profile picture

ichechet

#5
I know about ENTIRE historical data refreshing. So I called it's "not elegant". I already wrote AlfaDirect provider, overrided RequestUpdates method and it works great! Thank you for Google source, it saved my time for developing AlfaDirect provider!
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).