why the swap is calculated in reverse, the tested EURUSD SWAP in the example is Long -10, Short 3.4
the tests show that if such a swap is used in a long transaction, the swap is positive and short is negative, the desire should be the other way around. if the swap is exchanged, it is: long 10 and short -3.4, then there are swap transactions much more similar to reality.
duplicate
https://roadmap.strategyquant.com/tasks/sq4_9325