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 EB Worx, Today, 02:09 PM
            0 responses
            3 views
            0 likes
            Last Post EB Worx
            by EB Worx
             
            Started by Revazi123, Today, 01:01 PM
            0 responses
            7 views
            0 likes
            Last Post Revazi123  
            Started by sushilake, Today, 12:21 PM
            0 responses
            5 views
            0 likes
            Last Post sushilake  
            Started by AaronKoRn, Today, 10:17 AM
            0 responses
            6 views
            0 likes
            Last Post AaronKoRn  
            Started by PWillard, Today, 10:02 AM
            0 responses
            7 views
            0 likes
            Last Post PWillard  
            Working...
            X