Let me clarify myself a little bit more.
* For some reason, my hourly data starts from 1/1/2010 10:00AM (note that, the hourly bars of a typical trading day starts at 09:00 AM. i.e. my dataseries somehow starts from the "second hourly bar" of the day,
* And, there are 8 hourly bars in Turkish Equity markets i.e. 9:00, 10:00, 11:00, 12:00, recess to the markets, 14:00, 15:00, 16:00, 17:00 = 8 hourly bars for a standard trading day.
* Under this condition, I use the SetScaleDaily() and expect this function to act as follows:
- use the first "7" hourly bars to create the daily bar of the "first" date,
- use the next "8" hourly bars to create the daily bar of the second date,
- etc.
* However, this function doesnt behave as expected, and cannot collide the hourly data info accurately in the form of a daily bar (probably when the first bar of the hourly data is among the mid bars of the day)
* Please have a look at the following snippet:
- the upper pane shows the daily bars (generated with this function)
- lower part is the original data (i.e. the hourly bar data)
- as you might observe, set scale somehow used the first "13 bars"!!! (why?) to generate the daily bar (using the hourly bars)
- that is not the intended behaviour
My suggestion might be that, does wealthlab assume somehow that 16:00 bar is the last bar of the day?
**
Or, forget my suggestion, and I appreciate if you can comment on this problem and the remedy.
Kind regards,