Chart.FirstVisibleBarIndex gets shifted when chart is scrolled to left
 
    
            Chart.FirstVisibleBarIndex gets shifted when chart is scrolled to left 
            
                 05 Apr 2025, 14:39
            
                    
when scrolling to left more historical data is loaded and this causes Chart.FirstVisibleBarIndex to shift making controls shift to right.
Replies
                     propconnect
                     07 Apr 2025, 08:51
                                    
RE: Chart.FirstVisibleBarIndex gets shifted when chart is scrolled to left
firemyst said:
And it makes sense because the first visible bar changes.
What are you hoping or expecting to happen?
if display a control for example button it displays incorrectly (shifted to right to the middle of screen) when its x is set to FirstVisibleBarindex.
it displays correctly initially until chart is scrolled to extreme left causing preload of more historical data. then firstvisible bar calculation is messed up
@propconnect

firemyst
07 Apr 2025, 00:31
And it makes sense because the first visible bar changes.
What are you hoping or expecting to happen?
@firemyst