max bars in chart

 
How to get number of max bars in chart? Chart Properties?https://www.mql5.com/en/docs/constants/chartconstants/enum_chart_property
Documentation on MQL5: Standard Constants, Enumerations and Structures / Chart Constants / Chart Properties
Documentation on MQL5: Standard Constants, Enumerations and Structures / Chart Constants / Chart Properties
  • www.mql5.com
Standard Constants, Enumerations and Structures / Chart Constants / Chart Properties - Documentation on MQL5
 
kwang1:
How to get number of max bars in chart? Chart Properties?https://www.mql5.com/en/docs/constants/chartconstants/enum_chart_property

Tools -> Options

 

 
I wanna get that number through MQL5, could you help me?
 
kwang1:
I wanna get that number through MQL5, could you help me?

Take a look at the terminal properties.

For instance, you can use:

Print("Max bars = "+IntegerToString(TerminalInfoInteger(TERMINAL_MAXBARS)));
 
Malacarne:

Take a look at the terminal properties.

For instance, you can use:

Thank you very much...