Features of the mql5 language, subtleties and tricks - page 109
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
logical - it's a coup.
Wrote the information without assessing the logicality. If it is affected, the PositionID should have changed in the same way.
It's not changing now. If this is a bug, that would be great!
Therefore a question. Should the DEAL_ENTRY_INOUT transaction change the PositionID to DEAL_ORDER?
I think it should. This behaviour would be very convenient/right.Wrote the information without assessing the logic. If it is affected, however, the PositionID should have changed in the same way.
It's not changing now. If this is a bug, that would be great!
Therefore a question. Should the DEAL_ENTRY_INOUT transaction change the PositionID to DEAL_ORDER?
It says no. https://www.mql5.com/ru/docs/constants/tradingconstants/positionproperties#enum_position_property_integer
Although it was written earlier that yes, and the Position ID was changed.
It says no. https://www.mql5.com/ru/docs/constants/tradingconstants/positionproperties#enum_position_property_integer
Perhaps there is some good reason for that. From my vantage point, it doesn't seem right at all.
Although before it was written that yes, and the Position ID was changed.
I ask the developers to clarify the situation. When the PositionID changes, then after five flips, the Trading History tab in the Positions view will show five positions.
Now (the PositionID does not change during a flip) only one position is always shown. This is, to put it mildly, a strange solution.
Forum on trading, automated trading systems and trading strategy testing
New version of MetaTrader 5 build 1930: Floating chart windows and .Net libraries in MQL5
fxsaber, 2018.11.09 16:19
In the "by real ticks" mode, the Tester generates the bars independently - on the arrival of the ticks. For this reason, the bar history of a custom symbol in the Terminal and in the Tester may be quite different.
We've noticed that the settings of the tester are often reset after compilation, if this Expert Advisor has been previously selected in it. This is annoying, to say the least. After each compilation, we have to go to the tree of Expert Advisors and search for our EA. If anyone doesn't know, there is a recipe for the Tester not to reset. You should run the Expert Advisor once in debug mode on the history - CTRL+F5. After that any recompiling will not affect Tester settings.
Same thing, noticed it yesterday!
Fixed it this way: After compiling new version (New file name) you have to restart the terminal. - Maybe it does not update mqlcache
After that, tester doesn't reset to previous file during compilation.
This problem appeared several times before, then disappeared. Then it reappeared again....
Z.I. Didn't read the meaning of your words, and you were advising rather than asking...
Anybody here? Check the history download script...
Am I the only one who gets frozen to death? The script is taken from the help...
Forum on trading, automated trading systems and trading strategy testing
Unclear situation when pending orders trigger.
fxsaber, 2018.11.26 13:37
There is also a situation like this:
For example, there are no positions or orders - PositionsTotal = 0, OrdersTotal = 0.
You set a market order. PositionsTotal = 0, OrdersTotal = 1.
The market order is executed - OrdersTotal = 0. But PositionsTotal = 0!
such that PositionsTotal can (not difficult to reproduce) change.
For example, PositionsTotal returns zero just before PositionsSelectBytTicket, which returns true.