Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order flow vwap can't use in strategy

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

    Order flow vwap can't use in strategy

    Hi,
    I have the lifetime license and I'm trying to use the order flow vwap in my scirpt but it continues to give me an error:
    : Error on calling 'OnBarUpdate' method on bar 2519: Object reference not set to an instance of an object.
    This is my line of code in which i call the indicator value
    double vwapValue = OrderFlowVWAP(VWAPResolution.Standard, TradingHours.String2TradingHours("FDAX"), VWAPStandardDeviations.Three, 1,2,3).VWAP[0];
    If i change the name of the insturment in which i want to use the indicator as in the library example it doesn't give me any error.
    I'd like the indicator for the FDAX12-21
    thanks
    Last edited by AlessioCianini12; 10-31-2021, 03:51 AM.

    #2
    Hello AlessioCianini12,

    May I confirm you have created a custom Trading hour template that you have named FDAX and you are not using the exchange trading hours for the FDAX future which is 'Eurex Equity Index Futures'?

    Please provide a screenshot of the custom Trading hours template in the Trading Hours window to confirm.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thank you It wasn't just fdax, have a nice day

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      430 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      282 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      243 views
      1 like
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      331 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      292 views
      0 likes
      Last Post CarlTrading  
      Working...
      X