Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 giulyko00, Yesterday, 12:03 PM
                    3 responses
                    12 views
                    0 likes
                    Last Post NinjaTrader_BrandonH  
                    Started by habeebft, Today, 07:27 AM
                    1 response
                    14 views
                    0 likes
                    Last Post NinjaTrader_ChristopherS  
                    Started by AveryFlynn, Today, 04:57 AM
                    1 response
                    12 views
                    0 likes
                    Last Post NinjaTrader_Erick  
                    Started by Max238, Today, 01:28 AM
                    5 responses
                    39 views
                    0 likes
                    Last Post Max238
                    by Max238
                     
                    Started by r68cervera, Today, 05:29 AM
                    1 response
                    10 views
                    0 likes
                    Last Post NinjaTrader_ChelseaB  
                    Working...
                    X