i want when my chart is created, chart automaticly zoom to 20 or 10 last candles.
its default zoom when chart creating.
this picture describes what i want.
is there a solution for this question?
thanks.
You can achieve that in several different ways:
setVisibleLogicalRange
method to change visible rangesetVisibleRange
method to change visible range