What limits the number of candles returned by CopyRates()?
See original GitHub issueI’m not sure this is an issue, but is seem like the CopyRates
function is only able to receive 3086 candles.
Since my terminal MaxBars
are set to 512,000, I believe it is a broker issue.
INFO: CopyRates: Symbol : EURUSD
INFO: CopyRates: TimeFrame : M5
INFO: CopyRates: Requested : 10000 candles
INFO: CopyRates: Received : 3086 candles
INFO: CopyRates: ErrorCode : 0
This is approximately (3086 candles * (1 hr/12 candles) * (1 day/24 hr)
= 10 days of trading data. This also coincide with the chart scroll back.
Is there a way to see a priori, how much data is available on the chart, given a TF?
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
CopyRates - Timeseries and Indicators Access
CopyRates. Gets history data of MqlRates structure of a specified symbol-period in specified quantity into the rates_array array. The elements ordering of ...
Read more >How to get the IBands Indicator data on a sell trade
My strategy picked out close[8] which was at 1.69230 how can i find out on which candle in the m5 chart was at...
Read more >learn mql5 tutorial basics - SIMPLE SPREAD FILTER - YouTube
Otherwise, if the close price for candle one is below the close price ... If the signal equals sell and positions total returns...
Read more >CopyRates - Timeseries and Indicators Access
CopyRates. Gets history data of MqlRates structure of a specified symbol-period in specified quantity into the rates_array array. The elements ordering of ...
Read more >Is there any function for testing Candle Bar closed in MQL5?
Use CopyRates() or SeriesInfoInteger(_Symbol,_Period,SERIES_LASTBAR_DATE) . static is a keyword in MQL4/5 with very specific properties. Many ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@eabase MT5 !!!
MT5 Python Example Count is at 250000. no problem