Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

CS0103 Error when using Strategy Wizard

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

    CS0103 Error when using Strategy Wizard

    Hi,

    I am using the Strategy Wizard to create a strategy and am receiving two CS0103 errors when I click 'Finish'.

    "The name 'Target' does not exist in the current context"
    "The name 'StopTicks' does not exist in the current context"

    Shouldn't these have automatically been declared by the Wizard?

    If not, can you detail what steps I need to take?

    Thanks,
    C

    #2
    What is 'Target' and 'StopTicks' ? Input parameters?
    RayNinjaTrader Customer Service

    Comment


      #3
      That's the odd thing.

      I do not have anything called 'Target' or 'StopTicks' as a User Defined Input nor do I have any User Variables.

      The inputs that I am using are ShortSig, ShortSt and ShortTarg.

      Perplexing...

      Please advise.

      Thanks,
      C

      Comment


        #4
        You are doing this exclusively in the wizard or, did you start in the wizard and move to the Editor? Also, what NT version are you on?
        RayNinjaTrader Customer Service

        Comment


          #5
          Exclusively the Wizard.

          Version 6.5.1000.5

          Weird, huh?

          C

          Comment


            #6
            Likely these errors are coming from a different file. When the error shows up, you will see it refers to a file. Is this file the same as the strategy you are working on or something else? If something else, then this is the problem file. If you don't need it, just delete it via Tools > Edit NinjaScript.... Select the file and press the "Delete" button.
            RayNinjaTrader Customer Service

            Comment


              #7
              The errors are from the same Strategy file.

              I tried to delete it figuring that I would simply start over, but am getting a window that says:'"...can not be deleted. This file is likely referenced by other NinjaScript files and these dependencies need to be removed first."

              I only have 5 strategies in this instance and 3 of them have been there for over a month.

              I created 1 today and had this error and created another one to see if I would get the same error.

              I cannot delete either of them. If I try to delete one of my earlier files, which were working fine, I also get the 'dependencies need to be removed first.'

              Something seems corrupted.

              It seems that I can neither go forward nor backwards.

              Please advise.

              Thanks,
              C

              Comment


                #8
                Go to the folder My Documents\NinjaTrader 6.5\bin\Custom\strategy and move all your custom files to another temp folder.

                Then start NT, go to Tools > Edit NinjaScript > Indicator > select any indicator and press F5 to compile? Does it successfully compile?

                If yes, go ahead and create a strategy from scratch.
                RayNinjaTrader Customer Service

                Comment


                  #9
                  Followed the instructions and am receiving multiple CS0103 errors when trying to compile the indicator, 'ADX'.

                  What can you suggest that I do next?

                  Thanks,
                  C

                  Comment


                    #10
                    Hi,

                    Please send an e-mail to support AT NinjaTrader dot com titled ATTN: Mike so we may provide you with further assistance.
                    MichaelNinjaTrader Customer Service

                    Comment


                      #11
                      Done...Thanks, C♠

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                      0 responses
                      633 views
                      0 likes
                      Last Post Geovanny Suaza  
                      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                      0 responses
                      364 views
                      1 like
                      Last Post Geovanny Suaza  
                      Started by Mindset, 02-09-2026, 11:44 AM
                      0 responses
                      105 views
                      0 likes
                      Last Post Mindset
                      by Mindset
                       
                      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                      0 responses
                      567 views
                      1 like
                      Last Post Geovanny Suaza  
                      Started by RFrosty, 01-28-2026, 06:49 PM
                      0 responses
                      568 views
                      1 like
                      Last Post RFrosty
                      by RFrosty
                       
                      Working...
                      X