Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT7 calculateonbarclose=false Bar Painting question

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

    NT7 calculateonbarclose=false Bar Painting question

    HI

    The BetterVolume2 indicator in our forum imports without error into NT7. When I use the calculateonbarclose=true it plots one solid color for the entire bar but when i use calculateonbarclose=false the bars seem to paint the value assigned for each tick progressively giving a multicolor bar. The attached chart shows this.

    Could someone kindly point me in the correct direction to fix this.... I will share it in the forum once complete.

    Regards

    Sammyc
    Attached Files

    #2
    Originally posted by SammyC View Post
    HI

    The BetterVolume2 indicator in our forum imports without error into NT7. When I use the calculateonbarclose=true it plots one solid color for the entire bar but when i use calculateonbarclose=false the bars seem to paint the value assigned for each tick progressively giving a multicolor bar. The attached chart shows this.

    Could someone kindly point me in the correct direction to fix this.... I will share it in the forum once complete.

    Regards

    Sammyc
    Hm, good question. Perhaps it has something to do with the various plots you've created, each with a different color. Have thought about using one dataseries, and then changing the color of this plot based on certian conditions? See for example http://www.ninjatrader.com/support/f...ght=plotcolors .

    Sadly, this will mean that you'll have to significantly rewrite your code. Let's hope someone else has an better idea!

    Regards,

    Comment


      #3
      Sammy, it looks like you would need to work in the .Reset() method here to 'clean up' intrabar, very similiar as in this sample - http://www.ninjatrader.com/support/f...ead.php?t=3227

      Comment


        #4
        Thank you for your response... the RESET method does not seem to be too bad.
        I will try it.

        Sammy

        Comment


          #5
          Thank you

          I added the Reset as you suggested and it cleans up the color problem.
          However a shadow is still visible depending on the thickness of the bar
          see attached
          Have i done something wrong or is there something additional i must do?
          Thank you

          Sammy
          Attached Files

          Comment


            #6
            Hi SammyC,

            Are all plots within this indicator using the same width?

            You can check this without looking at the code. Right Click > Indicators > Select your indicator and verify the width for all plots.
            Ryan M.NinjaTrader Customer Service

            Comment


              #7
              Hello,

              Taking a look through your code it looks like you neer reset VBar which is the silver bar.

              You would also need to reset this as it is trying to plot both currently.

              Let me know if I can be of further assistance.
              BrettNinjaTrader Product Management

              Comment


                #8
                Thank you for your help.... I will post the new indicator in the forum.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                581 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                338 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                103 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                554 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                552 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X