title: How to find the first value when bar open of ema, sma
body: <p>I have the plots:</p>
  <pre><code>E = ema(close, 34)
  
  S = sma(close, 14)
  </code></pre>
  <p>I would like to get the value of the 2 above lines when the first close == open (means when the bar appears, at the first second of the timeframe).</p>
  <p>How can I do that. Please help me to write 2 functions.</p>