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 sjsj2732, 03-23-2026, 04:31 AM
                    0 responses
                    78 views
                    0 likes
                    Last Post sjsj2732  
                    Started by NullPointStrategies, 03-13-2026, 05:17 AM
                    0 responses
                    313 views
                    0 likes
                    Last Post NullPointStrategies  
                    Started by argusthome, 03-08-2026, 10:06 AM
                    0 responses
                    315 views
                    0 likes
                    Last Post argusthome  
                    Started by NabilKhattabi, 03-06-2026, 11:18 AM
                    0 responses
                    149 views
                    1 like
                    Last Post NabilKhattabi  
                    Started by Deep42, 03-06-2026, 12:28 AM
                    0 responses
                    115 views
                    0 likes
                    Last Post Deep42
                    by Deep42
                     
                    Working...
                    X