- ago
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
0
541
Solved
4 Replies

Reply

Bookmark

Sort
Cone8
 ( 5.88% )
- ago
#1
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?
0
- ago
#2
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:

CODE:
if (Bars.HasStreamingBar ){             DrawHeaderText("Real Time", WLColor.Green, 12);       }
0
Glitch8
 ( 9.28% )
- ago
#3
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.
0
Best Answer
- ago
#4
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.
0

Reply

Bookmark

Sort