Where is the function ChartSetInteger(...) ?
I want to set the X-range of chart in MQL prigram, is it possiblr?
Can you explain what you mean by "set the X-range of chart" ? Did you mean width in bars or pixels ?
click here ChartSetInteger
Add a time with PeriodSeconds of several bar that you want.
Here's some example https://www.mql5.com/en/forum/9424/388150#comment_388150