VWAP on Real Time Data

Optuma Forums Optuma Scripting VWAP on Real Time Data

Viewing 1 post (of 1 total)
  • Author
  • #56629
    • Topics: 14
    • Replies: 18
    • Posts: 32


    When I run the script below on a 1 minute chart, or anything less than a day, the offset VWAP value is from the prior day(s) rather than the prior bars. The correct value is shown on a VWAP tool on the chart.

    Is there something I’m missing? There usually is!! 🙂

    Thanks – and a Happy New Year to everyone!!


    VWCheck = VWAP() ;

    VW1 = VWCheck[1] < CLOSE()[1] ;
    VW2 = VWCheck[2] < CLOSE()[2] ;
    VW3 = VWCheck[3] < CLOSE()[3] ;
    VW4 = VWCheck[4] < CLOSE()[4] ;

    VWTrue = VW1 and VW2 and VW3 and VW4 ;



Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

Pin It on Pinterest

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.