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 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 chartchart, 05-19-2021, 04:14 PM
              3 responses
              577 views
              1 like
              Last Post NinjaTrader_Gaby  
              Started by bsbisme, Yesterday, 02:08 PM
              1 response
              15 views
              0 likes
              Last Post NinjaTrader_Gaby  
              Started by prdecast, Today, 06:07 AM
              0 responses
              3 views
              0 likes
              Last Post prdecast  
              Started by i019945nj, 12-14-2023, 06:41 AM
              3 responses
              60 views
              0 likes
              Last Post i019945nj  
              Started by TraderBCL, Today, 04:38 AM
              2 responses
              18 views
              0 likes
              Last Post TraderBCL  
              Working...
              X