watching some indicators videos I have seen that its possible somehow to specify start / end of desired period simply by click on screen (on the bar chart) and selecting start / end bar.
This means that user of an indicator can select desired time period on screen (needed for example for some indicator calculation).
How is possible to code that?

By such a logic I would expect to check what scale is used by main chart and match scale of indicator with scale of main chart.
Comment