Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
MQL5 forum: Expert Advisors and Automated Trading
- www.mql5.com
How to create an Expert Advisor (a trading robot) for Forex trading
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I pull my candles in this way:
lines = mt5.copy_rates_from_pos(chart, mt5.TIMEFRAME_M5, 0, 25)
It should return the last 25 candles. Sometimes it does, sometimes it doesn't.
Success output:
Failure output:
'linestamp' is the timestamp in %H%M format.
Both of these outputs are from the same pull at the same hour, but for different charts.
It can fail or succeed on any chart. There doesn't seem to be a pattern, specific time or specific chart.