NinjaTrader and VS2010 for Dummies - NinjaTrader Programming | futures io social trading
futures io futures trading


NinjaTrader and VS2010 for Dummies
Updated: Views / Replies:23,962 / 48
Created: by MXASJ Attachments:13

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
 13  
 
Thread Tools Search this Thread
 

NinjaTrader and VS2010 for Dummies

  #1 (permalink)
Elite Member
Asia
 
Futures Experience: Beginner
Platform: NinjaTrader, TOS
 
Posts: 798 since Jun 2009
Thanks: 109 given, 784 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 19 users say Thank You to MXASJ for this post:
 
  #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.

 
  #3 (permalink)
Elite Member
Asia
 
Futures Experience: Beginner
Platform: NinjaTrader, TOS
 
Posts: 798 since Jun 2009
Thanks: 109 given, 784 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:
 
  #4 (permalink)
Elite Member
Asia
 
Futures Experience: Beginner
Platform: NinjaTrader, TOS
 
Posts: 798 since Jun 2009
Thanks: 109 given, 784 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
 
  #5 (permalink)
Elite Member
Asia
 
Futures Experience: Beginner
Platform: NinjaTrader, TOS
 
Posts: 798 since Jun 2009
Thanks: 109 given, 784 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, 234 views)
Reply With Quote
The following 9 users say Thank You to MXASJ for this post:
 
  #6 (permalink)
Elite Member
Asia
 
Futures Experience: Beginner
Platform: NinjaTrader, TOS
 
Posts: 798 since Jun 2009
Thanks: 109 given, 784 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
The following user says Thank You to MXASJ for this post:
 
  #7 (permalink)
Elite Member
Asia
 
Futures Experience: Beginner
Platform: NinjaTrader, TOS
 
Posts: 798 since Jun 2009
Thanks: 109 given, 784 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:
 
  #8 (permalink)
Elite Member
Asia
 
Futures Experience: Beginner
Platform: NinjaTrader, TOS
 
Posts: 798 since Jun 2009
Thanks: 109 given, 784 received

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

https://futures.io/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:
 
  #9 (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: 45,947 since Jun 2009
Thanks: 29,139 given, 81,896 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
 
  #10 (permalink)
Elite Member
Asia
 
Futures Experience: Beginner
Platform: NinjaTrader, TOS
 
Posts: 798 since Jun 2009
Thanks: 109 given, 784 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



futures io > > > > > NinjaTrader and VS2010 for Dummies

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

July Journal Challenge w/$1100 in prizes from TopstepTrader

July

John @ No BS Day Trading (TBA)

Elite only

An Afternoon with FIO member Softsoap (being rescheduled)

Elite only
     

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 01:10 PM.

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-06-23 in 0.13 seconds with 20 queries on phoenix via your IP 54.81.154.223