Download MetaTrader 5

max bars in chart

To add comments, please log in or register
zifu wang
636
zifu wang 2014.02.25 04:42 
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
9942
Rodrigo Malacarne 2014.02.25 06:17  
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
636
zifu wang 2014.02.25 06:23  
I wanna get that number through MQL5, could you help me?
Rodrigo Malacarne
Moderator
9942
Rodrigo Malacarne 2014.02.25 06:49  
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
636
zifu wang 2014.02.25 10:07  
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