tradeexecutor.state.statistics.FinalPositionStatistics Python class in Trading Strategy framework.
- class FinalPositionStatistics[source]#
When position is closed, its final statistics are calculated.
These statistics contain fields that is not present in open positions.
- __init__(calculated_at, trade_count, value_at_open, value_at_max)#
__init__(calculated_at, trade_count, ...)
from_dict(kvs, *[, infer_missing])
from_json(s, *[, parse_float, parse_int, ...])
schema(*[, infer_missing, only, exclude, ...])
to_json(*[, skipkeys, ensure_ascii, ...])
Real-time clock when these stats were calculated
How many trades we have made
How much was the first purchase
How much was we held at the maximum point of time