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 charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        60 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        148 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        162 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        98 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        286 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X