Python является современным высокоуровневым языком программирования для разработки сценариев и приложений. Содержит множество библиотек для машинного обучения, автоматизации процессов, анализа и визуализации данных. Пакет MetaTrader для Python предназначен для...
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
好吧,你至少可以简明扼要地告诉我们,metatrader5(5.0.21)已经发布了,而且以下内容已经发生了变化。并使文件符合要求。在几天内没有那么多的变化。还是你必须凭感觉检查所有的东西?
经检查,它是有效的。
让我们继续摸索吧 :)
好吧,你至少要用两个字告知metatrader5(5.0.21)已经发布,并且以下内容已经发生了变化......并使文件符合要求。在几天内没有太多的变化。还是你必须凭感觉检查所有的东西?
网站上已经有MetaTrader for Python的 在线文档,可用于一些更新的功能。每个例子都显示了
当然,我已经看到了。通过文件运行它
而这是有效的,是正确的初始化。
纠正文件即可。
当然,我已经看到了。按照文件规定运行它。
login是一个强制性的未命名参数,删除login=。
而这是有效的,是正确的初始化。
纠正文件即可。
我们将完成描述,感谢您的留言。
而这是有效的,是正确的初始化。
纠正文件即可。
如果现在尝试重新连接
总而言之,到目前为止,它是非常原始的...
如果我们现在尝试重新连接
总而言之,到目前为止,这一切都是非常粗糙的......
使这条线与Renat展示的例子一致。
关于交易、自动交易系统和策略测试的论坛
MetaTrader 5 Python用户组 - 如何在MetaTrader中使用Python
Renat Fatkhullin, 2020.02.18 22:05
伙计们,我的理解是否正确,你们现在不能在终端获得有关未结头寸 的信息?
是的。
文件还没有最后确定。
不要忘记更新到最新版本的库,目前是21。