Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Having errors instantiating OrderFlowCumulativeDelta

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

    Having errors instantiating OrderFlowCumulativeDelta

    I want to include the CumulativeDelta in a strategy. I've attached a script, though on my end, I'm getting the error on line 65

    "Non-invocable member 'OrderFlowCumulativeDelta' cannot be used like a method."

    Using the new keyword seems to compile (as with the commented out lines 67 through 72 in the attached script), but the constructor has no arguments, and I can't query the object for data when the strategy is applied, and there is no graph displayed in the panel 2 when the strategy runs.....

    What am I doing wrong here? Is there a specific namespace that is needed or something?





    Attached Files

    #2
    I went to the definition for the OrderFlowCumulativeDelta class in VisualStudio, and there are no implementations, like it's just an interface. I'm working inside of the NinjaTrader.Custom solution. Is there a particular library that I need to download when working with these order flow indicators?

    I can add the indicator through the right-click menu on charts just fine.

    Comment


      #3
      Hello _bxdf_,

      The new keyword should not be used when calling indicators.

      Below is a link to the help guide with sample code. See the section 'Calling the OrderFlowCumulativeDelta() method by reference'.



      With VisualStudio this might not be able to get the method signature from the core of NinjaTrader.

      This is available in the NinjaScript Editor Intelliprompt.

      Attached Files
      Chelsea B.NinjaTrader Customer Service

      Comment


        #4
        Ok, I can confirm that this works from within the ninjascript editor but not from within visual studio 2019.

        Visual studio throws the error "Non-invocable Member 'OrderflowCumulativeDelta' cannot be used like a method" on the instantiation line.

        I'm guessing this is somehow because of needing to keep the codebase for the orderflow+ stuff proprietary?

        Is there a .dll or something I can add to Visual Studio to get it compiling in there?

        Thanks

        Comment


          #5
          Hello _bxdf_,

          Jesse has a post letting us know that including the NinjaTrader.Vendor.cs in the project will temporarily include this intellisense for Visual Studio, but will be removed on every project change internal to NinjaTrader.
          https://ninjatrader.com/support/foru...04#post1112004
          Chelsea B.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by NullPointStrategies, Yesterday, 05:17 AM
          0 responses
          54 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          131 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          73 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          44 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          49 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X