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

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.
    JesseNinjaTrader Customer Service

    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.
        JesseNinjaTrader Customer Service

        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 wzgy0920, 04-20-2024, 06:09 PM
          2 responses
          27 views
          0 likes
          Last Post wzgy0920  
          Started by wzgy0920, 02-22-2024, 01:11 AM
          5 responses
          32 views
          0 likes
          Last Post wzgy0920  
          Started by wzgy0920, 04-23-2024, 09:53 PM
          2 responses
          49 views
          0 likes
          Last Post wzgy0920  
          Started by Kensonprib, 04-28-2021, 10:11 AM
          5 responses
          193 views
          0 likes
          Last Post Hasadafa  
          Started by GussJ, 03-04-2020, 03:11 PM
          11 responses
          3,235 views
          0 likes
          Last Post xiinteractive  
          Working...
          X