Announcement

Collapse
No announcement yet.

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, 05: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.
            https://ninjatrader.com/support/foru...04#post1112004
            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by sgordet, Today, 08:50 PM
            0 responses
            2 views
            0 likes
            Last Post sgordet
            by sgordet
             
            Started by futurenow, Today, 07:17 PM
            0 responses
            5 views
            0 likes
            Last Post futurenow  
            Started by Emma1, Today, 07:15 PM
            0 responses
            2 views
            0 likes
            Last Post Emma1
            by Emma1
             
            Started by n8dogg59, 05-10-2019, 08:00 AM
            14 responses
            622 views
            0 likes
            Last Post brownsfan019  
            Started by [email protected], Today, 06:03 PM
            0 responses
            4 views
            0 likes
            Last Post bpatel20@gmail.com  
            Working...
            X