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
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Compile Error on Mac Parallells
Collapse
X
-
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. ThanksTags: None
-
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
- May cause issues with identifying logical processors
- May cause issues with access permissions
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
-
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
-
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
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
364 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
567 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
568 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment