Errors, bugs, questions - page 2943

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
MT5 build 2755
The terminal does not count all the ticks
Why did you draw such a conclusion?
MT5 build 2755
Terminal does not count all ticks
Try it like this
Why did you draw this conclusion?
Because as I noticed OnCalculate is called when Ask and Bid prices change, but tick_volume[] only counts Bid changes
The following problem: I had an Expert Advisor on a netting account, it was opening and closing positions, I added a contract manually to the position opened by the robot and after a while the Expert Advisor's log showed errors:
Error when opening a position: 4753 - Position not found
The most interesting thing is that the position is closed, auto-tradingis disabled and EA is deleted from chart, but errors keep appearing.
Because I noticed that OnCalculate is called at Ask and Bid price changes, but tick_volume[] only counts Bid changes
OnTick is called at any change of price and not only (the terminal may require recalculate on many occasions such as additional data download or redistribution of historical data sets).
Tick volume, as well as the chart, is based on the change of bid price. On exchange execution, a separate real volume counter, where all buying and selling transactions are accounted for, is used.
The following problem: I had an Expert Advisor on a netting account, it was opening and closing positions, I added a contract manually to the position opened by the robot and after a while the Expert Advisor's log showed errors:
Error when opening a position: 4753 - Position not found
The most interesting thing is that the position is closed, auto-tradingis disabled and the Expert Advisor is deleted from the chart.
This depends on the logic of the Expert Advisor.
It can remember and think only about its own operations and your manual intervention can spoil the logic of the Expert Advisor.
It depends on the logic of the EA itself.
It can only remember and think about its own operations and your manual intervention can mess up the Expert Advisor's logic.
I understand, but why has this error remained in the terminal? I told you that all positions are closed, auto-trading is disabled, the Expert Advisor is unloaded and even the terminal was restarted!
I understand, but why has this error remained in the terminal? I told you that all positions are closed, auto-trading is off, the Expert Advisor is unloaded and I even restarted the terminal!
Miracles do not happen. Your Expert Advisor is running on one of the charts.