• 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

Compile indicator error on v7, but not v6.5 (MACOS)

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

    Compile indicator error on v7, but not v6.5 (MACOS)

    Hello,

    Don't know if this is a general problem or because I run under MACOS with VMWARE virtualization (I understand this is unsupported), but thought I'd post it anyway.

    When auto generating the indicator in accordance with the help guide (Custom Color Plots using Thresholds) I chose to create these plots "AboveZero" and "BelowZero".

    I edited nothing in the generated script. Then I compiled it.

    It fails with error message "AboveZero is not defined in the current context" and also "BelowZero is not defined in the current context" - or similar message.

    So, I have tried this using both Windows 7 and Windows 2003 Server edition under VMWARE (i.e. very different platforms although both virtualized).

    The error messages occur for both version:
    7.0.1000.7 (Current), and
    7.0.1000.6 (Previous), 32-bit as well as 64-bit version

    But funny thing, compiling the same code works with:
    6.5.1000.19 (Legacy)*

    Just thought I'd post it before I return to explore 6.5...

    #2
    Trejder, welcome to our forums and thanks for letting us know - I have not heard yet of any similiar reports on this matter - what .NET framework would be run in those virtualized OS, would you know?
    BertrandNinjaTrader Customer Service

    Comment


      #3
      The .NET version installed is 3.5

      Comment


        #4
        Thanks, could you please as well post the script cs file and a screenshot of the exact error received?
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Attached the requested files.

          System (virtualized):
          Microsoft Windows Server 2003
          Standard x64 Edition
          Service Pack 2

          Computer (as reported under System Properties):
          Intel(R) Core(TM) i5-2415M
          CPU @ 2.30 GHz
          2.29 GHz, 1.00 GB of RAM

          Installed programs (according to Control Panel):
          Microsoft .NET Framework 2.0 Service Pack 1
          Microsoft .NET Framework 3.0 Service Pack 1
          Microsoft .NET Framework 3.5
          Mozilla Firefox 6.0 (x86 en-US)
          MSXML 6.0 Parser (KB933579)
          NinjaTrader 7
          VMware Tools
          Attached Files

          Comment


            #6
            Trejder, the red highlighted error means the error is coming from another file - tides.cs in this case. You'll have to fix the error in that script. Your MyCustomIndicator3 file compiled fine on my machine.
            AustinNinjaTrader Customer Service

            Comment


              #7
              Double-click on the error message and the NT Editor will open the correct file at the error location. The error is not in your indicator; it is in the Tides.cs file.

              Regardless, the error will have to be resolved before you will have a successful compilation, as all indicators are compiled by NT into one assembly. That is where the speed and efficiency comes from, among other things.

              Comment


                #8
                Ahh, great! Now it works.. I was not aware the program compiled everything in the directory.

                Thanks a lot.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by RB104, Today, 06:06 PM
                1 response
                10 views
                0 likes
                Last Post NinjaTrader_ShawnB  
                Started by jtrading82, 05-25-2018, 09:59 AM
                9 responses
                978 views
                0 likes
                Last Post NinjaTrader_ShawnB  
                Started by syxforex, Today, 12:11 AM
                2 responses
                15 views
                0 likes
                Last Post syxforex  
                Started by aslane, Today, 02:31 PM
                1 response
                10 views
                0 likes
                Last Post NinjaTrader_Kate  
                Started by stoner, 10-16-2019, 01:38 PM
                5 responses
                53 views
                0 likes
                Last Post sledge
                by sledge
                 
                Working...
                X