NexusFi: Find Your Edge


Home Menu

 





Speeding up NinjaTrader with a RAM drive (ramdisk)


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Big Mike with 20 posts (13 thanks)
    2. looks_two Zondor with 18 posts (24 thanks)
    3. looks_3 kronie with 14 posts (2 thanks)
    4. looks_4 bob7123 with 12 posts (15 thanks)
      Best Posters
    1. looks_one pawnbroker with 3.4 thanks per post
    2. looks_two Zondor with 1.3 thanks per post
    3. looks_3 bob7123 with 1.3 thanks per post
    4. looks_4 Big Mike with 0.7 thanks per post
    1. trending_up 60,629 views
    2. thumb_up 94 thanks given
    3. group 41 followers
    1. forum 111 posts
    2. attach_file 6 attachments




 
Search this Thread

Speeding up NinjaTrader with a RAM drive (ramdisk)

  #31 (permalink)
 
Zondor's Avatar
 Zondor 
Portland Oregon, United States
 
Experience: Beginner
Platform: NinjatraderŽ
Broker: CQG, Kinetick
Trading: Gameplay KlownbineŽ Trading of Globex
Posts: 1,333 since Jul 2009
Thanks Given: 1,246
Thanks Received: 2,731

@vegasfoster asked:

Quoting 
Can you specify certain files to load into ram drive or does it have to be a folder?

Using LinkShellExtension, you can create symbolic links to files as well as folders.

So you could move your heavily used file onto the RAM disk, then create a symbolic link to it in its original location, which is the directory where you want your trading platform to think it should be. (The link source is the RAM drive, and you drop a symbolic link into the original directory).

Even if you don't use a RAM disk or an SSD, just having these files on their own hard disk might help performance by reducing I/O conflicts.

Disk caching will also help. I have been using Windows Ready Boost for months now without problems.

I'm surprised that there does not seem to be much activity in this thread. You get a big improvement in performance by making such simple changes, without having to buy anything. On Windows machines, this idea should work with any trading platform that has historical data stored in non volatile memory.

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
MC PL editor upgrade
MultiCharts
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Exit Strategy
NinjaTrader
REcommedations for programming help
Sierra Chart
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
25 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
21 thanks
GFIs1 1 DAX trade per day journal
16 thanks
  #32 (permalink)
 
bob7123's Avatar
 bob7123 
Amsterdam, The Netherlands
Legendary Market Wizard
 
Experience: Intermediate
Platform: Ninja, IRT, ToS
Broker: EdgeClear, LMAX
Trading: NQ
Posts: 668 since Oct 2011
Thanks Given: 134
Thanks Received: 2,682


Zondor View Post
I'm surprised that there does not seem to be much activity in this thread. You get a big improvement in performance by making such simple changes, without having to buy anything. On Windows machines, this idea should work with any trading platform that has historical data stored in non volatile memory.

Well, it works and works well. Thanks to Pawnbroker for raising the idea. I'm not sure who else to tell or where else to mention it.

I LOVE your new avatar BTW. Are you selling copies? My ToS monkey could use a friend!

Follow me on Twitter Reply With Quote
  #33 (permalink)
 
Zondor's Avatar
 Zondor 
Portland Oregon, United States
 
Experience: Beginner
Platform: NinjatraderŽ
Broker: CQG, Kinetick
Trading: Gameplay KlownbineŽ Trading of Globex
Posts: 1,333 since Jul 2009
Thanks Given: 1,246
Thanks Received: 2,731


In the C:\Program Files (x86)\Ninjatrader7\db folder there are two text files, Instrument and Instrument.srv.
Moving these to the RAM disk, and creating symbolic links to them from their original location, seems to accelerate Ninjatrader startup.

Backup these files, and know how to get back to your original setup. If these files are damaged, Ninjatrader will not start.

If your system physical disk (usually Disk 0) is an HDD, but you also have one or more additional physical disks, set the RAMDisk to back up to a non-system disk so that creating the RAM disk backup images will not be competing for I/O with processes that use Disk 0.

Then you can set the RAMDisk to back up more often, since the backups will be faster and have less of an effect on other processes.

Latest test: Loaded nine complex workspaces, saved all of them, and restarted Ninjatrader with Kinetick set to connect automatically. Reload takes about three minutes.

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #34 (permalink)
 Felix trader 
California - USA/Rio grande do sul-Brasil.
 
Experience: Intermediate
Platform: tradestation, ninja trader
Trading: Futuros
Posts: 88 since Apr 2011
Thanks Given: 851
Thanks Received: 23

Zondor be possible, you make a small tutorial to install the Ram. Not sure how to do.
My platform freezes when it enters high volume, but put on (true) many indicators and remove many templates that I use, but still freezing.
Also takes several minutes to open the platform.

Excuse my written defective, thank you very much.

Felix

Reply With Quote
  #35 (permalink)
 hector24 
austin, texas
 
Experience: Intermediate
Platform: ninja trader
Trading: currency futures
Posts: 506 since Jan 2011
Thanks Given: 14
Thanks Received: 234

Great information guys, what a great thread to help speed up Ninja. I have the same problem.

Thanks
Hector

Reply With Quote
  #36 (permalink)
 
Zondor's Avatar
 Zondor 
Portland Oregon, United States
 
Experience: Beginner
Platform: NinjatraderŽ
Broker: CQG, Kinetick
Trading: Gameplay KlownbineŽ Trading of Globex
Posts: 1,333 since Jul 2009
Thanks Given: 1,246
Thanks Received: 2,731

@Felix trader, Ninjatrader is probably freezing because you are using poorly coded indicators that waste computer resources. The stupid, lazy coding methods that are so popular result in a condition that is like traveling 500 miles to end up across the street.

That's the first thing that needs to be fixed.

The RAMDisk setup makes Ninjatrader start up faster by letting the charts backfill from RAM rather than from a hard disk. There may be some improvement in real time performance after charts have loaded, but I don't think that will solve your problem.

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #37 (permalink)
 gomi 
Paris
Market Wizard
 
Experience: None
Platform: NinjaTrader
Posts: 1,270 since Oct 2009
Thanks Given: 282
Thanks Received: 4,505

Just wanted to add that a cool feature of RAMdisks is that some of them allow you to use the 1 GB unused memory that you get on 4 GB 32 bit systems.

I use VSuite RAMdisk.

Reply With Quote
Thanked by:
  #38 (permalink)
 pawnbroker 
Cheltenham
 
Experience: Advanced
Platform: InvestorRT, NinjaTrader
Trading: ES
Posts: 54 since Jan 2012
Thanks Given: 8
Thanks Received: 107

I plugged in an old iron and there was a bright flash and loud pop. I thought that my PC would be safe since I have a UPS, but that PC had shut down. On restarting the machine, the NinjaTrader content on my RAM disk was lost and the RAM disk backup file was empty.

I was disappointed that the backup created by the RAM disk software was no good, but I had a separate backup and that saved the day.

Bear in mind that a backup of your C: drive will probably only backup the links on the C: drive to the RAM disk (R: ), but not the directories and files on R:. It depends on how your backup software treats the link to the content on the RAM drive. Windows Backup does not follow the link, so it will backup the link, but not the data on the R: drive. If Windows Backup is set to backup C: and R:, then the content on both drives will be backed up.

My RAM disk saves its contents to c:\ramdisk\nt.img and that is included in my C: drive backup. I was able to restore an old img file to recover the R: drive content, but it would be better to backup R: directly, since the img file needs to be inactive to ensure a clean backup.

Started this thread Reply With Quote
  #39 (permalink)
 
Zondor's Avatar
 Zondor 
Portland Oregon, United States
 
Experience: Beginner
Platform: NinjatraderŽ
Broker: CQG, Kinetick
Trading: Gameplay KlownbineŽ Trading of Globex
Posts: 1,333 since Jul 2009
Thanks Given: 1,246
Thanks Received: 2,731

Computer was locking up to the extent that could only be turned off with the power switch. Seemed to happen when doing a lot of web browsing with Ninja open. Browsers would lock up first, then Ninja, then Windows would freeze. This was after using Dataram RAMDisk for about two weeks with no problems until then.

Dataram RAMDisk is now being offered by AMD under their own brand name.
https://community.amd.com/

Switched to Softperfect RAMDisk, which is working OK so far. This one also allows persistent RAM disk saved to an image during regular intervals and upon shutdown.

RAMDisk : High-performance RAM Disk for Windows
  • Any number of RAM disks. In practice, up to 26 disks due to the number of drive letters available.
  • Any RAM disk size on 64-bit systems. Up to approximately 3.5 GB on 32-bit systems.
  • Persistent RAM disks with an associated on-disk image.
  • Volatile RAM disks whose content disappears on shutdown.
  • Built-in disk image manipulation tools.

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #40 (permalink)
 Koepisch 
@ Germany
 
Experience: Beginner
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: FDAX
Posts: 569 since Nov 2011
Thanks Given: 440
Thanks Received: 518


It's very annoying if an important system software fails. I don't thrust any non-commercial software product in this environment. I'm with SuperSpeed RAMDisk Pro since several years at different systems in different environments (currently not using Ninja with that, because currently i've no speed issues at all). The product range of SuperSpeed is very broad and their have a deep knowledge how to do the things right. Many large companies use their software and they can't afford to release an unstable product.

Koepisch

Reply With Quote




Last Updated on August 6, 2020


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts