Big Mike's Trading Forum
 

Go Back   Big Mike's Trading Forum

> Trading Forums > Platforms and Indicators > NinjaTrader > NinjaTrader Programming


Notices
     

NinjaTrader and VS2010 for Dummies
Started:July 23rd, 2010 (11:23 AM) by MXASJ Views / Replies:14,075 / 44
Last Reply:November 1st, 2013 (06:51 PM) Attachments:13

Welcome to Big Mike's Trading Forum.

Welcome, Guest!

This forum was established to help traders by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

BMT is fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • 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, and we will never resell your private information.

-- Big Mike
     

Reply
 13  
 
Thread Tools Search this Thread

NinjaTrader and VS2010 for Dummies

Old July 23rd, 2010, 11:23 AM   #1 (permalink)
Elite Member
Asia
 
Trading Experience: Beginner
Platform: NinjaTrader, TOS
 
Posts: 798 since Jun 2009
Thanks: 109 given, 732 received

NinjaTrader and VS2010 for Dummies

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.

Reply With Quote
     
The following 18 users say Thank You to MXASJ for this post:
     

Old July 23rd, 2010, 11:23 AM   #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

     

Old July 24th, 2010, 02:38 AM   #3 (permalink)
Elite Member
Asia
 
Trading Experience: Beginner
Platform: NinjaTrader, TOS
 
Posts: 798 since Jun 2009
Thanks: 109 given, 732 received


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

Reply With Quote
     
The following user says Thank You to MXASJ for this post:
     

Old July 24th, 2010, 03:14 AM   #4 (permalink)
Elite Member
Asia
 
Trading Experience: Beginner
Platform: NinjaTrader, TOS
 
Posts: 798 since Jun 2009
Thanks: 109 given, 732 received

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
NinjaTrader and VS2010 for Dummies-capture.jpg  

Last edited by MXASJ; July 24th, 2010 at 09:04 AM.
Reply With Quote
     

Old July 24th, 2010, 04:59 AM   #5 (permalink)
Elite Member
Asia
 
Trading Experience: Beginner
Platform: NinjaTrader, TOS
 
Posts: 798 since Jun 2009
Thanks: 109 given, 732 received

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

Attached Files
Register to download File Type: zip My Code Snippets.zip (21.8 KB, 159 views)
Reply With Quote
     
The following 9 users say Thank You to MXASJ for this post:
     

Old July 24th, 2010, 08:56 AM   #6 (permalink)
Elite Member
Asia
 
Trading Experience: Beginner
Platform: NinjaTrader, TOS
 
Posts: 798 since Jun 2009
Thanks: 109 given, 732 received

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, Premium & 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!

Reply With Quote
     

Old July 30th, 2010, 10:16 PM   #7 (permalink)
Elite Member
Asia
 
Trading Experience: Beginner
Platform: NinjaTrader, TOS
 
Posts: 798 since Jun 2009
Thanks: 109 given, 732 received

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
NinjaTrader and VS2010 for Dummies-codesnippets.jpg   NinjaTrader and VS2010 for Dummies-extensionmanager.jpg  
Reply With Quote
     
The following 4 users say Thank You to MXASJ for this post:
     

Old July 30th, 2010, 11:17 PM   #8 (permalink)
Elite Member
Asia
 
Trading Experience: Beginner
Platform: NinjaTrader, TOS
 
Posts: 798 since Jun 2009
Thanks: 109 given, 732 received

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

https://www.bigmiketrading.com/elite-circle/3971-bmcodex-beta-testers-needed.html

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
NinjaTrader and VS2010 for Dummies-svnclient.jpg  
Reply With Quote
     
The following 2 users say Thank You to MXASJ for this post:
     

Old July 30th, 2010, 11:21 PM   #9 (permalink)
Administrator: 'da Big Dawg
Manta, Ecuador
 
Trading Experience: Advanced
Platform: My own custom solution
Favorite Instrument: SP500, Stocks
 
Big Mike's Avatar
 
Posts: 31,130 since Jun 2009
Thanks: 20,729 given, 38,076 received

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

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
     

Old July 30th, 2010, 11:40 PM   #10 (permalink)
Elite Member
Asia
 
Trading Experience: Beginner
Platform: NinjaTrader, TOS
 
Posts: 798 since Jun 2009
Thanks: 109 given, 732 received



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.

Reply With Quote
     
The following user says Thank You to MXASJ for this post:
     

Reply



Tags
account, adxvma, amazon, analysis, api, arca, back test, backtest, backtesting, basic, beat, beta, big mike, bmcodex, book, boolean, bot, c#, ces, change, code, coding, color, compile, connecting, control, create, custom, custom indicator, cycle, cycles, day, development, dow, editing, el, elite, enter, error, errors, es, execution, extension, feed, file, filters, flow, free, function, gomi, hold, how to, import, indicator, indicators, interest, introduction, java, journey, keyboard, kiss, learn, learning, level, line, linux, list, live, load, lot, love, margin, master, meeting, microsoft, ml, mode, names, neophyte, ninja, ninja trader, ninja trader 7, ninjascript, ninjatrader, note, nt, nt7, object, open, option, options, package, paid, parameter, parameters, personal, platform, price_action, program, programmer, programming, project, question, save, script, scripts, software, sound, source code, speed, sql, start, stop, strategies, strategy, string, support, support_and_resistance, system, t3, ta, technical, terms, time, trade, trader, trading, type, universe, update, variable, visual studio, windows, zone
     

Big Mike's Trading Forum > Trading Forums > Platforms and Indicators > NinjaTrader > NinjaTrader Programming > NinjaTrader and VS2010 for Dummies

Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads
Thread Thread Starter Forum Replies Last Post
DENNIS MILLER: MIDDLE EAST FOR DUMMIES tigertrader Off-Topic 0 October 16th, 2010 11:32 AM
Central Banking For Dummies ntsst3 Off-Topic 0 October 14th, 2010 10:43 PM
Can NinjaTrader data be stored other than \My Documents\NinjaTrader 6.5 tc12357 NinjaTrader 4 December 15th, 2009 01:55 PM
Programming for dummies - Help Ausy Mick NinjaTrader Programming 9 September 21st, 2009 12:33 PM


All times are GMT -4. The time now is 08:03 AM.

Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
Copyright © 2014 by Big Mike Trading. 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 2014-04-19 in 0.29 seconds with 20 queries on phoenix via your IP 107.21.163.227