• 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

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 darkgreen, Today, 03:35 PM
        0 responses
        7 views
        0 likes
        Last Post darkgreen  
        Started by GTBrooks, Today, 02:44 PM
        2 responses
        14 views
        0 likes
        Last Post GTBrooks  
        Started by GLFX005, Today, 12:22 PM
        4 responses
        41 views
        0 likes
        Last Post NinjaTrader_Kate  
        Started by AspenHiker, Today, 08:37 AM
        1 response
        13 views
        0 likes
        Last Post NinjaTrader_Kate  
        Started by MartinT, Yesterday, 01:12 PM
        3 responses
        17 views
        0 likes
        Last Post MartinT
        by MartinT
         
        Working...
        X