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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    50 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    16 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    22 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    23 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X