Questions from Beginners MQL5 MT5 MetaTrader 5 - page 698
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
But if a position was opened yesterday and closed today, the history will show a Trade with the opening time today, it just closes yesterday's position! Or am I wrong?
You need to collect the trades in the position history by DEAL_POSITION_ID. If you can't, whistle a bit later, I'll build an example.
Vladimir, I have this thought/idea...
Is there a possibility to add examples posted in this branch in response to questions on MQL5 commands into documentation? That would be very handy.
In the history of deals you need to collect trades in position by DEAL_POSITION_ID. If you can not, whistle later, I will build an example.
I mean:
Select deal IN(today), find deal OUT in the history, compare DEAL_POSITION_ID, if they are the same then calculate the profit?
Have I got it right?
I mean:
Select deal IN(today), find deal OUT in the history, compare DEAL_POSITION_ID, if they are the same then calculate the profit?
I have correctly understood?
In the general case, we need to summarize all deals of the OUT type for eachDEAL_POSITION_ID.
In general, it is necessary to summarise all transactions of type OUT for eachDEAL_POSITION_ID.
Is it possible to select objects and move them in the tester in MT5? It was possible in 4, but it is not possible in 5...
how to prescribe the following :
If the price has changed by 1%
how to prescribe the following :
If the price has changed by 1%
Determine which price corresponds to 0% and which corresponds to 100% and calculate.