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,747 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)

  #61 (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

Thanks to @Beljevina and @Big Mike for those posts. A lot of time went into that first one.

I'm not one to tolerate poorly coded indicators. But with multi time frame indicators that are taking the votes of MACD's that may be running on 50 different time frames in one chart panel, with three of those on one chart, and three or more charts like that in each of four workspaces running at the same time, there is no way around having an obscene amount of CPU demand.

Oh yeah, I just started running the mtf indicators on COBC false... so far so good.

The way the charts flash when the workspaces load is almost scary. But the charts really don't freeze very often.

"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
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote

Can you help answer these questions
from other members on NexusFi?
MC PL editor upgrade
MultiCharts
REcommedations for programming help
Sierra Chart
NexusFi Journal Challenge - May 2024
Feedback and Announcements
Trade idea based off three indicators.
Traders Hideout
How to apply profiles
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
34 thanks
Just another trading journal: PA, Wyckoff & Trends
30 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
23 thanks
GFIs1 1 DAX trade per day journal
21 thanks
  #62 (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


tdschulz View Post
I'm also surprised more people are not following this thread.
thanks again.
Travis

Well, let's hope the NT developers are on that short list!


Beljevina View Post
In a fast moving market, I too will get chart freeze, but, only in CL it seems. I find it incredibly disconcerting. I trade oil predominantly, and I believe it is due in part to the number of ticks coming into NT7 at the time, which NT7 has to process, but only because of the large amount of indicators loaded up on those CL charts.


Big Mike View Post
In my opinion, virtually non-existent chance video has anything to do with "freezes" during high volume activity. It's usually a poorly coded indicator, or just an old CPU.

Agreed.

And let's hope the developers also saw the post on the regular NT wish list thread for a profiler to spot hoggy indicators.

Follow me on Twitter Reply With Quote
  #63 (permalink)
 
jcvmw's Avatar
 jcvmw 
The Woodlands,Texas
 
Experience: Intermediate
Platform: Ninja Trader, Trade Navigator
Broker: AMP, CQG
Trading: Futures
Posts: 13 since Dec 2012
Thanks Given: 1
Thanks Received: 2


I tried ram disk and it quit working for me, but my computer is kind of fast anyways. I have 28gigs ram, 1.5 TB hard drive, but I am having problem getting NT to communicate with excel or vise versa. I have tried DDE into NT but can not get office 2013 to accept it. But that is a subject for another place.

Great forum glad I found it.

Thanks very much,
JCW I'd rather be
Reply With Quote
  #64 (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


jcvmw View Post
I tried ram disk and it quit working for me, but my computer is kind of fast anyways. I have 28gigs ram, 1.5 TB hard drive, but I am having problem getting NT to communicate with excel or vise versa. I have tried DDE into NT but can not get office 2013 to accept it. But that is a subject for another place.

Great forum glad I found it.

Using office, you need to communicate via DDE with the IQFeed client (if you have IQFeed) not NT directly.

If you have Kinetick, you are not licensed to use DDE. (one reason IQFeed costs more.)

If you have another datafeed provider, you want to contact them I guess, as far as I know NT does not provide DDE server support.

Follow me on Twitter Reply With Quote
  #65 (permalink)
 
nbethmann's Avatar
 nbethmann 
Boca Raton FL/USA
 
Experience: Intermediate
Platform: NinjaTrader
Trading: Stocks
Posts: 1 since Aug 2012
Thanks Given: 0
Thanks Received: 0

You really should use Procmon to figure out what files are being used before moving them around. You can get this app from Microsoft. Process Monitor

Reply With Quote
  #66 (permalink)
egormaev
Smolensk, Russia
 
Posts: 21 since Jan 2013
Thanks Given: 1
Thanks Received: 1

I was wondering - how many charts you can have open so that you don't get slowing problem?
I noticed that if I have more than 3 instruments open (especially ES being one of them), when the US market opens, I have this problems of freezing quotes, sometimes disconnections.
Would be nice to know others experience.

Reply With Quote
  #67 (permalink)
egormaev
Smolensk, Russia
 
Posts: 21 since Jan 2013
Thanks Given: 1
Thanks Received: 1

Just a short addition- when I have ES only- all seems fine.

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

That's not really a question for this thread, but I do not get the same issue.

Try making a copy of the workspace and remove all of the indicators and then see if you get the same issue. If not, add the indicators back one by one to see if you find one that is causing the problem.

Also, check that you don't have other workspaces open unintentionally. In the control centre menus, File -> Workspaces will show a list of open workspaces at the bottom. There should be one listed unless you intend to run more than one workspace.

P.S. I use IQFeed for data, if that is relevant.

Started this thread Reply With Quote
  #69 (permalink)
egormaev
Smolensk, Russia
 
Posts: 21 since Jan 2013
Thanks Given: 1
Thanks Received: 1

Thanks for advice.
I use Zen-Fire and I also read similar complaints about Zen at Ninja forum.

Reply With Quote
  #70 (permalink)
 
alexsmit's Avatar
 alexsmit 
reseda, ca
 
Experience: Advanced
Platform: ninja
Trading: 6e
Posts: 11 since Jan 2012
Thanks Given: 1
Thanks Received: 7


I'm just running Ninja on Windows XP on virtual machine under Linux. Even with regular hard drive a performance is great.

An attached picture has a disk performance comparison for "bare metal" system with SATA-III disk (red color) and a VM on system with SATA-II disk (!). As you can see a random read/write is somewhat 100 times faster while running under VM.


Big Mike View Post
Very interesting.

But I don't understand why Windows is not doing its job of caching the database files in RAM to begin with. If it is being frequently used, and you have sufficient memory, then it should already be in memory. It could be that 8GB is simply not enough for your workstation in order for Windows to do this.

I am not sure if Windows has support for some type of O_DIRECT flag like exists on Linux, and that perhaps for some unknown reason the developers of NinjaTrader are purposely instructing Windows to do direct reads instead of cached reads?

How big is your database folder?

Mike


Attached Thumbnails
Click image for larger version

Name:	i7_1_disk.png
Views:	276
Size:	16.2 KB
ID:	106350  
Reply With Quote
Thanked by:




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