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

VWAP Order Flow script for Week or Month instead of just session? Lifetime License.

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

    VWAP Order Flow script for Week or Month instead of just session? Lifetime License.

    How to use week or month VWAP order flow inside a strategy?

    This line seems to grab the values for the session VWAP.
    VWAPs[0] = OrderFlowVWAP(VWAPResolution.Standard, TradingHours.String2TradingHours("US Equities ETH"), VWAPStandardDeviations.Three, 1, 2, 3).VWAP[0];

    The indicator itself has settings for Month, Week or session. How can use month or day in the script editor? It seems that there is no signature for selecting Week or Month?

    If yo could provide an example to grab the week or month values inside a strategy script it would be great.

    Also, it would be VERY helpful if the order flow could simply calculate based on the time period loaded in the chart (or custom) instead of simply week, month or daily is this not possible?


    Thank you.

    #2
    Hello focus333,

    Thanks for your post.

    As you have observed they will default to the session VWAP.

    In order to use multiple OrderFlowVWAPs with different intervals, we have to use a coding workaround.

    The workaround is to set one of the parameters differently and then to use "ResetInterval" and finally reset the parameter.

    I've attached an example strategy that demonstrates the process required to get a session, weekly and monthly VWAP. The code is commented to explain the process.

    ExampleVWAP.zip


    "Also, it would be VERY helpful if the order flow could simply calculate based on the time period loaded in the chart (or custom) instead of simply week, month or daily is this not possible?" Thanks for your suggestion. I will write this up as a feature request and will update this thread when I have the feature request number. If this has already been suggested, we will add your vote to that feature request. In either case, I will update the thread with the feature request number.

    Paul H.NinjaTrader Customer Service

    Comment


      #3
      NinjaTrader_PaulH Thank you. I am VERY impressed with the support and the forum, this is the best platform I've used, HANDS DOWN. Congrats you guys. It was expensive but I am glad I bought the Lifetime License!

      Comment


        #4
        Hello focus333,

        Just following up with the feature request information.

        Your vote was added to the existing feature request identified as SFT-3032, "OF Cumulative Delta/VWAP to have more time slice options".

        Thanks for your interest in improving the NinjaTrader8 platform.

        Feature Request Disclaimer.
        We receive many requests and cannot reasonably implement all requested features or changes. Interest is tracked internally and if enough interest is tracked, it would be weighed against how feasible it would be to make those changes to consider implementing.
        When new features are implemented, they will be listed in the Release Notes page of the Help Guide. The ID number will be different than the internal feature request tracking ID, but the description of the feature will let you know if that feature has been implemented.
        Release Notes - https://ninjatrader.com/support/help...ease_notes.htm
        Paul H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by lightsun47, Today, 03:51 PM
        0 responses
        4 views
        0 likes
        Last Post lightsun47  
        Started by 00nevest, Today, 02:27 PM
        1 response
        8 views
        0 likes
        Last Post 00nevest  
        Started by futtrader, 04-21-2024, 01:50 AM
        4 responses
        44 views
        0 likes
        Last Post futtrader  
        Started by Option Whisperer, Today, 09:55 AM
        1 response
        13 views
        0 likes
        Last Post bltdavid  
        Started by port119, Today, 02:43 PM
        0 responses
        8 views
        0 likes
        Last Post port119
        by port119
         
        Working...
        X