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 Mindset, 04-21-2026, 06:46 AM
          0 responses
          44 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          54 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          34 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          95 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          57 views
          0 likes
          Last Post PaulMohn  
          Working...
          X