0

how can i plot harmonic pattern using plotly in candlestick series like the image below? The pattern has 5 or points to get connected fully

fig = go.Figure(data=[go.Candlestick(x=df.index,
            open=df['open'],
            high=df['high'],
            low=df['low'],
            close=df['close'])])

the code above describes the candlestick series where the pattern is to be added.how can i add harmonic pattern to it?

enter image description here

Mala
  • 89
  • 9
  • If you have harmonic pattern data, you can draw it with `go.Scattter(mode='lines',...)`. – r-beginners May 09 '22 at 07:46
  • how do i add line suppose the line to draw has pionts A,B,C,D,E (268,269,268.4.269,267) to scatter? – Mala May 09 '22 at 08:26
  • 1
    Try this: `fig.add_trace(go.Scatter(x=[A.datetime,B.datetime,C.datetime,D.datetime,E.datetime],y=[268,269,268.4.269,267],mode='lines',name='Harmonic pattern')) ` – r-beginners May 09 '22 at 08:36

0 Answers0