Announcement

Collapse
No announcement yet.

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 NullPointStrategies, Today, 05:17 AM
    0 responses
    50 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    126 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    69 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X