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 Danila, Today, 04:38 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Marco  
    Started by sinpeople, Today, 04:38 AM
    0 responses
    7 views
    0 likes
    Last Post sinpeople  
    Started by kiffgj, Today, 04:23 AM
    0 responses
    6 views
    0 likes
    Last Post kiffgj
    by kiffgj
     
    Started by Leeroy_Jenkins, Today, 03:45 AM
    0 responses
    10 views
    0 likes
    Last Post Leeroy_Jenkins  
    Started by Realsmooth3, Yesterday, 09:10 PM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_Marco  
    Working...
    X