Closed eabase closed 3 years ago
https://docs.mql4.com/series/copyrates
look at the example
@KptKuck
List<MqlRates>
for both MT4 and MT5 version, which is not of the format you linked to. <int>
whereas mtapi choose to deliver a list (as above)? This works in Py3:
rA = client.CopyRates(SYM, TF, startPos, count) # MT4: List<MqlRates>
len(rA)
# 3112
Look like I a might be able to use iBars()
...
cc=client.iBars('EURUSD',5)
# 3112
Still no answer if this is a broker, buffer issue, or an API issue? (What is setting the limit?)
Try a restart from MT4 after setting MAX_BARS
This is not a MAX_BARS
issue, AFAIK.
Most likely a broker issue. (Scrolling back the charts give the same limits.)
@eabase ok
I think I just have a really shitty broker. So I'll close this for now.
I think I just have a really shitty broker. So I'll close this for now.
MT5 Python Example Count is at 250000. no problem
@KptKuck
Can you show how you got the events to work for you?
I'm not able to get the ConnectionStateChanged
working properly.
@eabase MT5 !!!
Great! My first attempt didn't work for some reason.
I'm not sure this is an issue, but is seem like the
CopyRates
function is only able to receive 3086 candles. Since my terminalMaxBars
are set to 512,000, I believe it is a broker issue.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?