has anybody found how to get the info of
a) market closed - in 509 you can get the error-msg
if you send an order and the market is closed - I would prefer a value from MarketInfo() or TerminalInfoInteger() as a closed market is .th. different than TERMINAL_TRADE_ALLOWED.
b) portable-mode I think it would help a lot if you have to use WinFile.mqh to know whether the terminal was started in /portable-mode or not. TerminalInfoInteger(..) has not such a property_id.
Thanks in advance
a) I'd like to have another easier and faster way than sending a fake order and catching the error or delete it! Do you know an alternative?
"Why ? What to do ?"
b) mt4 has with its file-functions limited access to the 'environment' and I think mt4 should confess where it is playing in an easier way than by a string examination of the TERMINAL_DATA_PATH
PS: I send a request to the service desk, but I doubt that ....
I doubt, too. In normal operation, you can hardly ever get the "market closed" error, just because there are no ticks to trigger the order.
And TERMINAL_DATA_PATH seems very handy to test the portable mode in one line comparison, so I am not really sure, if they could make it easier for you.
a) See SymbolInfoSessionTrade(). I have not tested with new MT4 though
a) this looks good - I'll check tomorrow and next weekend.
(There are some new functions that are new and I'd like to have a list of them, a list of what is new and what has changed - that would make life so much easier ;)
b) I have installed mt4 4 times (one for each kernel of my cpu) and some files - centrally saved - must be copied by the EA upon test begin in the correct mt4-folders.
Therefore I'd like to have cheap way (code lines, readability,..) to do that.
To add comments, please log in or register