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 Barry Milan, Today, 10:35 PM
                1 response
                7 views
                0 likes
                Last Post NinjaTrader_Manfred  
                Started by WeyldFalcon, 12-10-2020, 06:48 PM
                14 responses
                1,428 views
                0 likes
                Last Post Handclap0241  
                Started by DJ888, Yesterday, 06:09 PM
                2 responses
                9 views
                0 likes
                Last Post DJ888
                by DJ888
                 
                Started by jeronymite, 04-12-2024, 04:26 PM
                3 responses
                40 views
                0 likes
                Last Post jeronymite  
                Started by bill2023, Today, 08:51 AM
                2 responses
                16 views
                0 likes
                Last Post bill2023  
                Working...
                X