Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Show backtest's summary metrics #7

Open
macd2 opened this issue Dec 26, 2020 · 3 comments
Open

Show backtest's summary metrics #7

macd2 opened this issue Dec 26, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@macd2
Copy link

macd2 commented Dec 26, 2020

First of all great project, but i feel there are a few metrics missing especially the trade summery which is returned by the regular backtest. What would be super cool as well would be an max drawdown marker overlay on the PNL graph.

Cheers

@nick-dolan nick-dolan added the enhancement New feature or request label Dec 26, 2020
@nick-dolan
Copy link
Owner

Hey @macd2! Nice suggestion! I'm thinking about these metrics too. I still haven't added them because there are no such metrics in Jesse's .json file output.

Screenshot 2020-12-28 at 20 35 30

@saleh-mir hey! How difficult would it be to add these metrics into a .json output? I'm about: Total Closed Trades, Total Net Profit, Max Drawdown, Annual Return, Expectancy, Avg Win | Avg Loss, and so on.

I expect an output structure like this:

{
  "totalClosedTrades": 7,
  "totalNetProfit": 133.78,
  "totalNetProfitPercent": 1.34,
  "startingBalance": 10000,
  ...,
  "trades": [...]
}

@nick-dolan nick-dolan changed the title SUGGESTION: add trade summery Show backtest's summary metrics Dec 29, 2020
@saleh-mir
Copy link
Contributor

saleh-mir commented Jan 1, 2021 via email

@nick-dolan
Copy link
Owner

@saleh-mir, could you also add routes in JSON?

routes = [
    ('Binance', 'LTC-USDT', '1h', 'SMACrossover')
]

Possible structure:

{
  ...,
  routes: [
    {
      exchange: 'Binance',
      pair: 'LTC-USDT',
      timeframe: '1h',
      strategy: 'SMACrossover'
    }
  ],
  ...
}

I will show it in a backtest info and draw a chart with an appropriate timeframe.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants