Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Formulas for calculating the VWAP, POC, VAH, and VAL ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Formulas for calculating the VWAP, POC, VAH, and VAL ?

    Hello
    As you may know, The Order Flow cannot be accessed via NinjaScript.
    Is there a formula for calculating the VWAP?
    Additionally, are there any formulas for calculating the POC, VAH, and VAL for the Order Flow volume profile?
    Thank you in advance

    #2
    VWAP is the sum of the products of the trade prices and their respective trade sizes, divided by the sum of the trade sizes.

    Point of control is the "mode", or price at which the highest volume of trading took place.

    There are some different variations for how VAH and VAL are calculated, but the general principle is to expand around POC until about 2/3 of the day's volume is included, adding prices up or down from POC based on whichever one has more volume. This "sort of" approximates a standard deviation band, but not very well.
    Bruce DeVault
    QuantKey Trading Vendor Services
    NinjaTrader Ecosystem Vendor - QuantKey

    Comment


      #3
      Hello aekzof,

      Thank you for your post.

      Although the Order Flow Volume Profile tool is not accessible via NinjaScript, the Cumulative Delta, Volumetric Bars, and VWAP do have some NinjaScript access:As for getting POC and Value Area information, I suggest reviewing the following post from my colleague that explains how you could use the Volumetric Bars as a tool for finding the POC and Value Area information:


      Please let us know if we may be of further assistance.
      Emily C.NinjaTrader Customer Service

      Comment


        #4
        aekzof NinjaTrader_Emily offers a good option here. If you access the VWAP or POC through the order flow volume profile it will be faster than calculating it yourself - not just less code but faster running. That would be the far superior option if that's all you need and you have access to the inbuilt indicator. Rolling your own, in this case, will be slower and a lot more work just to get back to the same place you're already at.

        You asked how they're calculated and I answered, but if all you want is the answer, the inbuilt indicator is the way to go for sure.
        Last edited by QuantKey_Bruce; 05-05-2023, 11:44 AM.
        Bruce DeVault
        QuantKey Trading Vendor Services
        NinjaTrader Ecosystem Vendor - QuantKey

        Comment


          #5
          Thank you .

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by fx.practic, 10-15-2013, 12:53 AM
          5 responses
          5,404 views
          0 likes
          Last Post Bidder
          by Bidder
           
          Started by Shai Samuel, 07-02-2022, 02:46 PM
          4 responses
          95 views
          0 likes
          Last Post Bidder
          by Bidder
           
          Started by DJ888, Yesterday, 10:57 PM
          0 responses
          8 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by MacDad, 02-25-2024, 11:48 PM
          7 responses
          159 views
          0 likes
          Last Post loganjarosz123  
          Started by Belfortbucks, Yesterday, 09:29 PM
          0 responses
          8 views
          0 likes
          Last Post Belfortbucks  
          Working...
          X