Skip to content

Commit

Permalink
Merge pull request #149 from peterwilli/feat/trailing_stop_backtest
Browse files Browse the repository at this point in the history
Added trailing stop to backtest visualizer
  • Loading branch information
cardosofede authored Jul 4, 2024
2 parents c2d8516 + b9bd5fe commit 876302a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/visualization/backtesting_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def render_close_types(summary_results):
st.write("#### Close Types")
close_types = summary_results.get('close_types', {})
st.metric(label="TAKE PROFIT", value=f"{close_types.get('TAKE_PROFIT', 0)}")
st.metric(label="TRAILING STOP", value=f"{close_types.get('TRAILING_STOP', 0)}")
st.metric(label="STOP LOSS", value=f"{close_types.get('STOP_LOSS', 0)}")
st.metric(label="TIME LIMIT", value=f"{close_types.get('TIME_LIMIT', 0)}")
st.metric(label="EARLY STOP", value=f"{close_types.get('EARLY_STOP', 0)}")

0 comments on commit 876302a

Please sign in to comment.