Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Edit code in strategy builder

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

    Edit code in strategy builder

    Hello

    I did my strategy in "strategy builder" after that i need to edit the code. But when I use "unlock code" y cant save the strategy is not appear in the strategy list.

    What is the correct steps to edit the code and save correctly?

    When i select " view code" i cant edit there , so is the reason to unlock the code

    Regards

    #2
    Hello kevingrillo,

    Thanks for your post.

    You cannot manually code a strategy that has not been unlocked from the Strategy Builder. You would need to edit the strategy using the Strategy Builder. For example, if you needed to modify a condition in the strategy, you would do so in the Conditions and Actions screen of the Strategy Builder.

    If you clicked the 'Unlock code' button and unlocked the script, the strategy would no longer appear in the available strategies list of the Strategy Builder since it was unlocked. To edit an unlocked strategy, you would need to open a New > NinjaScript Editor window, open the Strategies tab, and double-click on the strategy file to open it. Once you open the strategy file, you could edit the code of that file in the NinjaScript Editor window.

    To save changes that have been made to the script you must click the Compile button in the NinjaScript Editor window to run a compile.

    Here is a link to our publicly available training videos, 'Strategy Builder 301' and 'NinjaScript Editor 401', for you to view at your own convenience.

    Strategy Builder 301 — https://www.youtube.com/watch?v=_KQF2Sv27oE&t=13s

    NinjaScript Editor 401 - https://youtu.be/H7aDpWoWUQs?list=PL...We0Nf&index=14

    I am also linking you to the Educational Resources section of the Help Guide to help you get started with NinjaScript:
    https://ninjatrader.com/support/help..._resources.htm

    If you are new to C#, to get a basic foundation for the concepts and syntax used in NinjaScript I would recommend this section of articles in our help guide first:
    https://ninjatrader.com/support/help...g_concepts.htm

    And the MSDN (Microsft Developers Network) C# Language Reference.
    https://ninjatrader.com/support/help...erence_wip.htm

    Please let us know if we may further assist.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    53 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    70 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X