Custom Code bug with DailyEquityComputer that does not use proper daily equity

Custom Code SQ.Functions.DailyEquityComputer.computeDailyEquity() - use equity based on closed trades instead of open and closed trades.



e.g. for a trade open over 5 days, the daily equity in the calculation is not getting adjusted with the daily closing prices, but simply using previous equity until this trade is closed.



Can you fix this soon as wherever this is used may not be accurately calculating numbers?

Attachments
No attachments
  • Votes +1
  • Project StrategyQuant X
  • Type Bug
  • Status Refused
  • Priority Normal

History

MF
#1

Mark Fric

03.11.2020 13:03

Status changed from New to Refused

it is true, daily equity is computed only from closed trades. The reason is simple, at the time of computing this (after the backtest) we already have only closed trades.

Votes: +1

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please