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 cmtjoancolmenero, Yesterday, 03:58 PM
          11 responses
          39 views
          0 likes
          Last Post cmtjoancolmenero  
          Started by FrazMann, Today, 11:21 AM
          0 responses
          3 views
          0 likes
          Last Post FrazMann  
          Started by geddyisodin, Yesterday, 05:20 AM
          8 responses
          52 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by DayTradingDEMON, Today, 09:28 AM
          4 responses
          26 views
          0 likes
          Last Post DayTradingDEMON  
          Started by George21, Today, 10:07 AM
          1 response
          22 views
          0 likes
          Last Post NinjaTrader_ChristopherJ  
          Working...
          X