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

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 usasugardefender, Today, 01:42 AM
      0 responses
      1 view
      0 likes
      Last Post usasugardefender  
      Started by haas88, 03-21-2024, 02:22 AM
      15 responses
      182 views
      0 likes
      Last Post haas88
      by haas88
       
      Started by brianfnoel, Today, 01:24 AM
      0 responses
      6 views
      0 likes
      Last Post brianfnoel  
      Started by bill2023, Yesterday, 08:21 AM
      2 responses
      14 views
      0 likes
      Last Post bill2023  
      Started by ynoldsany, Today, 01:00 AM
      0 responses
      3 views
      0 likes
      Last Post ynoldsany  
      Working...
      X