Announcement

Collapse
No announcement yet.

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.

    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.

        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.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                607 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                353 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                105 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                560 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                561 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X