Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

User Defined Inputs in Cond. Builder

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

    User Defined Inputs in Cond. Builder

    Hello NT Support
    In Strat. Wizard I want to optimize an action after so many bars from entry so I set up Bars Since Entry() >= DefaultInput[Bars] (See screenshot). 'Bars' is listed as a interger type in the User Defined Inputs of Strat. Wizard. But I keep getting an error window that says 'value cannot be null'. (See screenshot) Everything works fine if I put a single interger value for Bars Since Entry but I was hoping to optimize for a range of bars since entry to find the best instead of having to change it each time in Strat. Wizard. Thanks.
    Attached Files

    #2
    Hello,

    What data type is Default Input?

    You should be able to just use the Bars int type for the value for your condition.
    MatthewNinjaTrader Product Management

    Comment


      #3
      Thanks Mathew,
      If I understand your question Default Input was integer type. See screenshot. Let me know if this is wrong answer.
      Attached Files

      Comment


        #4
        Hello,

        Can you please try deleting the current condition and readding it? Please try just using "Bars" as the input.

        If that does not work, you might want to try another variable name than bars as this could cause conflicts with other variables.
        MatthewNinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        67 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        36 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        59 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Working...
        X