Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problems With Paint Bar Indicator

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

    Problems With Paint Bar Indicator

    I've put together simple paint bar studies successfully before but I'm running into a problem with this one. All I want to do is paint the price bars one of three colors depending on whether the macd ticks up, ticks down or is equal to the last value. For some reason when I apply the indicator nothing happens. I've looked this over until my eyes are red and still can't figure it out. I would appreciate it if another pair of eyes can look at this for me. This was compiled in the NT7, the latest beta version. Thanks in advance.

    Best Regards
    Chuck
    Attached Files

    #2
    Chuck, you're missing a current bar check at your OnBarUpdate() start, you would see a log error in the Control Center as you apply it to your chart - http://www.ninjatrader.com/support/f...ead.php?t=3170

    Comment


      #3
      Originally posted by NinjaTrader_Bertrand View Post
      Chuck, you're missing a current bar check at your OnBarUpdate() start, you would see a log error in the Control Center as you apply it to your chart - http://www.ninjatrader.com/support/f...ead.php?t=3170
      Bertrand, thanks for the quick response. I'm not real swift at programming yet. I went to the link you provided and tried inserting the code but I'm running into all kinds of compile areas. Can you help me out in this one case and show me exactly where the code needs to be inserted? Thanks for all your help.

      Best Regards
      Chuck

      Comment


        #4
        Hi Chuck, it's a one line change at the OnBarUpdate() start to ensure no invalid bars are attempted to be accessed at the chart start, here's the new export attached for you with this line included, please give it a run.
        Attached Files

        Comment


          #5
          Originally posted by NinjaTrader_Bertrand View Post
          Hi Chuck, it's a one line change at the OnBarUpdate() start to ensure no invalid bars are attempted to be accessed at the chart start, here's the new export attached for you with this line included, please give it a run.
          Thanks Bertrand. I'm learning slowly but surely. You guys rock. Have a great weekend.

          Best Regards
          Chuck

          Comment


            #6
            You're welcome, thanks for the kind words - have a great weekend yourself!

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            593 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            343 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
            556 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            554 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X