Merge pull request #502 from gcarq/marker_for_buy
Change buy and sell markers in plot_dataframe
This commit is contained in:
commit
585c2e31c6
@ -80,7 +80,14 @@ def plot_analyzed_dataframe(args) -> None:
|
|||||||
y=df_buy.close,
|
y=df_buy.close,
|
||||||
mode='markers',
|
mode='markers',
|
||||||
name='buy',
|
name='buy',
|
||||||
marker=dict(symbol='x-dot')
|
marker=dict(
|
||||||
|
symbol='triangle-up-dot',
|
||||||
|
size=9,
|
||||||
|
line=dict(
|
||||||
|
width=1,
|
||||||
|
),
|
||||||
|
color='green',
|
||||||
|
)
|
||||||
)
|
)
|
||||||
df_sell = df[df['sell'] == 1]
|
df_sell = df[df['sell'] == 1]
|
||||||
sells = go.Scattergl(
|
sells = go.Scattergl(
|
||||||
@ -88,7 +95,14 @@ def plot_analyzed_dataframe(args) -> None:
|
|||||||
y=df_sell.close,
|
y=df_sell.close,
|
||||||
mode='markers',
|
mode='markers',
|
||||||
name='sell',
|
name='sell',
|
||||||
marker=dict(symbol='diamond')
|
marker=dict(
|
||||||
|
symbol='triangle-down-dot',
|
||||||
|
size=9,
|
||||||
|
line=dict(
|
||||||
|
width=1,
|
||||||
|
),
|
||||||
|
color='red',
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
bb_lower = go.Scatter(
|
bb_lower = go.Scatter(
|
||||||
|
Loading…
Reference in New Issue
Block a user