Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy failure

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

    Strategy failure

    Hi

    I have some strategies which when I switched on earlier were working fine.

    I then tried duplicating some and got in to a mess with namespace etc so decided to build from scratch again.

    Unfortunately I just keep getting Error on Generating Strategy, This also happens on building a base strategy and existing strategies including the ones included with NT7.

    I have tried deleting Custom > NinjaTrader>Custom.DLL and rebooting to no avail.

    Thanks Alan

    #2
    Alan, are you creating the strategies from the Strategy Wizard? If so, you'll have to open up another strategy that isn't Wizard generated and hit the F5 key to compile it and that will show you the complete error. Once you get that complete error, please let me know what it is. Thank you.
    AustinNinjaTrader Customer Service

    Comment


      #3
      Thanks Austin, I dont know how to attach a copy. It was a copy of the NT MA Crossover, when compiled it brings up errors from the rogue script! It happens with all strategies including new ones using the builder.

      Errors are CS1513 CS1518 CS1001 CS1022

      The first one is } expected, but the code is fine

      Comment


        #4
        NinjaScript File Error Code Line Column
        Indicator\PrimoEngulfingBars.cs } expected CS1513 - click for info 41 10
        Indicator\PrimoEngulfingBars.cs Expected class, delegate, enum, interface, or struct CS1518 - click for info 68 16
        Indicator\PrimoEngulfingBars.cs Identifier expected CS1001 - click for info 70 33
        Indicator\PrimoEngulfingBars.cs Type or namespace definition, or end-of-file expected CS1022 - click for info 71 9
        Indicator\PrimoEngulfingBars.cs Expected class, delegate, enum, interface, or struct CS1518 - click for info 75 16
        Indicator\PrimoEngulfingBars.cs Type or namespace definition, or end-of-file expected CS1022 - click for info 81 5

        Comment


          #5
          Hope you can read attachment
          Attached Files

          Comment


            #6
            saintalan, all of the error messages are from the 'PrimoEngulfingBars' indicator. Please delete that indicator by going to Tools -> Edit NinjaScript -> Indicator -> select PrimoEngulfingBars -> click the delete button. Then you can open up any other script and try compiling it and everything should compile successfully.
            AustinNinjaTrader Customer Service

            Comment


              #7
              Many thanks Austin, that seems to have sorted it, I obviously had somehow saved it as a strategy and an indicator and was too stupid to see the word INDICATOR in the error ;-))

              Cheers

              Alan

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              648 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              369 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              108 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              572 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              574 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X