• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

The name 'MIN' Does not exist

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

    The name 'MIN' Does not exist

    I try to compile (f5) and get errors- all are:

    The name 'MIN' (or 'MAX' on some errors) does not exist in the current context (CS0103)

    Any idea what's wrong?

    Thanks in advance,

    T.
    Last edited by Tzachi; 08-22-2016, 09:12 AM.

    #2
    Hello Tzachi,

    Thank you for your post.

    Double click on the error and it will take you to the line of code that is causing the message. Then take a screenshot and attach it to your response.

    To send a screenshot with Windows 7 or newer I would recommend using Window's Snipping Tool.

    http://windows.microsoft.com/en-us/w...#1TC=windows-8

    Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screenshot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save as a jpeg file and send the file as an attachment.

    http://take-a-screenshot.org/
    Patrick H.NinjaTrader Customer Service

    Comment


      #3
      See below the errors notes.
      Attached Files

      Comment


        #4
        The error details below
        Attached Files

        Comment


          #5
          PatrickH,

          Any idea how to get rid of the above problem so can upload/create new indicators and be able to compile?

          Comment


            #6
            Tzachi,

            Thank you for your patience.

            You will need to replace the missing files in your installation (this is what the errors indicate). This occurs when you select 'Yes' to replace files in your installation that you do not need to replace or did not intend to. Any indicator with '@' in it's name should not be replaced. When you select 'Yes', if any of the files fail to import you will be left without the indicators you selected 'Yes' to replace.

            To resolve please follow the instructions below:
            • Shut down NinjaTrader
            • Go to Documents\NinjaTrader 7 on your PC
            • Rename the 'Config' file to 'Config.prev'
            • Go to Programs and Features in Windows (Start Menu > Control Panel or right click on the Start icon and select Programs and Features (Windows 10))
            • Then select NinjaTrader 7 and uninstall
            • Then reinstall NinjaTrader 7 from the following link: http://ninjatrader.com/GetStarted
            • Start NinjaTrader after the install
            • Once it has started up on your PC access the Control Center > File > Exit
            • Then go back to Documents\NinjaTrader 7 on your PC
            • Delete the 'Config' file (make sure NOT to delete the 'Config.prev' file you renamed earlier)
            • Then rename 'Config.prev' back to 'Config'
            • Start NinjaTrader and compile your indicators through the NinjaScript Editor right click menu under Tools > Edit NinjaScript > Indicators > select and indicator > OK


            Please let me know if you have any questions.
            Patrick H.NinjaTrader Customer Service

            Comment


              #7
              Many thanks, works perfectly.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by tvaughan4, 12-13-2019, 10:46 PM
              2 responses
              14 views
              0 likes
              Last Post tvaughan4  
              Started by digibob, 12-13-2019, 10:01 PM
              3 responses
              12 views
              0 likes
              Last Post digibob
              by digibob
               
              Started by ldissinger, Yesterday, 12:55 PM
              1 response
              14 views
              0 likes
              Last Post ldissinger  
              Started by pstrusi, Yesterday, 09:06 AM
              1 response
              25 views
              0 likes
              Last Post marcus2300  
              Started by vpzdcv, Yesterday, 02:31 AM
              0 responses
              13 views
              0 likes
              Last Post vpzdcv
              by vpzdcv
               
              Working...
              X