In Strategy Tester, what is the way to check the permissibly of trade?

 

In MQL5, to test allowed trade symbol, I will try the following command:

SymbolInfoInteger(_Symbol, SYMBOL_TRADE_MODE)

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?

 
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
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