Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Color coding disappears when reloading chart

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

    Color coding disappears when reloading chart

    I have an indicator which changes bar color with direction of an MA. Every time I reload the chart the bar colors revert to normal. In order for the indicator to work I need to reload it.

    Can you think of what might cause this?

    Thanks,

    Ron

    #2
    Ron, any errors in the log tab when this occurs? Are you calling other indicators from this indicator to arrive at the coloring conditions?

    Comment


      #3
      Hello,

      No error messages, but I do call out other indicators. It calls to a moving average in order to determine the color of the bars. Is this the problem?

      Can it be solved?

      Thanks,

      Ron

      Comment


        #4
        Ron, might be the issue - please delete any CalculateOnBarClose statements in the called indicator, then set this only from the calling / 'mother' indicator and see if it helps.

        Comment


          #5
          I'm not 100% sure I understand, but here's what I did.
          I created a new MA indicator which is identical to the original one except that I removed reference to "on bar update". I then called this new indicator instead of the original one from my color bar indicator.

          I still have the same problem.

          Did I understand you correctly?

          Ron

          Comment


            #6
            Ron, I believe you mean removed the reference to CalculateOnBarClose in the Initialize() of your new indicator, right?

            If this didn't help, please post the indicator or contact me at support at ninjatrader dot com with it so I can try to reproduce on my end.

            Comment


              #7
              Sorry, the wires in my brain must have crossed. But here's what I've tried now:

              I did not find "calculate on bar close" in the called indicator, so I added "CalculateOnBarClose = false" in the "initialize" section.

              This still didn't help.

              I should also note that I'm using the UniversalMovingAverage so as to employ a drop down menu for choosing which MA will be called to determine bar color. But I had the same problem even before adding this capability.

              Comment


                #8
                No no. You do NOT want any CalculateOnBarClose line in Initialize() for your indicator.

                Please provide more information as to what exactly and how exactly you interact with UniversalMovingAverage as this is not a standard NT indicator.
                Josh P.NinjaTrader Customer Service

                Comment


                  #9
                  Ninja's acting up on me (keeps shutting down) so I can't continue until I get it resolved. I sent the log file to support. We will continue this conversation later.

                  Comment


                    #10
                    Ok, please let us know how it goes.

                    Comment


                      #11
                      OK,
                      The original HMA indicator (which is what I'm calling) does not have "OnBarUpdate" referenced in the initialize section.

                      IN order to avoid confusion I made a simpler version of the paint bar indicator which does not employ the universal moving average. This indicator still exhibits the same problem--it needs to be reloaded in order to stay in effect.

                      So should I send you this indicator so you can look at it?

                      Ron

                      Comment


                        #12
                        oops, I did it again...I meant that the HMA does not reference "CalculateOnBarClose" in the initialize section.

                        Comment


                          #13
                          Hi Ron, yes if you could post the indicator or send via mail to us it would be helpful, thanks

                          Comment


                            #14
                            Yes,

                            Serializing the color inputs made it work.

                            Thanks

                            Comment


                              #15
                              Great, thanks for reporting back here, if anybody stumbles into this, too, here the link - http://www.ninjatrader-support2.com/...ead.php?t=4977

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                              0 responses
                              576 views
                              0 likes
                              Last Post Geovanny Suaza  
                              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                              0 responses
                              334 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by Mindset, 02-09-2026, 11:44 AM
                              0 responses
                              101 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                              0 responses
                              553 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by RFrosty, 01-28-2026, 06:49 PM
                              0 responses
                              551 views
                              1 like
                              Last Post RFrosty
                              by RFrosty
                               
                              Working...
                              X