NexusFi: Find Your Edge


Home Menu

 





NinjaTrader and VS2010 for Dummies


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one MXASJ with 17 posts (90 thanks)
    2. looks_two Jura with 4 posts (13 thanks)
    3. looks_3 sam028 with 4 posts (14 thanks)
    4. looks_4 baruchs with 3 posts (10 thanks)
      Best Posters
    1. looks_one MXASJ with 5.3 thanks per post
    2. looks_two sam028 with 3.5 thanks per post
    3. looks_3 Jura with 3.3 thanks per post
    4. looks_4 baruchs with 3.3 thanks per post
    1. trending_up 38,127 views
    2. thumb_up 134 thanks given
    3. group 30 followers
    1. forum 48 posts
    2. attach_file 13 attachments




 
Search this Thread

NinjaTrader and VS2010 for Dummies

  #1 (permalink)
 MXASJ 
Asia
 
Experience: Beginner
Platform: NinjaTrader, TOS
Posts: 796 since Jun 2009
Thanks Given: 109
Thanks Received: 800

I'm now the proud owner of the full version of Visual Studio 2010, having played with VS Express versions for C# and C++, as well as Eclipse for C++ over the past few months.

I'm starting this thread as I learn from scratch what works and doesn't work when trying to use VS2010 with Ninja from a novice standpoint, as I believe there is benefit to keeping your ideas if not your code... portable.

I'll post as I learn, and if anyone wants to help that would be great. I note at least two posts in the Sticky Section about VS2010/NT, and I'm looking forward to learning and sharing what they are talking about .

The only prerequisite for this is VS2010 Pro.

Thanks to Sam and Gomi for the inspiration.

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
ZombieSqueeze
Platforms and Indicators
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Exit Strategy
NinjaTrader
Better Renko Gaps
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
48 thanks
Just another trading journal: PA, Wyckoff & Trends
35 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
  #3 (permalink)
 MXASJ 
Asia
 
Experience: Beginner
Platform: NinjaTrader, TOS
Posts: 796 since Jun 2009
Thanks Given: 109
Thanks Received: 800


Let's start with a disclaimer:

This is not supported by Ninja Trader, and can trash your system. Backup up everything including your license key. You may have to completely reinstall Ninja. Do not try this on a production system as you may rip the fabric of space and time and plunge the earth into eternal darkness.

Official Ninja support is only for this: Visual Studio Debugging

Started this thread Reply With Quote
Thanked by:
  #4 (permalink)
 MXASJ 
Asia
 
Experience: Beginner
Platform: NinjaTrader, TOS
Posts: 796 since Jun 2009
Thanks Given: 109
Thanks Received: 800

This is what I've done to get started, and if anyone has a better or safer way please post it here. Also, depending on how brave you are you might want to wait a day or two until after I post. If I break my system, I'll post here.

I'm using VS2010 Pro, NT7, Win7 Pro.

On VS, File > Open > Project > Documents > Ninja Trader 7 > bin > Custom > NinjaTrader.Custom

That should open a project called NinjaTrader.Custom.

Remove the references for NinjaTrader.Core and WilsonORMapper.

Add references for NinjaTrader.Core and WilsonORMapper by navigating to the NT7 directory in Program Files.

Build Solution (F6).

You should get no errors, and you should now have VS2010 Solution in the NT7 directory in Documents. This is the one you will now use.

Add the Strategies you want to edit by right clicking on the Strategy folder in Solution Explorer, and Add > Existing Item. Navigate to Documents > Ninja Trader 7 > bin > Custom > Strategy and pick a Strategy and use the "Add as link" option in the Add button.

Build Solution (F6).

NinjaScripts need to be compiled in Ninja itself to operate properly (particularly indicators if I read some previous threads correctly), so before you use Ninja again open and compile something.

Here is where I start learning VS2010 so I'll post any cool tips and tricks as I progress, and am welcome to any and all input!

Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	871
Size:	230.3 KB
ID:	17422  
Started this thread Reply With Quote
  #5 (permalink)
 MXASJ 
Asia
 
Experience: Beginner
Platform: NinjaTrader, TOS
Posts: 796 since Jun 2009
Thanks Given: 109
Thanks Received: 800

Code Snippets from the default Ninja installation are attached for import into VS if you use them.

Attached Files
Elite Membership required to download: My Code Snippets.zip
Started this thread Reply With Quote
  #6 (permalink)
 MXASJ 
Asia
 
Experience: Beginner
Platform: NinjaTrader, TOS
Posts: 796 since Jun 2009
Thanks Given: 109
Thanks Received: 800

Notes on different versions of VS 2010....

The Express versions are free to all, but have some functionality limits

URL: Microsoft Express Home - Visual Studio Express and SQL Server Express are free tools

The paid versions have different feature sets. Take a look.

URL: Visual Studio Products - 2010 Ultimate, [AUTOLINK]Premium[/AUTOLINK] & Professional - Microsoft Visual Studio

I'm using VS Pro, which out-of-the-box does not have the profiler and analysis tools mentioned in some previous posts. VS Pro is also available for free if you are a student via the Dreamspark program.

URL: https://www.dreamspark.com/default.aspx

As I'm on VS Pro, I'll be focusing on what can and can't be done in terms of NT script development on that version.

My particular interest is... can I reduce my Stratgey and Indicator development cycle times by using VS in addition to or instead of the default editor in Ninja Trader.

Welcome to the journey!

Started this thread Reply With Quote
Thanked by:
  #7 (permalink)
 MXASJ 
Asia
 
Experience: Beginner
Platform: NinjaTrader, TOS
Posts: 796 since Jun 2009
Thanks Given: 109
Thanks Received: 800

I am far from being ay kind of Power User but the first thing I'm finding is that I really like editing code in the VS IDE. There is a tool for managing code snippets I've installed that make it pretty easy to create your own code snippets... which saves a lot of typing.

The Intellisense running in this also seems to be a bit more feature-rich than the default editor.

I've somehow managed to screw up the installation of the Help files/pointers in VS so I'll be trying to work that out. I'm flying bit blind without either the Help files or a book at the moment, but what is encouraging is that I haven't broken anything yet.

I'm only scratching the surface of this package and there are way more talented people out there than me, so I'm open to any "hey, try this" type suggestions.

Attached Thumbnails
Click image for larger version

Name:	CodeSnippets.jpg
Views:	575
Size:	352.9 KB
ID:	17761   Click image for larger version

Name:	ExtensionManager.JPG
Views:	506
Size:	216.8 KB
ID:	17762  
Started this thread Reply With Quote
Thanked by:
  #8 (permalink)
 MXASJ 
Asia
 
Experience: Beginner
Platform: NinjaTrader, TOS
Posts: 796 since Jun 2009
Thanks Given: 109
Thanks Received: 800

Sam started the BMCodex a while back but it seems to be underutilized. The thread is here:



I've just added the ankh Subversion Source Control Provider for VS to my installation, and I think this is something I am going to like:

ankhsvn: Subversion Support for Visual Studio

I've created a project in the Codex at NinjaTrader/7.0/Indicator to have a play. This is now making a lot more sense!

BTW the project I created is a C# Console Ap that does nothing, but has comments in the code. If anyone wants to have a go at modifying/commit so I get a better idea of how source control works that would be great.

Attached Thumbnails
Click image for larger version

Name:	SVNClient.jpg
Views:	471
Size:	246.3 KB
ID:	17764  
Started this thread Reply With Quote
Thanked by:
  #9 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,446 since Jun 2009
Thanks Given: 33,217
Thanks Received: 101,610

Thx MX. I'm sure @sam028 will be happy that someone is using bmcodex

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #10 (permalink)
 MXASJ 
Asia
 
Experience: Beginner
Platform: NinjaTrader, TOS
Posts: 796 since Jun 2009
Thanks Given: 109
Thanks Received: 800



Big Mike View Post
Thx MX. I'm sure @ sam028 will be happy that someone is using bmcodex

Mike

Trying to use it, mate. I'm a complete neophyte at this but is seems it could be extremely useful.

Started this thread Reply With Quote
Thanked by:




Last Updated on February 4, 2015


© 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