Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NinjaTrader interactive prompt

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

    NinjaTrader interactive prompt

    Hello,
    Is there anyway to have an indicator get a user input , while in runtime (e,g , not indicator parameters) ?
    For example , I want my indicator to print out a message - "do you want to continue?" , and the indicator will then wait until an answer is provided. User will then provide an answer and indicator will continue accordingly.
    Is this possible ? If yes, please point me to relevant documentation .
    Thanks

    #2
    Hello Leope,

    Thank you for the post.

    While this technically is possible in C#, this is not something which would be documented in NinjaScript's documentation nor is something we have a sample of. You could research using C# message boxes to take user input. A possible search term for NT8 would be "C# WPF MessageBox OK Cancel"



    You can execute various types of code in runtime such as a button click or alert/message box, so something like this is possible it is just outside the scope of normal NinjaScript support.

    I look forward to being of further assistance.

    Comment


      #3
      Hello Jesse ,
      Thanks ! I will look into your suggestions.
      If I want to use the MessageBox class, do I need to add another "namespace" or another "using" statement to my Ninjascript ?
      Thanks again

      Comment


        #4
        Hello Leope,

        Yes all the normal C# rules apply here, if you want to use it you will need either the fully qualified name or to add a using statement.

        I look forward to being of further assistance.

        Comment


          #5
          Hi Jesse,
          It worked just great !!! The search tip was fantastic !
          I have to say this again - your support is incredible !!!!
          Thanks again

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          585 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          340 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          103 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          554 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          552 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X