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 getting error CS1955

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

    OrderFlowVWAP getting error CS1955

    Hi,

    I am trying to add OrderFlowVWAP on my strategy but I am getting error "CS1955 - Non-Invocable Member "OrderFlowVWAP" cannot be use like a method. Kindly help to fix this. Thanks

    if(BarsInProgress == 0 )
    {
    double VWAPValue = OrderFlowVWAP(VWAPResolution.Standard, TradingHours.String2TradingHours("CME US Index Futures RTH"), VWAPStandardDeviations.Three, 1, 2, 3).VWAP[0];
    }

    else if(BarsInProgress == 6 )
    {
    OrderFlowVWAP(BarsArray[0], VWAPResolution.Tick, BarsArray[0].TradingHours, VWAPStandardDeviations.Three, 1, 2, 3).Update(OrderFlowVWAP(BarsArray[0], VWAPResolution.Tick, BarsArray[0].TradingHours, VWAPStandardDeviations.Three, 1, 2, 3).BarsArray[1].Count - 1, 1);
    }​

    #2
    Hello kezyclaire,

    Thank you for your post.

    Are you seeing this error inside of the NinjaScript Editor or in a different code editor such as Visual Studio? I wouldn't expect to see this error in the NinjaScript Editor, however, other code editors do not have intelliprompt information for the Order Flow VWAP indicator so errors are expected. The script should still compile successfully within NinjaTrader even if the editor is showing an error.

    I look forward to your reply.
    Emily C.NinjaTrader Customer Service

    Comment


      #3
      Hi Emily,

      Yes, I am seeing it in Visual studio editor. It still works when compiling. Thanks

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by manueldecastro, Yesterday, 10:26 AM
      8 responses
      31 views
      0 likes
      Last Post manueldecastro  
      Started by Gavin45, Today, 08:40 AM
      1 response
      1 view
      0 likes
      Last Post NinjaTrader_Clayton  
      Started by cmtjoancolmenero, 04-29-2024, 03:40 PM
      29 responses
      96 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by trilliantrader, Today, 07:50 AM
      3 responses
      6 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by z.franck, Today, 08:37 AM
      0 responses
      3 views
      0 likes
      Last Post z.franck  
      Working...
      X