Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Edit Sample Strategy

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

    Edit Sample Strategy

    Hi

    First post. Trying to learn how to build Strategies in NT8

    Looked a the 301 Tutorial and followed it step-by-step. Didnt work

    So the plan is to modify one of the Sample Strategies. Namely the MA corssover

    How do I open it and modify it? I can open the one I made but not the sample ones

    Thanks /danerius

    #2
    Hello danerius,
    Thanks for your post and welcome to the NinjaTrader forum

    What do you mean that the strategy from the 301 tutorial did not work? How were you testing the strategy and what specifically happened?

    To open and edit the 'SampleMACrossOver' strategy go to your Control Center>>New>>NinjaScript Editor>>expand the strategies folder>>double-click on the 'SampleMACrossOver' strategy>>right-click inside the code and select "Save As...">>name your strategy
    Josh G.NinjaTrader Customer Service

    Comment


      #3
      Hi. Thanks for your quick reply

      I followed the 301 Tutorial up to the individual strategy and entered my indicator setup. Theres a number of things that could have wrong on my end. Im not blaming the tutorial

      I managed to save the Sample MA Strategy and it shows in that window but nowhere else. Can I open it in Strategy Builder?

      Thanks /danerius

      Comment


        #4
        Try compiling the strategy by right-clicking inside the code and selecting "Compile". Then look again to see if you can find the strategy in other windows.

        You will not be able to edit that strategy with the Strategy Builder. Only code that has been created in the Strategy Builder and never "Unlocked" can be edited that way.
        Josh G.NinjaTrader Customer Service

        Comment


          #5
          Hi

          I see. The idea was to take a functioning Strategy and work with that. Instead of endlessly trouble shooting the one I tried to make.

          Is there any guide to fixing non performing strategies?

          Thanks /danerius

          Comment


            #6
            You can check out the "Tips" area of our NinjaScript guide. Specifically the "Debugging your NinjaScript Code" page. Is this perhaps what you are looking for?

            Josh G.NinjaTrader Customer Service

            Comment


              #7
              Hi and thanks. I'll look into it

              Regards /danerius

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by sjsj2732, Yesterday, 04:31 AM
              0 responses
              28 views
              0 likes
              Last Post sjsj2732  
              Started by NullPointStrategies, 03-13-2026, 05:17 AM
              0 responses
              284 views
              0 likes
              Last Post NullPointStrategies  
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              281 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              132 views
              1 like
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              90 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Working...
              X