Hi, during streaming, if I switch a bar scale (say from 10min to 30) the HasStreamingBar function will fail. A temporary "fix" around it is to click on the "stream" button to disable stream and then click again to enable.
Using WL build 32, IB extension, C# "attached" to chart
Using WL build 32, IB extension, C# "attached" to chart
Rename
Just to understand this better, did you wait for this script to run at the end of the 30-min bar to determine the state of HasStreamingBar?
I'm not sure I fully understand your question. Do you refer to waiting 30 minutes (for a 30-min bar) after changing the bar scale for the script to run?
In that case, no. Because, naturally, it's imperative to see the new chart as soon as possible.
The script seems to run upon switching the bar scale. Except that HasStreamingBar does not function correctly. Disabling the stream and re-enabling it "resets" it.
Some background:
The HasStreamingBar condition runs some visualization. I can tell if/when it works. Simple example:
In that case, no. Because, naturally, it's imperative to see the new chart as soon as possible.
The script seems to run upon switching the bar scale. Except that HasStreamingBar does not function correctly. Disabling the stream and re-enabling it "resets" it.
Some background:
The HasStreamingBar condition runs some visualization. I can tell if/when it works. Simple example:
CODE:
if (Bars.HasStreamingBar ){ DrawHeaderText("Real Time", WLColor.Green, 12); }
Jeff this is not intended to be used in a strategy. It works perfectly for its intended purpose in the framework, for example in a Chart Style extension. I’ll update the documentation accordingly.
It's actually a very useful feature, during streaming. I'm a bit surprised to hear that.
I am hoping, that since it does work in streaming, albeit not 100%, it would not be so difficult to correct.
I am hoping, that since it does work in streaming, albeit not 100%, it would not be so difficult to correct.
Your Response
Post
Edit Post
Login is required