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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      81 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      42 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      64 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      66 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      54 views
      0 likes
      Last Post CarlTrading  
      Working...
      X