Skip to content

Commit

Permalink
change style for plotting pprice
Browse files Browse the repository at this point in the history
  • Loading branch information
enarjord committed Feb 5, 2025
1 parent 22b8b17 commit f9f4262
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ def plot_fills_forager(fdf: pd.DataFrame, hlcvs_df: pd.DataFrame, start_pct=0.0,
pprices_long = pprices_long[pprices_long.psize != 0.0].pprice
longs[longs.type.str.contains("entry")].price.plot(style="b.")
longs[longs.type.str.contains("close")].price.plot(style="r.")
pprices_long.plot(style="b--")
pprices_long.plot(style="b|")
legend.extend(
[
"entries_long",
Expand All @@ -473,7 +473,7 @@ def plot_fills_forager(fdf: pd.DataFrame, hlcvs_df: pd.DataFrame, start_pct=0.0,
pprices_short = pprices_short[pprices_short.psize != 0.0].pprice
shorts[shorts.type.str.contains("entry")].price.plot(style="mx")
shorts[shorts.type.str.contains("close")].price.plot(style="cx")
pprices_short.plot(style="r--")
pprices_short.plot(style="r|")
legend.extend(
[
"entries_short",
Expand Down

0 comments on commit f9f4262

Please sign in to comment.