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

OrderFlowVWAP Indicator in Strategy

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

    OrderFlowVWAP Indicator in Strategy

    Hi NinjaTrader Team,

    when I run the sample provided for the OrderflowVWAP indicator I get the error
    "Non-invocable member 'OrderFlowVWAP' cannot be used like a method" in Visual Studio.

    Sample:
    https://ninjatrader.com/support/help...flow_vwap2.htm

    Hope you can help,

    Best regards,
    Johnny

    Last edited by Johnny90; 12-05-2020, 06:25 AM.

    #2
    Hello Johnny,

    It might be something with VisualStudio not loading internal core classes.

    Does the strategy compile in the NinjaScript Editor window made by NinjaTrader?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hello Chelsea,

      you're right. I can compile in NinjaScript Editor but then in backtest I dont get any results and I dont see a chart. When debugging with Visual Studio I get the following error:

      An exception of type 'System.NullReferenceException' occurred in b422f52c9cb447f3ba73395a06885079.dll but was not handled in user code
      Additional information: Object reference not set to an instance of an object

      Inner Exception is also null.

      Best regards,
      Johnny

      Comment


        #4
        Hello Johnny,

        Attached is an export of the sample code from the help guide copied and pasted into a script.

        Note, that Order Flow+ requires a lifetime license key.
        Attached Files
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Hello Chelsea,

          its working now. Thanks for you help.
          Any idea on how to get rid of the error in VS?

          Best regards,
          Johnny

          Comment


            #6
            Hello Johnny,

            Below is a link to a forum post where Jesse has mentioned temporarily including the NinjaTrader.Vendor.cs file will resolve the error.
            Hi all, I.m trying to develop a strategy with the OrderFlowVWAP indicator. And i.m reading the documentation in the wiki: https://ninjatrader.com/support/help...flow_vwap2.htm (https://ninjatrader.com/support/helpGuides/nt8/?order_flow_vwap2.htm) But when i try the code on VISUAL STUDIO 2019 , it doesn.t work: double
            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by cls71, Today, 04:45 AM
            0 responses
            1 view
            0 likes
            Last Post cls71
            by cls71
             
            Started by mjairg, 07-20-2023, 11:57 PM
            3 responses
            213 views
            1 like
            Last Post PaulMohn  
            Started by TheWhiteDragon, 01-21-2019, 12:44 PM
            4 responses
            544 views
            0 likes
            Last Post PaulMohn  
            Started by GLFX005, Today, 03:23 AM
            0 responses
            3 views
            0 likes
            Last Post GLFX005
            by GLFX005
             
            Started by XXtrader, Yesterday, 11:30 PM
            2 responses
            12 views
            0 likes
            Last Post XXtrader  
            Working...
            X