We trade Forex using an EA (MT4).
We found calculation errors in profit calculations at back test as detailed below. We would appreciate system correction because we need accuracy in back test profit and margin forecast before migrating to an real account.
Please find attached sample "Results" tab.
<Profit calculation error details>
Profit calculation of AUDNZD back test at a demo account (JPY)
e.g. ticket #1 (buy) closed at Feb. 7, 2025 17:41:03
1.Profit displayed in "Results" tab∶137,558.78 JPY
2. OrderProfit() = 138,573 JPY
NZDJPY counted backward : 86.608
3. Verification =
(Bid at closing - Open price) x Lot x 100,000 x NZDJPY at closing (Close value of 1 minute timeframe)
=(1.10917 - 1.09317) x 1.0 x 100,000 x 85.997
= 137,595 JPY
<Reason for OrderProfit() error>
Although NZDJPY at closing (Feb. 7, 2025 17:41:03) should be applied, NZDJPY at back test execution time (Feb. 18, 2025 15:38:28) is applied instead.
Thank you in advance.
Files:
Screenshot_20250218-204612.png
163 kb
- New EA based on the !xMeter
- Please check my code, I am starting to learn MQL
- CExpertMoney
Your topic has been moved to the section: MQL4 and MetaTrader 4
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
MetaTrader 4 is no longer been developed.
Development stopped many years ago (probably more than a decade, not sure).
Consider upgrading to MetaTrader 5.

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