TimelineStyler#
API documentation for tradeexecutor.analysis.trade_analyser.TimelineStyler Python class in Trading Strategy framework.
- class TimelineStyler[source]#
Bases:
object
Style the expanded trades timeline table.
Give HTML hints for DataFrame how it should be rendered in the notebook output.
- __init__(row_styling, hidden_columns, vmin, vmax)[source]#
- Parameters:
row_styling (TimelineRowStylingMode) –
vmin (float) –
vmax (float) –
Methods
__init__
(row_styling, hidden_columns, vmin, vmax)Set colour for each timeline row based on its profit.
- __init__(row_styling, hidden_columns, vmin, vmax)[source]#
- Parameters:
row_styling (TimelineRowStylingMode) –
vmin (float) –
vmax (float) –
- colour_timelime_row_simple(row)[source]#
Set colour for each timeline row based on its profit.
+/- 5% colouring
More information: https://stackoverflow.com/a/49745352/315168
CSS colours: https://htmlcolorcodes.com/color-names/