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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      88 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      135 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      119 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      69 views
      0 likes
      Last Post PaulMohn  
      Working...
      X