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.
    https://ninjatrader.com/support/foru...686#post492686
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by twitch251, Today, 05:14 PM
    0 responses
    1 view
    0 likes
    Last Post twitch251  
    Started by robforee2, Today, 05:07 PM
    0 responses
    1 view
    0 likes
    Last Post robforee2  
    Started by blar58, Today, 03:16 PM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Melissa  
    Started by alcorr247, Today, 02:52 PM
    2 responses
    7 views
    0 likes
    Last Post robforee2  
    Started by Radano, Today, 02:30 PM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Working...
    X