Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Script Lifecycle Question - Enabling from Strategies Tab in Control Center

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

    Script Lifecycle Question - Enabling from Strategies Tab in Control Center

    I have read through the lifecycle of a script info in the help guide and do not see the answer to this question.


    Assuming the following scenario:

    1.) I load a strategy in the Strategies Tab
    2.) I enable the strategy from the Strategies Tab by clicking the Enabled box
    3.) The strategy runs without trouble, and I un-enable it from the Strategies Tab by clicking the box again
    4.) I do not remove the strategy from the Strategies Tab
    4.) I make some changes to the loaded strategy in the Script Editor
    5.) I compile the updated script

    Question:

    If I re-enable the previously loaded and run strategy in the Strategies Tab is the old version of the strategy run from memory?
    Or does NT grab the newly compiled code to run?



    Thank you for any info


    #2
    Hello 9817_dynamic,

    Thank you for your post.

    To ensure all changes are present in the code, you would want to remove the strategy from the strategies tab and create a new instance - if you don't, changes made in OnStateChange will likely not be picked up.

    Please let us know if we may be of further assistance to you.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    81 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    66 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X