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
Open or pending.
MT4:
Do not assume history has only closed orders.
OrderType() == 6, 7 in the history pool? - MQL4 programming forum #4 and #5 (2017)
Do not assume history is ordered by date, it's not.
Could EA Really Live By Order_History Alone? (ubzen) - MQL4 programming forum (2012)
Taking the last profit and storing it in a variable | MQL4 - MQL4 programming forum #3 (2020)
Total Profit is OrderProfit() + OrderSwap() + OrderCommission(). Some brokers don't use the Commission/Swap fields. Instead, they add balance entries. (Maybe related to Government required accounting/tax laws.)
"balance" orders in account history - Day Trading Techniques - MQL4 programming forum (2017)
I am yet to find solution to my problem could somebody help me here is the full code I have written, your assistance will be appreciated.
Do not assume history is ordered by date, it's not.
But in MQL4, new orders will be added to the end of the history (unlike MQL5). This can be used.
Pseudocode:
unlike MQL5
This is a sore subject for me😄
Forum on trading, automated trading systems and testing trading strategies
MT4 End Of Life
Vladislav Boyko, 2023.09.20 18:02
Regarding the possibility of conversion...
Below is an example of a problem whose solution is free (in terms of performance) for MT4 and obscenely expensive for MT5
(I translated as best I could using google translate)
Форум по трейдингу, автоматическим торговым системам и тестированию торговых стратегий
Ошибки, баги, вопросы
fxsaber, 2023.06.01 22:20
Please comment on how to solve a simple problem in MT5.
Here is an example of a solution for MT4, we need an analogue for MT5.
For me personally, this is the only reason why I don't want to switch to MT5.
Working with order history is very important for developing reliable advisors. MT5 developers have made working with order history prohibitively expensive. The terminal developers are ignoring repeated requests to comment on this.
(If any of the moderators consider this to be off-topic, just delete my posts)