title: How to find data of VWMA at the open position?
body: <p>I would like to get the value of the VWMA line at the first moment of the bar, when the bar begins (when open==close<a href="https://stackoverflow.com/questions/71581723/how-to-find-data-of-wma-at-the-open-position">1</a>), or when close==open, and make it a point on chart.</p>
  <p>Now when the price is changing, I want to do a comparison to see if that point is under or above the current line of VWMA.</p>
  <pre><code>//@version=4
  
  VWMA = vwma(close, 20)
  
  plot(VWMA, title='VWMA', color=red)
  </code></pre>
  <p>A similar code at <a href="https://stackoverflow.com/questions/71581723/how-to-find-data-of-wma-at-the-open-position">Find 1st value WMA</a> is showing almost what I need but it seems to be not really correct because WMA is not VWMA.</p>
  <p>Can you please help me to modify the code from the above link to get the correct value for VWMA.</p>
  <p>Thank you</p>