Strategy Tester Swap calculate wrong.

 
It appears that the Swap cost calculation in the MT5 strategy tester may be incorrect.

A Buy trade on USDJPY was initiated on 2024.11.11 and concluded on 2024.11.15, with a volume of 0.25 and a tick value of 0.64125995.


The trade opened on Monday and closed on Thursday, with the swap amount being tripled on Wednesday.

Comparing two different outcomes: 
1. the live market trade has a swap of $10.05
2. the strategy tester has a swap of $14.06

This suggests that the strategy tester is computing the swap for 7 days, rather than the actual 5 days.

A similar issue when I am testing with other pair.
Does anyone face a similar?
Files:
Back_test.png  16 kb
 
Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
 
Thi Ngoc Tram Le:
Does anyone face a similar?

Here.

Новая версия платформы MetaTrader 5 build 4620: исправления ошибок в MQL5 и новые методы OpenBLAS - В этом выпуске мы исправили несколько трудноуловимых ошибок MQL5. Исправлена ошибка ручного получения тиковой истории из терминала MetaTrader 5.
Новая версия платформы MetaTrader 5 build 4620: исправления ошибок в MQL5 и новые методы OpenBLAS - В этом выпуске мы исправили несколько трудноуловимых ошибок MQL5. Исправлена ошибка ручного получения тиковой истории из терминала MetaTrader 5.
  • 2024.10.10
  • MetaQuotes
  • www.mql5.com
New MetaTrader 5 Platform build 4585 Performance improvements. а так же задания могут от одного советника быть разной сложности. Почему нельзя оценивать время до окончания работы и раздавать задания другим агентам
 
fxsaber #:

Here.

Thank you for the information! I'll treat this bug as a stress test for the strategy 😊