Errors, bugs, questions - page 2596

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
Transaction generation error (MqlTradeTransaction structure).
Replay error: Send first market order with the volume of 1 lot to Long, send second market order with the volume of 2 lots to Short.
Error in filling the field in the MqlTradeTransaction->position structure. The field is filled with the ticket of the previous position. When you continue trading using the orders that reverse the position, the given field displays a strange mishmash of the old and new position tickets.
I checked it on the Moscow Exchange with brokers: Otkritie and BKS. In the tester the error is also reproduced.
Screens of transactions illustrating the error on these transactions:
Otkrytie:
BCS:
Tester:
Transaction generation error (MqlTradeTransaction structure).
Replay error: Send first market order with the volume of 1 lot to Long, send second market order with the volume of 2 lots to Short.
Error in filling the field in the MqlTradeTransaction->position structure. The field is filled with the ticket of the previous position. When you continue trading using the orders that reverse the position, the given field displays a strange mishmash of the old and new position tickets.
I checked it on the Moscow Exchange with brokers: Otkritie and BKS. The error is reproduced in the tester too.
Screens of transactions illustrating the error on these transactions:
Otkrytie:
BCS:
Tester:
There is only one position in "netting" trade mode. During its lifetime its identifier (position id) does not change. The identifier is equal to the ticket of the very first order with which the position was opened.
I am aware of that. But when you "flip" a previous position is closed, and a new position (with a new ticker) in the opposite direction is opened. Which in these transactions is reflected with an error.
It doesn't close. You can roll over in the Terminal for months and the Terminal will assume there was only one position. And the trading history will show only one entry for months in the closed positions display mode.
Good day. I want to run debugging of my EA on historical data. But it likes to run MovingAverage.ex5, not my EA. I want to debug on real data and it will run my EA.
Describe step by step (with screenshots) exactly what you do and where you click.
Afternoon. I want to do debugging of my EA on historical data. But the debugger runs MovingAverage.ex5, not my EA. I want to debug on real data and it's not my EA.
The advisor may not be in the Experts folder. In the Scripts folder, for example.
Describe step by step (with screenshots) exactly what you do and where you click.
It doesn't close. You can roll over in the Terminal for months and the Terminal will assume that there was only one position. And the trading history will only show one entry for months in the closed positions display mode.
You are wrong. When you flip a position the ticket of the active position is changed to another one. And the terminal displays it correctly. But in transactions it gives wrong information.
You are wrong. When a position is reversed, the ticket of the active position changes to a different one. And the terminal displays this correctly. But it gives wrong information in transactions.
POSITION_TICKET changes, POSITION_ID does not.