Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

data processing vs. minimized chart window

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

    data processing vs. minimized chart window

    Hi,

    I am developing an indicator and now I am facing a problem.
    My indicator calculated values in calculated positions draws on chart. It does pretty well until I minimize the chart window, or change workspace. After that it draws the last calculated values at the last calculated places at every single bar. After switching back everything goes as is supposed to be.

    How can I solve this?

    thanks,
    Andre

    #2
    Originally posted by andre.adamov View Post
    Hi,

    I am developing an indicator and now I am facing a problem.
    My indicator calculated values in calculated positions draws on chart. It does pretty well until I minimize the chart window, or change workspace. After that it draws the last calculated values at the last calculated places at every single bar. After switching back everything goes as is supposed to be.

    How can I solve this?

    thanks,
    Andre
    Sounds like you are using a custom Plot(). Is that right?

    Comment


      #3
      yes I use Plot () function, with graphics, bounds, min, max params.

      Comment


        #4
        Originally posted by andre.adamov View Post
        yes I use Plot () function, with graphics, bounds, min, max params.
        Did you call base.Plot() in your custom Plot()?

        Comment


          #5
          Hello Andre,

          Thank you for your post.

          Along with Koganam's question, do you have any errors listed in your Log tab of the NinjaTrader Control Center?

          Comment


            #6
            Originally posted by koganam View Post
            Did you call base.Plot() in your custom Plot()?
            No, I didnt.

            btw, are you referring something like this:

            base.Plot(graphics, bounds, min, max);

            Comment


              #7
              Originally posted by NinjaTrader_PatrickH View Post
              Hello Andre,

              Thank you for your post.

              Along with Koganam's question, do you have any errors listed in your Log tab of the NinjaTrader Control Center?
              Well, I have an Error on calling 'OnBarUpdate' methond for an other indicator. /although that seems to work well/

              Comment


                #8
                Hello Andre,

                Thank you for your response.

                Correct on the base.Plot(). Do you have a plot in your indicator that you set a value to in the OnBarUpdate() method by chance? Such as Plot0.Set(double)?

                Comment


                  #9
                  Originally posted by NinjaTrader_PatrickH View Post
                  Correct on the base.Plot(). Do you have a plot in your indicator that you set a value to in the OnBarUpdate() method by chance? Such as Plot0.Set(double)?
                  No, I use the public override void Plot(...) method to draw rectangles

                  Comment


                    #10
                    Thank you guys for your hints!

                    I have managed to solve it. The part where my objects gets their values was poorly positioned in the code.

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                    0 responses
                    598 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
                    555 views
                    1 like
                    Last Post RFrosty
                    by RFrosty
                     
                    Working...
                    X