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

Getting values from OrderFlowCumulativeDelta Indicator

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

    #16
    Hello Lance El Camino,

    Thanks for your notes.

    This message indicates that an object in your script that you are accessing is returning null.

    A common object-oriented programming error is not checking for null references on your object variables This will cause an "Object reference not set to an instance of an object" error.

    I do not see anything specific in your code that stands out as incorrect. That said, you will need to reduce the code and add debugging prints throughout the script to determine the exact line of code that is causing the error to occur. Below is a link to a forum post that demonstrates how to use prints to understand behavior.

    https://ninjatrader.com/support/foru...121#post791121

    Let us know if we may assist further.​
    Brandon H.NinjaTrader Customer Service

    Comment


      #17
      Thanks! I don't believe delta is the issue I think I accidentally removed a line of code yesterday when editing. I do have another question about Market Replay. At Max speed and a strategy is set to OnBarClose is it accurate or is accuracy sacrificed for speed?

      Comment


        #18
        Hello Lance El Camino,

        Thanks for your notes.

        There should be no correlation between market replay speed and accuracy. The events are still fired in the correct orders therefore there should be no issue here.

        Please let me know if you have further questions on this.
        Brandon H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by gbourque, Today, 06:39 AM
        0 responses
        2 views
        0 likes
        Last Post gbourque  
        Started by cmtjoancolmenero, Yesterday, 03:58 PM
        1 response
        17 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by benmarkal, Yesterday, 12:52 PM
        3 responses
        23 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by helpwanted, Today, 03:06 AM
        1 response
        20 views
        0 likes
        Last Post sarafuenonly123  
        Started by Brevo, Today, 01:45 AM
        0 responses
        12 views
        0 likes
        Last Post Brevo
        by Brevo
         
        Working...
        X