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

Referencing OrderFlowCumulativeDelta

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

    Referencing OrderFlowCumulativeDelta

    I am trying to reference OrderFlowCumulativeDelta in the attached indicator and when i do, I receive the following error: A hosted indicator tried to load additional data. All data must first be loaded by the hosting NinjaScript in its configure state.

    I am running NinjaTrader 8.0.12.0 64-bit
    Attached Files

    #2
    Hello Jack22,

    Thank you for your note.

    If you add a secondary tick series in State.Configure, does that resolve the issue?

    For example,

    Code:
    else if (State == State.Configure)
    {[INDENT]				AddDataSeries(Data.BarsPeriodType.Tick, 1);
    [/INDENT]			
    }
    I look forward to your reply.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_AlanP View Post
      Hello Jack22,

      Thank you for your note.

      If you add a secondary tick series in State.Configure, does that resolve the issue?

      For example,

      Code:
      else if (State == State.Configure)
      {[INDENT]				AddDataSeries(Data.BarsPeriodType.Tick, 1);
      [/INDENT]			
      }
      I look forward to your reply.
      All good now with the additional DataSeries, appreciate it.

      Comment


        #4
        Now I have a new scenario with referencing OrderFlowCumulativeDelta. I reference DeltaClose, which references perfectly historically, but when I try and reference DeltaClose in real-time I get a different value than what is plotted by the indicator. In the attached image, where the arrow is starts the first real-time bar (all bars before this are historical and the number drawn corresponds to panel 2. The bar with the arrow prints OnBarClose -50, but the panel 2 value is 41--this is a huge difference. Why am I seeing such a huge difference in real-time (OnBarClose) versus historical?
        Attached Files

        Comment


          #5
          Hello Jack22,

          Thank you for your post.

          Set the Order Flow Cumulative Delta indicator on the chart to Calculate.OnBarClose just like your custom indicator does and the two values will match.

          I will report the behavior when it is using OnPriceChange to our development team.

          Comment


            #6
            Originally posted by NinjaTrader_PatrickH View Post
            Hello Jack22,

            Thank you for your post.

            Set the Order Flow Cumulative Delta indicator on the chart to Calculate.OnBarClose just like your custom indicator does and the two values will match.

            I will report the behavior when it is using OnPriceChange to our development team.
            The indicator in panel 2 and the one I reference I have set to OnBarClose--in the image in my last post.

            Comment


              #7
              Hello Jack22,

              Thank you for your update.

              I see that now as well. I will report this behavior to our development team.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by KennyK, 05-29-2017, 02:02 AM
              3 responses
              1,281 views
              0 likes
              Last Post NinjaTrader_Clayton  
              Started by AttiM, 02-14-2024, 05:20 PM
              11 responses
              184 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by fernandobr, Today, 09:11 AM
              1 response
              3 views
              0 likes
              Last Post NinjaTrader_Erick  
              Started by timmbbo, Today, 08:59 AM
              1 response
              3 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by itrader46, Today, 09:04 AM
              1 response
              6 views
              0 likes
              Last Post NinjaTrader_Clayton  
              Working...
              X