Hello,
I'm backtesting a credit spread strategy and have some issues qualifying my backtests because the statistics are innacurate:
- The win / rate is wrong: my attached backtest shows 2 trend up days where I sell 1 PCS ATM which expires worthless each day. Despite that, the win rate is 50% win 50% loss. Average win and average loss and Profit-loss ratio are wrong too.
- At last day of backtest, latest spread is still marked as unrealized, it doesn't process the settlement for last day.
- Total orders shows 6 but I only bought 2 credit spreads so 4 contracts.
- Sortino ratio is 0
Thank you for your help!
Have a good one!
Cedric Tang
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!