简体   繁体   English

如何检查 MQL5 中是否允许账户交易?

[英]How to check if Account Trading is Allowed in MQL5?

What is the equivalent of MQL4's AccountInfoInteger(ACCOUNT_TRADE_ALLOWED) in MQL5? MQL5 中 MQL4 的AccountInfoInteger(ACCOUNT_TRADE_ALLOWED)等价物是什么?

Also what about the equivalent of?也相当于什么? TerminalInfoInteger(TERMINAL_TRADE_ALLOWED)

they are not listed here: https://www.mql5.com/en/articles/81它们未在此处列出: https ://www.mql5.com/en/articles/81

In MQL5, the equivalent to AccountInfoInteger(ACCOUNT_TRADE_ALLOWED) is the same function AccountInfoInteger .在 MQL5 中,等价于AccountInfoInteger(ACCOUNT_TRADE_ALLOWED)是相同的函数AccountInfoInteger

It's also the same for TerminalInfoInteger(TERMINAL_TRADE_ALLOWED) - TerminalInfoInteger TerminalInfoInteger(TERMINAL_TRADE_ALLOWED) - TerminalInfoInteger也一样

You should take care of the official Documentation and not only look at one single article from a user like us.您应该注意官方文档,而不是只看像我们这样的用户的一篇文章。

You can find it by useing "F1" on your written Code or behind the following links:您可以在您的书面代码上或在以下链接后面使用“F1”找到它:

https://www.mql5.com/en/docs/constants/environment_state/accountinformation https://www.mql5.com/en/docs/constants/environment_state/accountinformation

https://www.mql5.com/en/docs/runtime/tradepermission https://www.mql5.com/en/docs/runtime/tradepermission

This should answer your questions.这应该回答你的问题。 Nice day美好的一天

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM