TradeSummary#
tradingstrategy.analysis.tradeanalyzer.TradeSummary class.
- class TradeSummary[source]#
Bases:
object
Some generic statistics over all the trades
- __init__(won, lost, zero_loss, stop_losses, undecided, realised_profit, open_value, uninvested_cash, initial_cash, extra_return)#
- Parameters
won (int) –
lost (int) –
zero_loss (int) –
stop_losses (int) –
undecided (int) –
realised_profit (USDollarAmount) –
open_value (USDollarAmount) –
uninvested_cash (USDollarAmount) –
initial_cash (USDollarAmount) –
extra_return (USDollarAmount) –
- Return type
None
Methods
__init__
(won, lost, zero_loss, stop_losses, ...)Creates a human-readable Pandas dataframe table from the object.
Attributes
won
lost
zero_loss
stop_losses
undecided
realised_profit
open_value
uninvested_cash
initial_cash
extra_return
- to_dataframe()[source]#
Creates a human-readable Pandas dataframe table from the object.
- Return type
- __init__(won, lost, zero_loss, stop_losses, undecided, realised_profit, open_value, uninvested_cash, initial_cash, extra_return)#
- Parameters
won (int) –
lost (int) –
zero_loss (int) –
stop_losses (int) –
undecided (int) –
realised_profit (USDollarAmount) –
open_value (USDollarAmount) –
uninvested_cash (USDollarAmount) –
initial_cash (USDollarAmount) –
extra_return (USDollarAmount) –
- Return type
None