Candlestick chart scatter; select value based on 3rd column

I have 3 pandas columns; date, value and position.
I want to plot a scatter on all values where position == 1.
This script gives no errors and no scatter plot.

image

Blockquote

fig.add_scatter(x=df[‘Date’], y=df[(df[‘MA20’] != 0.0) & (df[‘positions’].values != ‘0.0’)], name=‘MyMA-20’,
mode=‘markers + lines’, line=dict(color=‘red’), marker=dict(size=12))

Blockquote

This script has no ‘where’ clause but prints on every Date.

Blockquote
fig.add_scatter(x=df.Date, y=df.MA20, name=‘MyMA-20’, mode=‘markers’,
line=dict(color=‘red’), marker=dict(size=2)) #, markersize=15, color=‘m’)

Blockquote
Where is my error?
Thanks

problem solved:

Blockquote
fig.add_scatter(x=df.loc[df.positions == 1.0].Date, y=df.short_mavg[df.positions == 1.0], name=‘TQQQ Buy Point’,
mode=‘markers’, marker=dict(color=‘green’, size=14, symbol=‘triangle-up’))

Blockquote