Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Compile Error on Mac Parallells

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

    Compile Error on Mac Parallells

    Hi there,
    I'm on a mac mini using parallels to run the desktop version of NT. I'm trying to use the NinjaScript Editor to develop a custom strategy. I keep running into a compile error. NT doesn't have any information on the error code. It doesn't like the "=" that I'm using to assign some values. Is this because I'm on a windows vm on a mac? Would love some help. Thanks

    #2
    Hello cbatson89,

    Welcome to the NinjaTrader forums!

    Please note, NinjaTrader is not compatible natively on a Macintosh computer and is not officially supported to run with virtualization software or cloud services such as Azure or AWS.
    Our support will not be able to assist with the setup of virtualization software or cloud services.
    As a head up, using any virtualization software
    • Will cause a performance and internet latency impact
    • May cause issues with file paths and access permissions
    Using any cloud services
    • May cause issues with identifying logical processors
    • May cause issues with access permissions
    Further, any operating system issues encountered cannot be supported by our support team.

    A Virtual Private Server (VPS) running a supported version of Microsoft Windows, with a dedicated processor count, would be recommended instead of using cloud services.
    We also highly recommend using a PC computer which is fully supported, and not using a Mac which is not supported.


    That said, please provide a screenshot of the NinjaScript Editor so we can see the error message and the line of code affected.​
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Here is the error. If I'm not using a PC then, it seems safe to assume that I'll have issues with compilation?

      Comment


        #4
        Hello cbatson89,

        There is no screenshot included with your post. Did you click Upload Attachments and select the image file?

        The compile error may or may not be related to virtualization software.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          That's strange. It's showing that I posted. Round 2.
          Attached Files

          Comment


            #6
            Hello cbatson89,

            The code on line 36, 37, and 38 is not valid C#.

            Assign the default values in State.SetDefaults in OnStateChange().

            As a tip, try using the Strategy Builder to add some inputs and set the default values, then click View Code to view the code that was generated to see the proper code.
            (You will need to either correct or comment out the invalid code in your custom script and then compile to be able to open the Strategy Builder.)

            Below is a link to a forum post with helpful resources on getting started with C# and NinjaScript. Be sure to watch the 'Automate Your Trading with NinjaTrader's Strategy Builder' training video.
            https://ninjatrader.com/support/foru...pts#post786040

            Also, if you have a look at the SMA indicator included with NinjaTrader, you can see the Period input declared on lines 84 to 87 and the default value set on line 46.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              The reason they have the {get; set; } is so the user can define the values. if I just set the value as a default value, I can't adjust without recompiling

              Comment


                #8
                Hello cbatson89,

                The Input public variable does need the get and set. You can't just assign something to the get and set in C# the way you are trying to do.

                The default value set in State.SetDefaults is the default value that will appear in the Strategy window where the user can change the value.
                Chelsea B.NinjaTrader Customer Service

                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