MetaTrader 5 Python User Group - how to use Python in Metatrader - page 65
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
Upgraded to version 2432.
But the error is still there...
Tried it on different brokers even...
copy_rates_from does not provide enough data on the M1 timeframe.
Is this the right course of action?
copy_rates_range does not provide enough data on the M1 timeframe.
Is this the right course of action?
Pay attention to note on copy rates range
Note
See the CopyRates() function for more information.
The MetaTrader 5 terminal provides bars only within a history available to a user on charts. The number of bars available to users is set in the "Max. bars in chart" parameter.
When creating the 'datetime' object, Python uses the local time zone, while MetaTrader 5 stores tick and bar open time in UTC time zone (without the shift). Therefore, 'datetime' should be created in UTC time for executing functions that use time. Data received from the MetaTrader 5 terminal has UTC time.
Pay attention at Note on copy rates range
There is a bug in copy rates. I posted this several times but nobody has acknowledged it.
I have a script that ran for a few hours. but then I start getting these errors, Invalid_Stops, and then it does not open anymore trades.
Can anybody please help direct where to start looking for this issue?
Thank you
I have a script that ran for a few hours. but then I start getting these errors, Invalid_Stops, and then it does not open anymore trades.
Can anybody please help direct where to start looking for this issue?
Thank you
What was the current price (Bid and Ask)? What was the freeze level (SYMBOL_TRADE_FREEZE_LEVEL)?