StrategyWidget#
-
class sigtech.framework.experimental.ui.strategy_performance_viewer.StrategyWidget
A class implementing an interactive representation of a strategy performance.
This object takes an instrument object as input and produces an interactive html output.
Example object creation:
s = StrategyWidget(strategy) s.display_html() # raw html code can also be accessed. s.html_code()
-
calculate_metrics()
Compute the strategy’s rolling and static metrics.
-
display()
Display an HTML version of the performance.
-
evaluate_stats(ts, cash)
Calculate formatted metrics for the provided timeseries and cash series.
-
html_code()
HTML code for output.