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

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, 10: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.

    Learn how to use Snipping Tool to capture a screenshot, or snip, of any object on your screen, and then annotate, save, or share the image.


    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.

    How to take a screenshot on your smartphone, tablet, notebook or desktop computer

    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.

            Comment


              #7
              Many thanks, works perfectly.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by algospoke, Yesterday, 06:40 PM
              2 responses
              18 views
              0 likes
              Last Post algospoke  
              Started by ghoul, Today, 06:02 PM
              3 responses
              14 views
              0 likes
              Last Post NinjaTrader_Manfred  
              Started by jeronymite, 04-12-2024, 04:26 PM
              3 responses
              44 views
              0 likes
              Last Post jeronymite  
              Started by Barry Milan, Yesterday, 10:35 PM
              7 responses
              20 views
              0 likes
              Last Post NinjaTrader_Manfred  
              Started by AttiM, 02-14-2024, 05:20 PM
              10 responses
              180 views
              0 likes
              Last Post jeronymite  
              Working...
              X