MetaTrader 5 Python用户组 - 如何在Metatrader中使用Python - 页 45

 

尝试作为。

mt5.MT5_TIMEFRAME_H4
 
Marcos Tebrich:

请大家帮助我。


在MetaEditor或MetaTrader 5中直接运行这些脚本
 
Дмитрий Прокопьев:

有可能远程运行吗?即指定jupyter运行的服务器的IP,还是只指定本地?

只有在当地。

 
Rashid Umarov:
在MetaEditor或MetaTrader 5中直接运行这些脚本

脚本没有被下载。

未找到页面c.mql5.com

没有找到https://c.mql5.com/3/308/symbol_select.py 的网页地址

HTTP ERROR 404
 
Vladimir Karputov:

脚本没有被下载。

未找到页面c.mql5.com

没有找到https://c.mql5.com/3/308/symbol_select.py 的网页地址

HTTP ERROR 404

然后,例子可以从这里的帮助中获得 -https://www.mql5.com/en/docs (MetaTrader for Python- 与Python程序一起工作的模块。)

刚刚检查过--更新的版本。还不是所有的功能都有记录,但足以让人理解。 所有的脚本都在那里。


MQL5 Reference - How to use algorithmic/automated trading language for MetaTrader 5
MQL5 Reference - How to use algorithmic/automated trading language for MetaTrader 5
  • www.mql5.com
MetaQuotes Language 5 (MQL5) is a high-level language designed for developing technical indicators, trading robots and utility applications, which automate financial trading. MQL5 has been developed by MetaQuotes Software Corp. for their trading platform. The language syntax is very close to C++ enabling programmers to develop applications in...
 
Rashid Umarov:
在MetaEditor或MetaTrader 5中直接运行这些脚本

附上ZIP文件

附加的文件:
 
Renat fatkhullin :

尝试作为。

谢谢你,我试过了,但我有同样的错误

 
Marcos Tebrich:

谢谢你,我试过了,但我有同样的错误

MT5_的前缀现在已经被淘汰了。

mt5.TIMEFRAME_H4
 
Marcos Tebrich:

请谁能帮助我。


如果是的话。

from MetaTrader5 import *

那么

initialize ()

如果

import MetaTrader5 as mt5

然后

mt5.initialize ()

同样,其余的数据包命令也是如此。

祝好运