Skip to content

A few questions on the backtest output plot #676

Closed
@bravegag

Description

@bravegag

I have been looking into this project, and everything looks great. I have a few questions on the main plot visualization example https://kernc.github.io/backtesting.py/#example, which would appreciate if someone could help.

  1. Why is the top part of the plot called equity? and what is that data there? If it is a wealth index or cumulative returns of the Strategy I would just call it Strategy instead of Equity and also add a WI or so to know it is a wealth index of the strategy. Equity is confusing as there are many asset classes which could be implemented e.g. FX, FI, Crypto.
  2. The second plot top bottom, is it showing the trades? what is the meaning of the size of the triangle? the abs of the return or the amount invested? how do I see the size of the trade?
  3. The third plot top bottom, I assume is showing the raw dataset, the legend states that the vertical bars are the trades but I see vertical bars everywhere and they don't match the color or trade direction looking at the plot on top so it is a bit confusing. It would also be nice to give a title to that plot and not leave it to the imagination.
  4. I would suggest being able to see a fifth plot with the buy / sell signal alone, if possible and x-axis aligned to the other plots. This will help figure out trade entry issues or any possible signal to implementation lags.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionNot a bug, but a FAQ entry

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions