Speeding up NinjaTrader with a RAM drive (ramdisk) - NinjaTrader | futures io social day trading
futures io futures trading


Speeding up NinjaTrader with a RAM drive (ramdisk)
Updated: Views / Replies:25,312 / 110
Created: by pawnbroker Attachments:6

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors – all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you don’t need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 6  
 
Thread Tools Search this Thread
 

Speeding up NinjaTrader with a RAM drive (ramdisk)

  #41 (permalink)
Elite Member
Lubbock TX
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Stage 5 Trading
Favorite Futures: CL
 
MWinfrey's Avatar
 
Posts: 1,879 since Jul 2009
Thanks: 1,449 given, 3,306 received


bob7123 View Post
What Luck! A rainy Saturday here, and a new geeky thing to try. Cool, thanks!

I got everything working as you suggested. WOW charts load faster. Previously I thought delays were due to the IQFeed servers being slow, but I guess not. Great thread!

I found the freeware Dataram RAMDisk worked fine for me, available here. You don't have to pay anything unless you want to make a Ramdrive that is more than 4 GB. I made my RamDrive 1.5GB and it has tons of free space. It is set to backup to my hard drive every 5 minutes, so I am not worried about losing data.

Of course, I couldn't stop there though... I moved my Firefox cache to the ramdrive too. (I'm one of those people that keep a zillion tabs open.) Old but still correct instructions to do that are here: How to Change Cache Size and Location in Firefox

Also, the junction tool you mentioned is not needed after XP, so on my win7 machine I got this GUI tool to create the links:
LinkShellExtension
. I suggest that anyone who gets the LSE might want to read all of the documentation. Not only are junctions supported, but a WHOLE bunch of other options too.

Finally, in regards to SSDs, I have a SSD C drive, and a regular D drive. I manually moved most of my USERS folder to D. I did this so that files that are written to more often are not stored on the SSD, as writing to the SSD drive can degrade it over time. It looks like there is a better way to do that when doing a clean install, using something called "Audit mode" that I had never heard of.

Link to that info is here: Microsoft Answers Page

I've got a new bigger SSD on order, when it gets here I plan to use it to reinstall a fresh copy of windows to get rid of a lot of unused apps. I'll also use the link above to keep more files on the D drive.

And for laughs, I am including a screenshot of the results of HD Tune for my SSD, regular drive and RamDrive.

@bob7123
I am trying to set up the Ramdisk you mentioned and I'm curious. I want to move everything that is in the Documents\NinjaTrader folder to the ramdisk. Do I need to reinstall NT and redirect the installation to the ramdisk or if not, how do I set it up so NT knows to look for everything on the ramdisk?

Thanks,
Mike

Oh wait a second...I didn't read far enough. Looks like I need to get the LinkShellExtension

Reply With Quote
 
  #42 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,353 given, 83,234 received


MWinfrey View Post
@bob7123
I am trying to set up the Ramdisk you mentioned and I'm curious. I want to move everything that is in the Documents\NinjaTrader folder to the ramdisk. Do I need to reinstall NT and redirect the installation to the ramdisk or if not, how do I set it up so NT knows to look for everything on the ramdisk?

Thanks,
Mike

Oh wait a second...I didn't read far enough. Looks like I need to get the LinkShellExtension

I just used the junction command in post 1.

Basically, setup the ram disk (R:), then copy the contents of the NinjaTrader folder to R:\NinjaTrader. Then junction Documents\NinjaTrader -> R:\NinjaTrader.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
The following 4 users say Thank You to Big Mike for this post:
 
  #43 (permalink)
Elite Member
Lubbock TX
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Stage 5 Trading
Favorite Futures: CL
 
MWinfrey's Avatar
 
Posts: 1,879 since Jul 2009
Thanks: 1,449 given, 3,306 received


Well I'm at a loss. Using junction.exe as mentioned in the first post of this thread, I ran into some problems. I created a ramdisk and created a folder called db on the ramdisk and copied all the data from the NT db folder to the ramdisk. then from a command prompt I issued the following command,

junction "C:\Users\Main\Documents\NinjaTrader 7\db" g:\db

got this error

Error creating C:\Users\Main\Documents\NinjaTrader 7\db:
Cannot create a file when that file already exists.

also tried reversing and got the same error.
junction g:\db "C:\Users\Main\Documents\NinjaTrader 7\db"

so, I tried running the same command without a folder on the ramdisk but that only created a link from drive g: back to the drive c: folder.

What am I missing?

Thanks,
Mike

Reply With Quote
 
  #44 (permalink)
Elite Member
Amsterdam, The Netherlands
 
Futures Experience: Intermediate
Platform: Sierra, IRT, ToS, Ninja
Broker/Data: Stage 5
Favorite Futures: NQ
 
bob7123's Avatar
 
Posts: 588 since Oct 2011
Thanks: 109 given, 1,909 received


MWinfrey View Post
Well I'm at a loss. Using junction.exe as mentioned in the first post of this thread, I ran into some problems. I created a ramdisk and created a folder called db on the ramdisk and copied all the data from the NT db folder to the ramdisk. then from a command prompt I issued the following command,

junction "C:\Users\Main\Documents\NinjaTrader 7\db" g:\db

got this error

Error creating C:\Users\Main\Documents\NinjaTrader 7\db:
Cannot create a file when that file already exists.

also tried reversing and got the same error.
junction g:\db "C:\Users\Main\Documents\NinjaTrader 7\db"

so, I tried running the same command without a folder on the ramdisk but that only created a link from drive g: back to the drive c: folder.

What am I missing?

Thanks,
Mike

The link I put up was to a GUI tool. if you follow this link again, it has some pretty detailed instructions on how to work with it as an extension in windows file explorer.

Junctions are a bit tricky, but if you go slow and try a few things I think you can get it sorted.

Also, I don't want to be accused of telling you to do anything that can cause damage so please back up your system first. I like this tool.

Reply With Quote
The following 2 users say Thank You to bob7123 for this post:
 
  #45 (permalink)
Elite Member
Portland Oregon, United States
 
Futures Experience: Beginner
Platform: Ninjatrader®
Broker/Data: CQG, Kinetick
Favorite Futures: Gameplay Klownbine® Trading of Globex
 
Zondor's Avatar
 
Posts: 1,327 since Jul 2009
Thanks: 1,246 given, 2,635 received

Try LSE for creating your junctions and symbolic links.

The Link Shell Extension program (freeware) lets you create junctions and symbolic links without having to use the command line. I have been using it without any problems. I have not done any of these mapping operations with the command line.

"If we don't loosen up some money, this sucker is going down." -GW Bush, 2008
“Lack of proof that something is true does not prove that it is not true - when you want to believe.” -Humpty Dumpty, 2014
“The greatest shortcoming of the human race is our inability to understand the exponential function.”
Prof. Albert Bartlett
Reply With Quote
The following 3 users say Thank You to Zondor for this post:
 
  #46 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,353 given, 83,234 received


MWinfrey View Post
Well I'm at a loss. Using junction.exe as mentioned in the first post of this thread, I ran into some problems. I created a ramdisk and created a folder called db on the ramdisk and copied all the data from the NT db folder to the ramdisk. then from a command prompt I issued the following command,

junction "C:\Users\Main\Documents\NinjaTrader 7\db" g:\db

got this error

Error creating C:\Users\Main\Documents\NinjaTrader 7\db:
Cannot create a file when that file already exists.

also tried reversing and got the same error.
junction g:\db "C:\Users\Main\Documents\NinjaTrader 7\db"

so, I tried running the same command without a folder on the ramdisk but that only created a link from drive g: back to the drive c: folder.

What am I missing?

Thanks,
Mike

Copy the contents of the db folder to the ramdisk.

Delete the db folder on the C: drive.

Then use junction, it will create the db folder as a junction to the ramdisk path. The folder on C: cannot already exist.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
The following 2 users say Thank You to Big Mike for this post:
 
  #47 (permalink)
Elite Member
Lubbock TX
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Stage 5 Trading
Favorite Futures: CL
 
MWinfrey's Avatar
 
Posts: 1,879 since Jul 2009
Thanks: 1,449 given, 3,306 received


Big Mike View Post
Copy the contents of the db folder to the ramdisk.

Delete the db folder on the C: drive.

Then use junction, it will create the db folder as a junction to the ramdisk path. The folder on C: cannot already exist.

Mike

Oh I see...that makes sense now. Sometimes, the obvious eludes me.

Reply With Quote
 
  #48 (permalink)
Elite Member
Portland Oregon, United States
 
Futures Experience: Beginner
Platform: Ninjatrader®
Broker/Data: CQG, Kinetick
Favorite Futures: Gameplay Klownbine® Trading of Globex
 
Zondor's Avatar
 
Posts: 1,327 since Jul 2009
Thanks: 1,246 given, 2,635 received

Your built in RAMDisk

I think it's what we call intuition.

An insight from listening to Denise Shull.

"If we don't loosen up some money, this sucker is going down." -GW Bush, 2008
“Lack of proof that something is true does not prove that it is not true - when you want to believe.” -Humpty Dumpty, 2014
“The greatest shortcoming of the human race is our inability to understand the exponential function.”
Prof. Albert Bartlett
Reply With Quote
 
  #49 (permalink)
Elite Member
Portland Oregon, United States
 
Futures Experience: Beginner
Platform: Ninjatrader®
Broker/Data: CQG, Kinetick
Favorite Futures: Gameplay Klownbine® Trading of Globex
 
Zondor's Avatar
 
Posts: 1,327 since Jul 2009
Thanks: 1,246 given, 2,635 received

Symbolic link to NinjaTrader.Old.sdf file keeps breaking

Two of the files that I moved to my RAM disk are the SQLServer CE database files, Ninjatrader and Ninjatrader.Old. But the symbolic link from the Ram Disk to the Ninjatrader db file keeps breaking, with Ninjatrader then creating a new Ninjatrader.Old.sdf file in the db folder. This is causing all kinds of problems, because the folder being created by Ninjatrader is conflicting with the Ninjatrader.sdf file on the RAM disk (Drive X).

Maybe this is because the period character is not permissible in the target file name. To test this idea I renamed the file on the RAM disk Ninjatrader_Old.sdf, replacing the period with an underscore. Then after creating the symbolic link to the db folder, I renamed that link back to Ninjatrader.Old.sdf, which is the file that the Ninjatrader application will be looking for.

So now, the name of the symbolic link is Ninjatrader.Old.SDF, but the TARGET (on the Link Properties page) is X:\db\Ninjatrader_Old.sdf.

It worked fine during first restart of Ninja, so next step is to see if the link is still there after I reboot the computer.

I would welcome comments or PM's from anyone else who is monkeying around with this stuff.

It is one of the few things that can be done to improve Ninjatrader's overall performance. The lack of interest is surprising.

"If we don't loosen up some money, this sucker is going down." -GW Bush, 2008
“Lack of proof that something is true does not prove that it is not true - when you want to believe.” -Humpty Dumpty, 2014
“The greatest shortcoming of the human race is our inability to understand the exponential function.”
Prof. Albert Bartlett

Last edited by Zondor; January 31st, 2013 at 08:20 PM.
Reply With Quote
 
  #50 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,353 given, 83,234 received



Zondor View Post
Two of the files that I moved to my RAM disk are the SQLServer CE database files, Ninjatrader and Ninjatrader.Old. But the symbolic link from the Ram Disk to the Ninjatrader db file keeps breaking, with Ninjatrader then creating a new Ninjatrader.Old.sdf file in the db folder. This is causing all kinds of problems, because the folder being created by Ninjatrader is conflicting with the Ninjatrader.sdf file on the RAM disk (Drive X).

Maybe this is because the period character is not permissible in the target file name. To test this idea I renamed the file on the RAM disk Ninjatrader_Old.sdf, replacing the period with an underscore. Then after creating the symbolic link to the db folder, I renamed that link back to Ninjatrader.Old.sdf, which is the file that the Ninjatrader application will be looking for.

So now, the name of the symbolic link is Ninjatrader.Old.SDF, but the TARGET (on the Link Properties page) is X:\db\Ninjatrader_Old.sdf.

It worked fine during first restart of Ninja, so next step is to see if the link is still there after I reboot the computer.

I would welcome comments or PM's from anyone else who is monkeying around with this stuff.

It is one of the few things that can be done to improve Ninjatrader's overall performance. The lack of interest is surprising.

Guessing because the file is being recreated by Ninja. When it is re-created, it's probably written to a temp file, then original deleted (breaking sym link), then moved.

I just symlink the entire NinjaTrader 7 directory off of Program Files, never had a problem.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote

Reply



futures io > > > > Speeding up NinjaTrader with a RAM drive (ramdisk)

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
.....SEC May Ticket Speeding Traders kbit News and Current Events 0 February 23rd, 2012 04:08 PM
NT7.4 - RAM hog kashter NinjaTrader 40 April 14th, 2011 02:10 PM
Drive cory Off-Topic 3 October 1st, 2010 04:17 PM
ram nt7 vps MyTraderAdvisor NinjaTrader 5 August 18th, 2010 04:49 PM
Toyota Blames Driver Error for Unwanted Speeding Quick Summary News and Current Events 0 July 14th, 2010 03:20 AM


All times are GMT -4. The time now is 07:04 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-12-16 in 0.17 seconds with 20 queries on phoenix via your IP 54.226.113.250