Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    Brandon H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by ETFVoyageur, Today, 06:05 PM
    0 responses
    2 views
    0 likes
    Last Post ETFVoyageur  
    Started by TAJTrades, 04-28-2024, 09:46 AM
    2 responses
    17 views
    0 likes
    Last Post TAJTrades  
    Started by ETFVoyageur, Today, 02:04 PM
    2 responses
    18 views
    0 likes
    Last Post ETFVoyageur  
    Started by mjbatts91, Today, 04:48 PM
    0 responses
    4 views
    0 likes
    Last Post mjbatts91  
    Started by 1001111, Today, 09:45 AM
    2 responses
    21 views
    0 likes
    Last Post 1001111
    by 1001111
     
    Working...
    X