set the X-range of chart in MQL prigram, is it possiblr?

 

There is a function ChartGetInteger(...)

Where is the function  ChartSetInteger(...) ?

 

I want to set the X-range of chart in MQL prigram, is it  possiblr?

 
DxdCn:

There is a function ChartGetInteger(...)

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

 
You meant on time scale direction?
 
I want to draw objectes using future datatime, how to set  its position?
 
DxdCn:
I want to draw objectes using future datatime, how to set  its position?

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 

  

datetime addition
datetime addition
  • www.mql5.com
but it draws the line at 2012.
Reason: