Merge pull request #502 from gcarq/marker_for_buy

Change buy and sell markers in plot_dataframe
This commit is contained in:
Samuel Husso 2018-02-04 16:31:41 +02:00 committed by GitHub
commit 585c2e31c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(