On one of my Layouts, I have multiple advanced charts, comprising of several sub minute Candle charts, several sub minute Renko charts, a one minute and three minute Candle charts.
I had been having some problems with some of the Renko charts and the 3 minute chart loading enough data, and the Renko charts exhibited interesting behavior while they loaded.
What I found is that the Renko charts only loaded enough data to fill the chart (I'm using dynamic 00:00 - 24:00 and each Renko chart uses a different definition of what constitutes a bar) which was causing problems since I did not have sufficient data to analyze. This was easily remedied by having approximately 200 bars per chart. Each chart then loaded sufficient data.
I was noticing that the data was coming in chunks. I know this is fairly obvious to anyone who has loaded multiple advanced charts. I did some testing, and one Renko chart loaded 48 bars, then 73, 98, 136, 187, and finally a total of 227 bars. Each time additional data came in, the efs was reloaded, similar in nature to how reloadEFS() works. I confirmed all the bars are reloaded, but premain() is not run, only main().
Once all of the charts had fully loaded, here is the count of the number of bars loaded in each chart:
Each chart was configured to display approximately 200 bars.
I decided to post this because it is interesting, and this behavior may be similar to other configurations that use bars which are not defined using time. (eg volume, tick, Kagi, P&F)
I had been having some problems with some of the Renko charts and the 3 minute chart loading enough data, and the Renko charts exhibited interesting behavior while they loaded.
What I found is that the Renko charts only loaded enough data to fill the chart (I'm using dynamic 00:00 - 24:00 and each Renko chart uses a different definition of what constitutes a bar) which was causing problems since I did not have sufficient data to analyze. This was easily remedied by having approximately 200 bars per chart. Each chart then loaded sufficient data.
I was noticing that the data was coming in chunks. I know this is fairly obvious to anyone who has loaded multiple advanced charts. I did some testing, and one Renko chart loaded 48 bars, then 73, 98, 136, 187, and finally a total of 227 bars. Each time additional data came in, the efs was reloaded, similar in nature to how reloadEFS() works. I confirmed all the bars are reloaded, but premain() is not run, only main().
Once all of the charts had fully loaded, here is the count of the number of bars loaded in each chart:
PHP Code:
7S_Renko = 365 bars loaded
1M_Candle = 964 bars loaded
20S_Candle = 2039 bars loaded
3S_Renko = 719 bars loaded
3M_Candle = 391 bars loaded
5S_Renko = 221 bars loaded
8S_Renko = 227 bars loaded
I decided to post this because it is interesting, and this behavior may be similar to other configurations that use bars which are not defined using time. (eg volume, tick, Kagi, P&F)