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 NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      65 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      139 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      75 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      45 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      50 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X