Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bug: Variables with same name on different strategies

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

    Bug: Variables with same name on different strategies

    I have found a bug in NT 6.5, if you have a GUI-changeable/optimizeable variable with the same name in more than one strategy, the GUI does not re-load the saved defaults from the script, instead it uses the saved defaults in memory from the last execution.

    Example:
    Strategy 1 has variable "optimizeme" set to 1.
    Strategy 2 has variable "optimizeme" set to 2.

    Steps:
    Open strategy 1, change optimizeme from its script default of 1 to 3. Run a backtest or initialize the strategy to run/execute.

    Open strategy 2, the optimizeme figure should show 2, per the script default since it is first time this strategy has been opened. However, it shows 3.

    Naturally, renaming the variable in the script will solve this problem. Just thought you should be aware, unless you consider this a 'feature'.

    Mike

    #2
    Thanks for bringing this to our attention.
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    61 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    149 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
    99 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