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

Setting user input variable parameters

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

    Setting user input variable parameters

    What is the best way to set the parameters for a user defined variable?

    I would like to limit the input to a simple "y" or "n".

    Also if possible a pop up if the user enters a value outside the parameters.

    #2
    Hello sdauteuil,

    A bool is a true or false value.

    Try adding a bool user input using the Strategy Builder.

    Below is a link to a forum post with helpful information about getting started with NinjaScript.
    https://ninjatrader.com/support/foru...040#post786040


    NinjaTrader does not create a popup if a number value is outside of the allowed range. Instead it changes the value to be within range.

    You could change the value to allow a greater range of unacceptable values, and then have custom logic to call Alert() to the Alert Log window if the value is a number you want to trigger an alert for.
    https://ninjatrader.com/support/help.../nt8/alert.htm

    You could also have a custom addon window open.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by pechtri, 06-22-2023, 02:31 AM
    10 responses
    124 views
    0 likes
    Last Post Leeroy_Jenkins  
    Started by judysamnt7, 03-13-2023, 09:11 AM
    4 responses
    59 views
    0 likes
    Last Post DynamicTest  
    Started by ScottWalsh, Yesterday, 06:52 PM
    4 responses
    36 views
    0 likes
    Last Post ScottWalsh  
    Started by olisav57, Yesterday, 07:39 PM
    0 responses
    7 views
    0 likes
    Last Post olisav57  
    Started by trilliantrader, Yesterday, 03:01 PM
    2 responses
    22 views
    0 likes
    Last Post helpwanted  
    Working...
    X