Features of the mql5 language, subtleties and tricks - page 169
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
By the way, the analogue of Assert
i can't be sure i need it!
If developers had given exit / abort as standard, then it would be possible to correctly terminate data processing, if, for example, TF is not ready - OHLC data, it would also be useful for processing order sending to server... it would be convenient to interrupt the code at any place and exit before the next tick without endless return() to exit from OnTick()
Although the usability seems to have been improved. In general, every function or method call with possible output, including nested functions, should be wrapped in _call macro. For those interested, feel free to write the rest for all handlers. It was written on a crank, as a test of an idea, so it was not tested, from the word - at all.
There is no protection in MT5 against accidental closure of the terminal. There was such a scenario recently.
This is a very unpleasant situation during e.g. Batch Optimisation. But it's even worse for the Battle Advisor. You may be stupid not to notice that you have killed your battle terminal.
You have put such a protection.
When you close it, a message appears for five seconds. So you can figure out what really happened. It is strange that there is no protection in the Terminal.
There is no protection in MT5 against accidental closure of the terminal. There was such a scenario recently.
This is a very unpleasant situation during e.g. Batch Optimisation. But it's even worse for the Battle Advisor. You may be stupid not to notice that you have killed your battle terminal.
You have put such a protection.
When you close it, a message appears for five seconds. So you can figure out what really happened. Strange that the Terminal doesn't have a protection.
There are a few simpler options.
There are a few simpler options.
On VPS may close too. I have experts there sending Push.
And it's really easy to hit the wrong cross when the wind interface slows down. I've done it, now I close it on taskbar in context menu.
There are a few easier options.
Install a desktop manager and dedicate one desktop to the browser and stuff, and dedicate another desktop to the terminals.
Or install Linux (the desktop manager comes with it :) )
By the way, the analogue of Assert
Forum on trading, automated trading systems and strategy testing
Libraries: MT4Orders
fxsaber, 2020.04.07 18:47
Partial execution is very easy to find in MT5.On a hedge a position can consist of several IN trades. This is done by partial execution.
In this case the order that is partially executed will change its ORDER_TIME_SETUP(_MSC) to the time of the first (possibly penultimate) trade. In other words, it would be impossible to determine from the history when, for example, BuyLimit was placed.
As a consequence, the position on the hedge can have a fractional opening price, as can often be seen on the netting.