Backtester misscalculates funds when opening positions with % free

Bug info: Hello,

I was backtesting a long strategy on BTCUSDC on spot and I was using 4% of free balance to open a deal. The problem is that I think that the backtester do not take into account that when one position has opened with 4% of the free balance, next simultaneous deal will be again 4% but from the remaining free balance and not from initial balance. The backtester takes only into account the profit. You can see in the shared example that even during a bear period, the amount allocated to each position is gradually increasing making the backtesting unrealistic.

Thank you in advance for taking a look into this :smiley:

  • Bot URL → Gainium app
  • [Optional] Steps to reproduce →
  • Expected result →

The backtester always assume unlimited funds. We don’t have a feature yet to keep track of the used funds. This will be achieved when we introduce portfolio backtesting which will work with predefined funds.

1 Like

Ok thanks for the clarification! Do you know more or less when it is expected to release this feature?

It’s on the list I had from ages ago, no one suggested it here in the community.

Ok then I will make a suggestion xD

1 Like