Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Waiting while loading message

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

    Waiting while loading message

    Hello,

    I would like to add a message shown on the screen while my indicator is loading data.

    How can I do that ?

    Probably inside the initialize method


    Many thanks !

    #2
    You can use OnStartUp() to display messages as soon as the indicator is started

    I guess I'm not quite sure how you want this to be handled, but one apporach would be to use the System.Windows.Forms.MessageBox on startup

    Code:
    		protected override void OnStartUp()
    		{
    			System.Windows.Forms.MessageBox.Show("Please wait while the indicator calculates");		
    		
    		}
    MatthewNinjaTrader Product Management

    Comment


      #3
      Matthew

      When I do that , I have to click on OK button and the indicator just show nothing

      Comment


        #4
        Hi,

        How would you like it to work?

        My suggestion will simply display a message box that instructs to a client that the indicator may load. If this is more than you wanted, you can always use a DrawTextFixed object in OnStartUp as well.

        Are you looking for something to happen such as the message to go away at the moment the indicator loaded?

        To check when the indicator has finished loading, you can always compare CurrentBar to Count

        Code:
                    if(CurrentBar == Count - 2)
        			{
        				// do something				
        			}
        MatthewNinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        566 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        330 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        547 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        548 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X