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

Cumulative DeltaBars

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

    Cumulative DeltaBars

    I have created a script that uses the logic from the example BuySellVolume script. My script accumulates the values and draws them as candlesticks. Everything draws well but my values seem to be repeating for some reason. Is there any way I could send this privately and have someone take a look to give me a nudge in the right direction? I could send the export along with a little more detail. I don't think it's that complicated but maybe I have been staring at it too hard for too long. Thanks

    #2
    Hi swcooke, thanks for your note.

    I can take a look at your script by sending in the script to platformsupport at ninjatrader.com. Please reference: "<forum link> 2174638 ATTN ChrisL" in the body of the email.

    I look forward to hearing from you.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Hi Chris,

      Can you confirm that you received my email?

      Comment


        #4
        Hi swcooke, sorry for the delay I did receive your script. I am looking into the script now, I narrowed down the problem to your drawCandle method, although I can not see what would be causing the candles to render three times. You probably understand how this method works more than I do, so that will be the place to look for this error. I'll keep looking into it and let you know if I can find the problem. Print statements would be useful to debug this method as well. I will also run the script through Visual Studio debugger and see if I can uncover the problem that way.
        Chris L.NinjaTrader Customer Service

        Comment


          #5
          I actually didn't think to check the drawCandle function because I use it other places and it works fine. It feels like I am assigning the data wrong or something. Been stuck for a couple days on this. Any help appreciated.
          Last edited by swcooke; 06-05-2019, 07:02 AM.

          Comment


            #6
            Hi Chris,

            Any luck? Thanks for the help. I am stumped.

            Comment


              #7
              Chris,

              I figured it out. I didn't have MaximumBarsLookBack = MaximumBarsLookBack.Infinite and so it was resetting the value every 256 bars.Thanks for your help!

              Comment


                #8
                Hi swcooke, I'm glad you were able to find the problem.

                Kind regards.
                Chris L.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by aa731, Today, 02:54 AM
                0 responses
                4 views
                0 likes
                Last Post aa731
                by aa731
                 
                Started by thanajo, 05-04-2021, 02:11 AM
                3 responses
                469 views
                0 likes
                Last Post tradingnasdaqprueba  
                Started by Christopher_R, Today, 12:29 AM
                0 responses
                10 views
                0 likes
                Last Post Christopher_R  
                Started by sidlercom80, 10-28-2023, 08:49 AM
                166 responses
                2,237 views
                0 likes
                Last Post sidlercom80  
                Started by thread, Yesterday, 11:58 PM
                0 responses
                4 views
                0 likes
                Last Post thread
                by thread
                 
                Working...
                X