NabiKAZ:
In MQL5, to test allowed trade symbol, I will try the following command:
In real terms, the value of 0 is equivalent to SYMBOL_TRADE_MODE_DISABLED.
But in the tester, the value of 4 equals SYMBOL_TRADE_MODE_FULL. It's incorrect.
In Strategy Tester, what is the way to check the permissibly of trade?
https://www.mql5.com/en/docs/standardlibrary/tradeclasses/cterminalinfo/cterminalinfoistradeallowed
Documentation on MQL5: Standard Library / Trade Classes / CTerminalInfo / IsTradeAllowed
- www.mql5.com
Standard Library / Trade Classes / CTerminalInfo / IsTradeAllowed - Reference on algorithmic/automated trading language for MetaTrader 5
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
In MQL5, to test allowed trade symbol, I will try the following command:
In real terms, the value of 0 is equivalent to SYMBOL_TRADE_MODE_DISABLED.
But in the tester, the value of 4 equals SYMBOL_TRADE_MODE_FULL. It's incorrect.
In Strategy Tester, what is the way to check the permissibly of trade?