build_trade_analysis#

build_trade_analysis(portfolio)[source]#

Build a trade analysis from list of positions.

  • Read positions from backtesting or live state

  • Create TradeAnalysis instance that can be used to display Jupyter notebook data on the performance

Parameters:
  • state – optional parameter that should be specified if user would like to see advanced statistics

  • portfolio (Portfolio) –

Return type:

TradeAnalysis