Swap in Strategy Tester

 

Hi,

in the symbol specification I find variable swap values slightly changing from time to time.

E.g. for the symbol DE30 (Germany 30 Index) at broker xy I found the following swap values for January, February and March 2021:



January February March
Swap long -0.74 -0.73 -0.75
Swap short   -1.19  -1.17  -1.2


In my opinion this is completely normal and not alarming me. My strategies cope well with this situation.

My question is: Does the strategy tester consider these changing values??

May be important for long testing periods.

In a risk oriented approach this topic may be relevant?


Matthias

The Fundamentals of Testing in MetaTrader 5
The Fundamentals of Testing in MetaTrader 5
  • www.mql5.com
What are the differences between the three modes of testing in MetaTrader 5, and what should be particularly looked for? How does the testing of an EA, trading simultaneously on multiple instruments, take place? When and how are the indicator values calculated during testing, and how are the events handled? How to synchronize the bars from different instruments during testing in an "open prices only" mode? This article aims to provide answers to these and many other questions.
 
Dr Matthias Hammelsbeck:

Hi,

in the symbol specification I find variable swap values slightly changing from time to time.

E.g. for the symbol DE30 (Germany 30 Index) at broker xy I found the following swap values for January, February and March 2021:



January February March
Swap long -0.74 -0.73 -0.75
Swap short   -1.19  -1.17  -1.2


In my opinion this is completely normal and not alarming me. My strategies cope well with this situation.

My question is: Does the strategy tester consider these changing values??

May be important for long testing periods.

In a risk oriented approach this topic may be relevant?


Matthias

No. There is no history of swap. Last values will be used for the whole test period.

 
Enrique Dangeroux:

No. There is no history of swap. Last values will be used for the whole test period.

Thank you for your answer.

This is what I guessed already.

This explains why I get slightly different test results for an EA which I tested in January and today.

 
And for this reason, some even have decided not to test with swap values on, since if you are backtesting for an extended period, this may not make much sense since the most recent swap value may be completely different from e.g. 4 years ago.
 
alanwee:
And for this reason, some even have decided not to test with swap values on, since if you are backtesting for an extended period, this may not make much sense since the most recent swap value may be completely different from e.g. 4 years ago.
That is really bad.
The strategy tester does not represent real conditions in my opinion. 
It is good for testing the logic and functioning of the EA. That is good and may be sufficient 

 

There are many peculiarities with the Tester https://www.mql5.com/ru/forum/321656 (as with the language https://www.mql5.com/ru/forum/170952 and the terminal itself https://www.mql5.com/ru/forum/341117 & https://www.mql5.com/ru/forum/342090). The tester is good if you know these peculiarities, and only if you measure performance of the system in ticks/points/pips/whatever, not some currency as it will distort the statistics as well as swap. Good for fooling yourself, or for market sellers fool the customer. In all other cases, not good.

if your system can make ticks/points/pips/whatever, it will pay off in any currency.

 
Enrique Dangeroux:

There are many peculiarities with the Tester https://www.mql5.com/ru/forum/321656 (as with the language https://www.mql5.com/ru/forum/170952 and the terminal itself https://www.mql5.com/ru/forum/341117 & https://www.mql5.com/ru/forum/342090). The tester is good if you know these peculiarities, and only if you measure performance of the system in ticks/points/pips/whatever, not some currency as it will distort the statistics as well as swap. Good for fooling yourself, or for market sellers fool the customer. In all other cases, not good.

if your system can make ticks/points/pips/whatever, it will pay off in any currency.

Yes, I agree with you.