title: Plotly - add_hline from specified candle
body: <p>I'm trying to add horizontal lines starting at <code>candleOfInterest</code> ('2020-03-21').</p>
  <p>I can add using <code>fig.add_hline(y=orh)</code> but how do I set the x value to start at <code>candleOfInterest</code> and ending at '2020-03-31'?</p>
  <p><a href="https://i.stack.imgur.com/jDt6Y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jDt6Y.png" alt="enter image description here" /></a></p>
  <p><strong>Code</strong></p>
  <pre><code>import pandas as pd
  import numpy as np
  import plotly.graph_objects as go
  
  def genMockDataFrame(days,startPrice,colName,startDate,seed=None): 
     
      periods = days*24
      np.random.seed(seed)
      steps = np.random.normal(loc=0, scale=0.0018, size=periods)
      steps[0]=0
      P = startPrice+np.cumsum(steps)
      P = [round(i,4) for i in P]
  
      fxDF = pd.DataFrame({ 
          'ticker':np.repeat( [colName], periods ),
          'date':np.tile( pd.date_range(startDate, periods=periods, freq='H'), 1 ),
          'price':(P)})
      fxDF.index = pd.to_datetime(fxDF.date)
      fxDF = fxDF.price.resample('D').ohlc()
      fxDF.columns = [i.title() for i in fxDF.columns]
      return fxDF
  
  
  df = genMockDataFrame(15,1.1904,'eurusd','19/3/2020',seed=157)
  
  
  candleOfInterest = '2020-03-21'
  
  #open range high and low
  orh = df.loc[candleOfInterest][&quot;High&quot;]
  orl = df.loc[candleOfInterest][&quot;Low&quot;]
  
  fig = go.Figure(data=[go.Candlestick(x=df.index,
  
                  open=df['Open'],
                  high=df['High'],
                  low=df['Low'],
                  close=df['Close'])])
  
  fig.add_hline(y=orh)
  fig.add_hline(y=orl)
  
  
  fig.show()
  </code></pre>