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

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.

            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

                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.

                    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.

                          Comment


                            #14
                            This feature request has been assigned the internal ID # SFT-1456.

                            Comment

                            Latest Posts

                            Collapse

                            Topics Statistics Last Post
                            Started by Sparkyboy, Today, 10:57 AM
                            1 response
                            5 views
                            0 likes
                            Last Post NinjaTrader_Jesse  
                            Started by swestendorf, Today, 11:14 AM
                            1 response
                            3 views
                            0 likes
                            Last Post swestendorf  
                            Started by TheMarlin801, 10-13-2020, 01:40 AM
                            21 responses
                            3,917 views
                            0 likes
                            Last Post Bidder
                            by Bidder
                             
                            Started by timmbbo, 07-05-2023, 10:21 PM
                            3 responses
                            156 views
                            0 likes
                            Last Post grayfrog  
                            Started by Lumbeezl, 01-11-2022, 06:50 PM
                            30 responses
                            813 views
                            1 like
                            Last Post grayfrog  
                            Working...
                            X