My problem happens when I code for time independent charts such as Renkos.
When price moves really fast, the bars get indexed with the same Time which makes referencing them completely wrong.
The following is an example of when three or more bars will have the exact same time but different bar index. When trying to get the barsAgo value I will get the first bar with that time instead of for example the third.
I would really like some Best practice suggestions on how to solve this because it is causing both logic and drawing methods to be completely off.
Comment