[in] Структура типа MqlTradeRequest, которая описывает требуемое торговое действие. Обязательный неименованный параметр. Пример заполнения запроса и состав перечислений смотрите ниже. Идентификатор эксперта. Позволяет организовать аналитическую обработку торговых ордеров. Каждый эксперт может выставлять свой собственный уникальный...
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.
# create 'datetime' objects in UTC time zone to avoid the implementation of a local time zone offset # get bars from USDJPY M5 within the interval of 2020.01.10 00:00 - 2020.01.11 13:00 in UTC time zone time open high low close tick_volume spread real_volume...
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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)?