Well you at least inform in a nutshell that metatrader5(5.0.21)has been published and the following has changed... And bring the documentation into conformity. There are not so many changes to make in a few days. Or do you have to check everything by feel?
Well you at least inform in two words that metatrader5(5.0.21)is published and the following has changed... And bring the documentation into conformity. There aren't too many changes to make in a few days. Or do you have to check everything by feel?
MetaTrader for Python online documentation is already available on the website for some of the updated features. Examples are shown for each
Python является современным высокоуровневым языком программирования для разработки сценариев и приложений. Содержит множество библиотек для машинного обучения, автоматизации процессов, анализа и визуализации данных. Пакет MetaTrader для Python предназначен для...
Rashid Zeynalov: Guys, do I understand correctly that you can't get information about open positions in the terminal now?
Yes:
initialize(path=None) Establish connection with the MetaTrader 5 Terminal
wait() Wait for the MetaTrader 5 Terminal to connect to a broker's server
shutdown() Disconnect from the MetaTrader 5 Terminal
version() Get the MetaTrader 5 Terminal version
terminal_info() Get the parameters of the MetaTrader 5 terminal
account_info() Returns information of current account
copy_ticks_from(symbol, from, count, flags) Get ticks starting from the specific date
copy_ticks_range(symbol, from, to, flags) Get ticks from the specified period
copy_rates_from(symbol, timeframe, from, count) Get bars starting from the specific date
copy_rates_from_pos(symbol, timeframe, start_pos, count) Get bars starting from the specified position
copy_rates_range(symbol, timeframe, date_from, date_to) Get bars from the specified period
positions_total() Returns the number of open positions
positions_get([symbol=\"SYMBOL\"],[ticket=TICKET]) Returns all open positions, can be filtered by symbol or ticket
orders_total() Returns the number of orders
orders_get([symbol=\"SYMBOL\"],[ticket=TICKET]) Returns all orders, can be filtered by symbol or ticket
history_orders_total(from, to) Returns the number of orders in selected range from the history
history_orders_get(from, to) Returns orders in selected range from the history or filtered by position id, ticket
history_deals_total(from, to) Returns the number of deals in selected range from the history
history_deals_get(from, to) Returns deals in selected range from the history or filtered by position id, ticket
order_check(request) Checks if there are enough funds to execute the required trade operation
order_send(request) Sends trade requests to a server
order_calc_margin(action, symbol, volume, price) Calculates the margin required for the specified order
order_calc_profit(action, symbol, volume, price_open, price_close) Calculates the profit for the current account, in the current market conditions, based on the parameters passed
symbol_info(symbol) Returns full information for a specified symbol
symbol_info_tick(symbol) Returns current prices of a specified symbol
symbol_select(symbol,[enable]) Selects a symbol in the Market Watch window or removes a symbol from the window
The documentation hasn't been finalised yet.
Don't forget to update to the latest version of the library, which is currently 21:
Well you at least inform in a nutshell that metatrader5(5.0.21)has been published and the following has changed... And bring the documentation into conformity. There are not so many changes to make in a few days. Or do you have to check everything by feel?
Checked and it works:
Let's keep groping :)
Well you at least inform in two words that metatrader5(5.0.21)is published and the following has changed... And bring the documentation into conformity. There aren't too many changes to make in a few days. Or do you have to check everything by feel?
MetaTrader for Python online documentation is already available on the website for some of the updated features. Examples are shown for each
Of course I've seen it. Running it through the documentation
And this works and it's the correct initialisation.
Just correct the documentation.
Of course I've seen it. Running it according to the documentation.
login is a mandatory unnamed parameter, remove login=.
And this works and it's the correct initialisation.
Just correct the documentation.
We will complete the description, thank you for the message.
And this works and it's the correct initialisation.
Just correct the documentation.
If now try to reconnect
All in all it's very raw so far...
If we now try to reconnect
All in all, it's all very crude so far...
Bring the line in line with the examples that Renat showed.
Forum on trading, automated trading systems & strategy testing
MetaTrader 5 Python User Group - How to use Python in MetaTrader
Renat Fatkhullin, 2020.02.18 22:05
Guys, do I understand correctly that you can't get information about open positions in the terminal now?
Yes:
The documentation hasn't been finalised yet.
Don't forget to update to the latest version of the library, which is currently 21: