I use function Bar() to find out how many bars are in history. When I run it for D1 timeframe I receive 437 bars when debugging on history data, but more than 6000 when debugging on real data. I have "Unlimited" number of bars in Tools -> options. Is there some settings for debugging on history data or why I get only 437 D1 bars when debbuging on history data? The same applies to other timeframes, when debugging on real data Bars() and also iBars() return bigger numbers. When I use CopyOpen (or CopyClose, ...) I receive just that much values as Bars() says, so I think Bar() function is OK, I am wondering why I have limited history when debugging on history data and if it is possible to change it.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hi,
I use function Bar() to find out how many bars are in history. When I run it for D1 timeframe I receive 437 bars when debugging on history data, but more than 6000 when debugging on real data. I have "Unlimited" number of bars in Tools -> options. Is there some settings for debugging on history data or why I get only 437 D1 bars when debbuging on history data? The same applies to other timeframes, when debugging on real data Bars() and also iBars() return bigger numbers. When I use CopyOpen (or CopyClose, ...) I receive just that much values as Bars() says, so I think Bar() function is OK, I am wondering why I have limited history when debugging on history data and if it is possible to change it.
Thanks for all answers.