Retrieving ticks bar limit ?

 

Hi


I created a small indicator that retrieves all the ticks from "barsAgo" bars ago.

when I enter bigger numbers like here : 287 on USDCHF M15, no ticks are retrieved.


2020.05.10 12:37:51.088 Ticks verify 01_ (USDCHF,M15) Pair = USDCHF 15

2020.05.10 12:37:51.088 Ticks verify 01_ (USDCHF,M15) nticks 0

2020.05.10 12:37:51.088 Ticks verify 01_ (USDCHF,M15) bars ago = 287

2020.05.10 12:37:51.088 Ticks verify 01_ (USDCHF,M15) num false ask ticks 0 / 0

2020.05.10 12:37:51.088 Ticks verify 01_ (USDCHF,M15) num false bid ticks 0 / 0


the limit seems to change from pair to pair and never a round number


My question is : If I need to retrieve past ticks data, how can I increase the number of bars available ? do I have to perform a backtest to download the ticks ?


thanks so much

EDIT : here is a new version that finds the limit of the available bars


Jeff

Documentation on MQL5: Timeseries and Indicators Access / Bars
Documentation on MQL5: Timeseries and Indicators Access / Bars
  • www.mql5.com
If the start_time and stop_time parameters are defined, the function returns the number of bars in the specified time interval, otherwise it returns the total number of bars. If data for the timeseries with specified parameters are not formed in the terminal by the time of the Bars() function call, or data of the timeseries are not synchronized...
 
Jean Francois Le Bas:

Hi


I created a small indicator that retrieves all the ticks from "barsAgo" bars ago.

when I enter bigger numbers like here : 287 on USDCHF M15, no ticks are retrieved.


2020.05.10 12:37:51.088 Ticks verify 01_ (USDCHF,M15) Pair = USDCHF 15

2020.05.10 12:37:51.088 Ticks verify 01_ (USDCHF,M15) nticks 0

2020.05.10 12:37:51.088 Ticks verify 01_ (USDCHF,M15) bars ago = 287

2020.05.10 12:37:51.088 Ticks verify 01_ (USDCHF,M15) num false ask ticks 0 / 0

2020.05.10 12:37:51.088 Ticks verify 01_ (USDCHF,M15) num false bid ticks 0 / 0


the limit seems to change from pair to pair and never a round number


My question is : If I need to retrieve past ticks data, how can I increase the number of bars available ? do I have to perform a backtest to download the ticks ?


thanks so much

EDIT : here is a new version that finds the limit of the available bars


Jeff

ok I will answer to my own question. To break the limit of 287 bars of tick data, I performed a backtest 3 days before the last date on the same pair, and since then I got more data.


the question is : can I programatically download tick data for the bars that are not yet downloaded within an indicator ? (without having to run an EA for the needed period) ?


this would be a great feature for the next MT5 (or MT6?)


thanks