Open metaperl opened 3 years ago
That is the default behavior programmed by MetaQuotes. In order to modify that behavior using pymt5adapter you have to use the context manager and set the raise_on_errors
flag.
import pymt5adapter as mta
with mta.connected(raise_on_errors=True):
s = mta.symbol_info_tick('Not a symbol')
symbol_info_tick does not ensure that a valid value was obtained. If one has not shown the symbol in the Market Watch window then 'None' is returned for the symbol instead of an exception.