• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT8 State == State.DataLoaded

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

    NT8 State == State.DataLoaded

    Hello

    I need draw information text on State == State.DataLoaded and hide it on State == State.Realtime.

    I have tried this with no result on screen

    Code:
                else if (State == State.DataLoaded)
                {
                    Draw.TextFixed(this, "progress", "Processing. Please wait...", TextPosition.Center);
    }

    #2
    Hello ren37,

    Thanks for your post.

    In the OnBarUpdate() method you might try:

    Code:
    				
    if (State == State.Historical)
    {
    	Draw.TextFixed(this, "progress", "Processing. Please wait...", TextPosition.Center);
    				
    }
    				
    else RemoveDrawObject ("progress");
    The text would be removed on the next live/realtime OnBarUpdate().
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      I done this. But NT starts draw this text only after State == Realtime or Transition (not sure). In my case it's might be 30 seconds for 30 days processing.

      Comment


        #4
        Hi ren37,

        Thanks for your reply.

        Could you walk through when you want to see the text message? I understand you want it gone when State==State.RealTime.

        Consider what/when you want to see when starting Ninjatrader, when connecting, when reloading historical data.

        Thank-you.
        Paul H.NinjaTrader Customer Service

        Comment


          #5
          I want to show message during historical data processing of course. And I want to hide it on Realtime state.

          Comment


            #6
            Hello ren37,

            Thank you for your response.

            We would need more information on this. Are you looking to have the text drawn on each bar that is historical for example? Or maybe have the text only drawn while the 'Loading...' text appears on the chart?

            Please clarify so we may provide further details. Any screenshots you may have to help illustrate would be appreciated.
            Patrick H.NinjaTrader Customer Service

            Comment


              #7
              Originally posted by NinjaTrader_PatrickH View Post
              Hello ren37,

              Thank you for your response.

              We would need more information on this. Are you looking to have the text drawn on each bar that is historical for example? Or maybe have the text only drawn while the 'Loading...' text appears on the chart?

              Please clarify so we may provide further details. Any screenshots you may have to help illustrate would be appreciated.
              "Or maybe have the text only drawn while the 'Loading...' text appears on the chart?"
              Did u understand yourself what u have wrote? Because I dont.

              Comment


                #8
                Hello ren37,

                Thank you for your response.

                I am asking you to explain what you are looking for here.

                What I refer to is shown in the attached image. This is when the data is loading on the chart.
                Attached Files
                Patrick H.NinjaTrader Customer Service

                Comment


                  #9
                  Ah, got it now.

                  I dont care when "Loading... " appears on chart.
                  I need print my message ASAP indicator loaded/reloaded and hide it on Real time state. And also I want to print big banner, not as small as default centered text. I know how to do that but NT8 does not calls OnRender() at all for any state before Real time state.

                  I hope this is absolutely clear now.
                  Last edited by ren37; 06-17-2016, 08:21 AM.

                  Comment


                    #10
                    Hello ren37,

                    Thank you for your response.

                    There would not be an option to do so via OnRender or via a Drawing Tool.
                    Patrick H.NinjaTrader Customer Service

                    Comment


                      #11
                      Originally posted by ren37 View Post
                      Ah, got it now.

                      I dont care when "Loading... " appears on chart.
                      I need print my message ASAP indicator loaded/reloaded and hide it on Real time state. And also I want to print big banner, not as small as default centered text. I know how to do that but NT8 does not calls OnRender() at all for any state before Real time state.

                      I hope this is absolutely clear now.
                      So then you were provided with a method to do it using DrawTextFixed(). What was the issue with using that method? Did the text not show up?

                      Comment


                        #12
                        Originally posted by NinjaTrader_PatrickH View Post
                        Hello ren37,

                        Thank you for your response.

                        There would not be an option to do so via OnRender or via a Drawing Tool.
                        Nice...
                        But why not to add this option? Can you address my request to developers? I'm a professional developer too and my clients need this.

                        Comment


                          #13
                          Originally posted by ren37 View Post
                          Nice...
                          But why not to add this option? Can you address my request to developers? I'm a professional developer too and my clients need this.
                          I have sent this in to development.
                          Patrick H.NinjaTrader Customer Service

                          Comment


                            #14
                            This feature request has been assigned the internal ID # SFT-1456.
                            Patrick H.NinjaTrader Customer Service

                            Comment

                            Latest Posts

                            Collapse

                            Topics Statistics Last Post
                            Started by harjinderjit, Today, 08:24 PM
                            0 responses
                            5 views
                            0 likes
                            Last Post harjinderjit  
                            Started by Againmain1, Today, 03:04 AM
                            1 response
                            24 views
                            1 like
                            Last Post NinjaTrader_ShawnB  
                            Started by jmahon, Yesterday, 11:44 PM
                            1 response
                            16 views
                            0 likes
                            Last Post NinjaTrader_ChrisL  
                            Started by Tomhgriff1, 01-03-2020, 04:07 AM
                            4 responses
                            47 views
                            0 likes
                            Last Post bkonia
                            by bkonia
                             
                            Started by cary1267, Today, 09:37 AM
                            1 response
                            24 views
                            0 likes
                            Last Post NinjaTrader_ShawnB  
                            Working...
                            X