Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Give NT preference over other application that are running
All the applications running on your computer equally share your computer's resources. The NinjaTrader application runs at Normal Priority with all the other applications. Especially during fast markets, when other applications are running on your computer, NT is not processing incoming data as quickly as your computer would allow and possibly losing trade data from your market data service.
I have created a NT Indicator that sets NinjaTrader's Process Priority to High, giving NT preference over other applications that are running. It has been saved in the Futures.io Download Area.
Name: SetNinjaTradersPriorityHigh Version 1.1
Exported with: NT 8.0.0.9 64-bit (Multi-Broker) - BETA
To Import Indicator Into NT 8:
1. Download the attached file by clicking on the blue downward arrow or the NT Chart image. Save the file. Do not …
Name: SetNinjaTradersPriorityHigh Version 1.1
Exported with: NT 64-bit 7.0.1000.27
To Import Indicator Into NT 7:
1. Download the attached file by clicking on the blue downward arrow or the NT Chart image. Save the file. Do not open it.
2. From …
Adding this Indicator to one chart in your Workspace will set NinjaTrader's Process Priority High until you exit NT. The Indicator will check before setting the Priority and do nothing if Priority is already set to the Priority specified in its parameter.
Everyone trading with NT should run this indicator or running at High Process Priority should be coded into NinjaTrader.
I admire the ingenuity, but you might consider just setting it one time on start-up. Create a script that launches NinjaTrader, and then sets the priority, and it's done. Instead of an indicator that is constantly checking. You can replace the shortcut with a link to the script.
This was the approach I used 5-6 years ago when I was using NT and wanted to accomplish the opposite of your intent, by setting NT to a lower priority since I was using it mainly for backtesting.
Your suggestion for Below Normal and Low Priority is a very good one. Currently the Indicator's Priority Parameter allows selection of Above Normal, or Normal. It is two line of NinjaScript to add the new ones.
The only Indicator overhead is an OnStateChange() test for (State == State.Configure), which would be done when Chart is loaded or Indicator parameters changed. If NT's Process Priority is already set to the specified Priority Parameter then nothing is done. Otherwise, NT's Process Priority is set to the Parameter value. There is no OnBarUpdate processing.
Unless having a run-queue higher than the available CPU, let's say a run-queue of 12 with only 4 cores, then I don't think that will help.
If you mine bitcoins or search for E.T. with SETI project while using trading with NinjaTrader then it might help!
Agreed setting higher priority won't help speed anything up with Ninja. Lower priority did help though for backtesting, to still have a responsive machine.
I will be traveling for a couple of weeks. When I return I will convert another of my NT 7 Indicators. Testing it will also test your hypothesis and the improvement from NT 8 multi-threading. Will post the results. Thanks for your comments. Jim
I have updated the NT 8 version with Big Mike's suggestion to add BelowNormal Priority value to selectable parameter. Other changes include:
New parm Show NT Priority.
Priority now also checked/set in State.Terminated.
Improved debugging information.
Name: SetNinjaTradersPriorityHigh Version 1.1
Exported with: NT 8.0.0.9 64-bit (Multi-Broker) - BETA
To Import Indicator Into NT 8:
1. Download the attached file by clicking on the blue downward arrow or the NT Chart image. Save the file. Do not …
Working on the NT 7 version to bring up to NT 8 level of features.
NT 7 version of SetNinjaTradersPriorityHigh now has all NT 8 features.
Updated: Oct 22, 2015 8:30AM - New Priority value of BelowNormal. New parm ShowNTPriority. Priority changed only when required. New parameter Debug message to Output Window.