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

Order Flow VWAP values

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

    Order Flow VWAP values

    Is it possible to access the values from the VWAP indicator from NinjaScript?

    I would like to access the VWAP value and the Std Dev upper & lower values.

    #2
    Hello claude1,

    Thank you for your note.

    Yes, I would suggest opening the strategy builder and on the Conditions and Actions page>Add and under the indicators folder select VWAP or Standard Deviation. You could either reference this via the builder or if you click the unlock code button on the bottom of the strategy builder, you’ll see how its referenced in NinjaScript.
    Please see the attached screen shots.

    The following YouTube videos you may find helpful getting comfortable with using the strategy builder.

    Strategy Builder Intro: 7 Minutes
    An overview of the Strategy Builder feature in the NinjaTrader 8 platform.NinjaTrader supports over 40,000 traders around the globe with best-in-class techno...


    Strategy Builder NT8:
    Understand the fundamentals of basic strategy creation by developing an actual strategy using the NinjaTrader Strategy Builder.2:45 Opening a Strategy Builde...


    Please let us know if you need further assistance.
    Attached Files
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      Thanks Alan.

      I now see how to call the VWAP indicator & access it's value, but I am interested in accessing the VWAP's Std Dev values, not the Std Dev indicator.

      Is that possible?

      Comment


        #4
        Hello claude1,

        Yes this is possible.

        I have attached a screen shot of the intellisense for the OrderFlowVWAP indicator.

        You will need to add a secondary data series of type tick for this indicator to work.

        Please let us know if you need further assistance.
        Attached Files
        Alan P.NinjaTrader Customer Service

        Comment


          #5
          Can you advise a simple way via strategy builder or code to go long or short when a closing price is above or below a particular standard deviation of the order flow VWAP indicator.

          There are 3 upper and 3 lower bands, exactly how can these be incorporated into a strategy. Thanks.

          Comment


            #6
            Hello Jimmyk,

            This would not be possible in the strategy builder however I will request the ability to select a specific band be added.

            I have attached an indicator which demonstrates how you could reference the different plots via the NinjaScript Editor.

            For example,

            This would be the first upper band,
            Code:
            	Print(ofVWAP.Values[1][0]);
            This would be the first lower band,
            Code:
            	Print(ofVWAP.Values[2][0]);
            Please let us know if you need further assistance.
            Attached Files
            Alan P.NinjaTrader Customer Service

            Comment


              #7
              Is there a way yet to access these values?
              I don't even see a way to access order flow through Strategy Builder.

              Comment


                #8
                Hello TomTownsend,

                Thanks for your post.

                The Order Flow indicators cannot be used in the Strategy Builder.

                Here is a link to the help guide for ninjascript access to Order Flow VWAP: https://ninjatrader.com/support/help...flow_vwap2.htm
                Paul H.NinjaTrader Customer Service

                Comment


                  #9
                  Hi Tom,

                  Sounds like we are working on similar projects haha... I think you have a few options here from my experience using VWAP with NT8 strategies...

                  1. In the community eco system there is a basic VWAP indicator there. I think I downloaded it here...

                  https://ninjatrader.com/support/foru...71-vwap-in-nt8

                  I did a comparison from this indicator and the order flow VWAP 8 and the plot value was the exact same (except color changes in order flow version but same value).

                  2. You can use the example code in strategies they provide but... if you use visual studio you must add CustomerVendor.scott to your project for visual studio to compile (and updates or compiling again in NinjaTrader will remove this and you have to add it back). I also have to check but performance was much lower for my strategy when adding that order flow VWAP ninjascript... the other disadvantage you get with this option is it doesn’t plot on the chart itself if you’re using that feature in strategy analyzer and want the visual.

                  So I suggest option 1 and save the special ninjascript code only for the other volumetric code.


                  Thanks,

                  Chad
                  Last edited by NinjaTrader_PatrickG; 07-06-2021, 06:23 AM. Reason: Removed external link
                  chadnash
                  NinjaTrader Ecosystem Vendor - Nash Technologies

                  Comment


                    #10
                    Thanks so much for following up with all this info, Chad, I'll look into it!
                    I just saw your other post to me, too - yes looks like we are very much on the same track right now

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by ghoul, Today, 06:02 PM
                    2 responses
                    12 views
                    0 likes
                    Last Post ghoul
                    by ghoul
                     
                    Started by jeronymite, 04-12-2024, 04:26 PM
                    3 responses
                    44 views
                    0 likes
                    Last Post jeronymite  
                    Started by Barry Milan, Yesterday, 10:35 PM
                    7 responses
                    20 views
                    0 likes
                    Last Post NinjaTrader_Manfred  
                    Started by AttiM, 02-14-2024, 05:20 PM
                    10 responses
                    180 views
                    0 likes
                    Last Post jeronymite  
                    Started by DanielSanMartin, Yesterday, 02:37 PM
                    2 responses
                    13 views
                    0 likes
                    Last Post DanielSanMartin  
                    Working...
                    X