Download MetaTrader 5

max bars in chart

To add comments, please log in or register
zifu wang
637
zifu wang  
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
Rodrigo Malacarne
Moderator
9633
Rodrigo Malacarne  
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

 

zifu wang
637
zifu wang  
I wanna get that number through MQL5, could you help me?
Rodrigo Malacarne
Moderator
9633
Rodrigo Malacarne  
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)));
zifu wang
637
zifu wang  
Malacarne:

Take a look at the terminal properties.

For instance, you can use:

Thank you very much...
To add comments, please log in or register