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 cmtjoancolmenero, Yesterday, 03:58 PM
    11 responses
    39 views
    0 likes
    Last Post cmtjoancolmenero  
    Started by FrazMann, Today, 11:21 AM
    0 responses
    5 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