Now let me demonstrate a little use case taken from the IBM sync documentation, creating candlestick
charts or live charts that are updating in real time.
And therefore we have to redefine the on bar update function.
And I in sync allows us to actually plot the candlestick charts with the utilize bar plot.
So let's have a look here inside.
And first of all, we have to pass here the bars so that we can download from interactive brokers.
Then we can define a title and then we can also define colors.
And for example, we could color bars with increasing prices in green and with decreasing prices in
red.
And then every time when the function is getting called.
So whenever we get a new bar, we clear the output and plot the candlestick chart one more time.
So let's define the function here.
And this time we start with 110 second bars.
And then we can activate on bar update.
And here we have the live candlestick chart for euro US dollar with ten second bars which are getting
added and updated in real time.
So for example here.
Every ten seconds.
And now we can stop here.
The function one more time and cancel the subscription.
So this was a little demonstration, what you could do with the streaming live bars.
And we will continue here in the next lecture.
Thanks for watching and see you there.
Bye.