Open alexschwantes opened 1 week ago
With a symbol resolution of Hour, indicators of resolution.Daily are the same as timedelta(days=1).
Hey! this is because resolution daily will respect daily precise end times (if enabled), while a time span will respect the given span
Hi @Martin-Molinero, Yes I have read this before, however it's still not totally clear how they add up, shouldn't timedelat of 1 day still encompass a trading day, assuming that it starts at the same time as the resolution.daily?
However, I think there is more going on here than that.
The second picture in the initial post shows where the symbol is subscribed at a Daily resolution, and the indicators shown are Daily and timedelta. Both these charts are identical which is nice. For me, this graph represents the truth.
However, with the first picture, when the symbol is set to an Hourly resolution, neither the Daily resolution or the timedelta indicator charts come close to matching the 'truth' chart. In fact it almost looks like the timedelta chart is closer to the actual truth.
Here is an updated first picture that shows reporting just once a day to remove the flat parts from the initial code that reported every hour. Notice that it still doesn't look the same as the 'Truth' charts... Even the first values for the STO are wildly off..
When the symbol resolution is set to Hour, indicator values using Daily resolution are different from indicators using timedelta(days=1)
Expected Behavior
With a symbol resolution of Hour, indicators of resolution.Daily are the same as timedelta(days=1).
Actual Behavior
values are different. Spot the difference between the two graphs:
When the symbol resolution is set to the same as the indicators ie. Resolution.DAILY, the graphs produced are the same. However they are different to the daily resolution graphs above ...
Potential Solution
Reproducing the Problem
System Information
cloud
Checklist
master
branch