Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Analyzer kills Strategy running?

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

    Strategy Analyzer kills Strategy running?

    First the facts;

    1. I have been running some Strategies on my SIM account for testing purposes.
    2. I continue to test Strategy parameters and perform back testing.
    3. Sometimes I change the parameters of the Strategy that I am currently running on my SIM account.
    4. Sometimes I test other Strategies or start a new Strategy whilst running my Strategies on my SIM account.
    5. This seems to cause crashes particularly when back testing.
    6. The running Strategies also seem to quit running.

    Questions;


    1. Can I edit Strategies while some are running?
    2. Can I edit a particular Strategy whilst IT is running OR, must I disable that Strategy first OR, remove altogether and restart after editing?
    3. Can I create Strategies while some are currently running?
    4. Does the act of compiling strategies affect ALL Strategies at the same time, much like compiling an Indicator?

    Thanks in advance for your assistance.


    Best regards,


    Dolfan

    #2
    Hi Dolfan,

    Yes, you can create, modify, remove, and compile scripts while scripts are running.

    A running script will be in memory. This will remain as is with the current parameters and code (as it existed when the strategy was enabled).

    Deleting a script will not remove an active instance from memory, which will continue to run until disabled.

    Any changes made to a script and then compiled, will not be effective until the script is restarted. Any changes made to the Initialize section of a NT7 script will not be effective until the instance of the script is removed and re-added.


    When backtesting this will consume a great amount of resources. If you are only getting crashing when compiling during a backtest this may indicate you are running out of resources.
    If you doing an optimization, this performs many backtests and compiling a script that is being optimized could lead to issues as this would change the code in between tests and possibly between initialization and the starting of the script.

    Compiling an indicator or strategy will cause all scripts, including all indicators, all strategies, all bar types, all chart types, all market analyzer column scripts, everything, to also compile.

    NinjaTrader compiles all scripts at the same time.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    65 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    41 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    23 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    26 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    52 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X