TimeToX not correct (cTrader v5.0.21, Algo v1.0.9)

Created at 18 May 2024, 10:30
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
TO

tomas.malukas.work

Joined 14.07.2023

TimeToX not correct (cTrader v5.0.21, Algo v1.0.9)
18 May 2024, 10:30


Hi Team,

TimeToX is not working correctly as noted in the screenshot, bugs:
1. Variable a and d contains different datetime but results are same. 
1.1. You may think that variable_a contains LastBar which is off chart and mouseX having 3914 is/or-should-be equal to Chart.Width but this is not the case, both values are different
1.2. All variables (d, e, f)  should have same value as being lastvisiblebar, isn't?

Overall expectation is TimeToX correctly calculates X value when there are Bar weekend gaps and assumes past and feature also.

2. Variable g and by FirstVisibleBar, x value should be 0 or 1, but nothing higher

 

Related info:

Thanks,
TomasM

 

 


@tomas.malukas.work