Hi,
I am new to plotly so please bear with me. I currently have an algorithm that determines the special candles (swing_points) for a set of candle stick data. Currently, I can plot the candles using the example shown on the website.
Is there a way highlight (make them a different color given certain criteria) or do I have to use annotations?
path = 'candles.json'
swing_path = 'swing_candles.json'
df = pd.read_json(path, orient='columns')
# anyway to use the swing_df to be special???
# if df['open'] == swing_df ['open']:
# something like ....line=dict(color= '#17BECF'))
swing_df = pd.read_json(swing_path, orient='columns')
trace = go.Ohlc(x=df['timestamp'],
open=df['open'],
high=df['high'],
low=df['low'],
close=df['close'])
data = [trace]
py.offline.plot(data, filename='candles')