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 37,768 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

  #41 (permalink)
 drolles 
London, UK
 
Experience: Beginner
Platform: TradeLink, OpenQuant, considering anything that works...
Trading: if it trades...
Posts: 94 since Oct 2010
Thanks Given: 24
Thanks Received: 39

Is anyone have challenges when they add the partial classes (e.g. UserDefinedMethod) they are having problems in VS2010? I’m getting errors about some of the inbuild variables (e.g. AccountSize) not being defined.

Cheers,

drolles

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Deepmoney LLM
Elite Quantitative GenAI/LLM
Better Renko Gaps
The Elite Circle
Are there any eval firms that allow you to sink to your …
Traders Hideout
ZombieSqueeze
Platforms and Indicators
Futures True Range Report
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
39 thanks
NexusFi site changelog and issues/problem reporting
24 thanks
Battlestations: Show us your trading desks!
24 thanks
The Program
17 thanks
  #42 (permalink)
 
gregid's Avatar
 gregid 
Wrocław, Poland
 
Experience: Intermediate
Platform: NinjaTrader, Racket
Trading: Ockham's razor
Posts: 650 since Aug 2009
Thanks Given: 320
Thanks Received: 623

After upgrading to VS2012 one of the things that frustrated me was lack of macros - which I used to create shortcut for attaching to NinjaTrader process.

After some time I found VS plugin that does just that and saves me about 6 clicks when debugging NinjaScript in VS2012.

Here it is:

Debug Attach Manager 2012 extension

Reply With Quote
  #43 (permalink)
 tickleboy 
Seattle, Washington
 
Experience: Advanced
Platform: NinjaTrader, TradeStation
Broker: Kinetick
Trading: ES
Posts: 18 since Oct 2011
Thanks Given: 16
Thanks Received: 10


Hi everyone. I've been doing a lot of debugging successfully with Visual Studio 2012. I just recently have been trying out Visual Studio 2013 for development but it seems that Debugging NinjaTrader with it is broken as no exceptions thrown in NinjaTrader are caught by Visual Studio, and no breakpoints are hit. Anyone else run into this?

Follow me on Twitter Reply With Quote
  #44 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629


tickleboy View Post
Hi everyone. I've been doing a lot of debugging successfully with Visual Studio 2012. I just recently have been trying out Visual Studio 2013 for development but it seems that Debugging NinjaTrader with it is broken as no exceptions thrown in NinjaTrader are caught by Visual Studio, and no breakpoints are hit. Anyone else run into this?

I had the same thing with VS 2013 : when you're are in the debugging session, NinjaTrader.exe attached to VS 2013, try to recompile your indicator/strategy, it will then become "debuggable".

Success requires no deodorant! (Sun Tzu)
Follow me on Twitter Reply With Quote
Thanked by:
  #45 (permalink)
 tickleboy 
Seattle, Washington
 
Experience: Advanced
Platform: NinjaTrader, TradeStation
Broker: Kinetick
Trading: ES
Posts: 18 since Oct 2011
Thanks Given: 16
Thanks Received: 10


sam028 View Post
I had the same thing with VS 2013 : when you're are in the debugging session, NinjaTrader.exe attached to VS 2013, try to recompile your indicator/strategy, it will then become "debuggable".

Awesome. Can confirm this works. Thank you!

Follow me on Twitter Reply With Quote
  #46 (permalink)
 swinger 
Raleigh NC/USA
 
Experience: Beginner
Platform: NinjaTrader
Trading: stocks
Posts: 33 since Oct 2014
Thanks Given: 212
Thanks Received: 16


MXASJ View Post
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.

Using VS 2010, NT7 and Win7. When I open NinjaTrader.Custom.csproj, VS launches a conversion wizard:

[IMG]http://i175.photobucket.com/albums/w128/pbucket_pics/forum%20images/Screenshot2015-01-27194857.png[/IMG]

Not sure if it's safe to proceed; I don't want to screw up my NT install. Anyone familiar with what the VS conversion wizard is doing?

I'm pretty much a newb to VS and would like to incorporate Ninja specific IntelliSense into VS' IntelliSense.

Reply With Quote
  #47 (permalink)
 Trendseek 
Leipzig / Germany
 
Experience: Intermediate
Platform: NT / TS, MC and Clones
Broker: Interactive Broker
Trading: Futures, Forex
Posts: 28 since Aug 2009
Thanks Given: 46
Thanks Received: 36

Hi Swinger,
welcome to visual studio world
The Wizard starts, because of some older .net Versions are used by NT:
https://msdn.microsoft.com/en-us/library/60z6y467%28v=vs.90%29.aspx

by the way: Instead of using an old VS-Version, you might want to upgrade to a newer version.

Regards
TS

Reply With Quote
Thanked by:
  #48 (permalink)
 swinger 
Raleigh NC/USA
 
Experience: Beginner
Platform: NinjaTrader
Trading: stocks
Posts: 33 since Oct 2014
Thanks Given: 212
Thanks Received: 16


Trendseek View Post
Hi Swinger,
welcome to visual studio world
The Wizard starts, because of some older .net Versions are used by NT:
https://msdn.microsoft.com/en-us/library/60z6y467%28v=vs.90%29.aspx

Thanks. Yeah, I went ahead and converted and it was fine. Just had to remove and re-add references as MXASJ mentions early on in this thread.


Trendseek View Post
by the way: Instead of using an old VS-Version, you might want to upgrade to a newer version.

Any advantage in doing so as it relates to Ninjatrader?

Reply With Quote
  #49 (permalink)
 Trendseek 
Leipzig / Germany
 
Experience: Intermediate
Platform: NT / TS, MC and Clones
Broker: Interactive Broker
Trading: Futures, Forex
Posts: 28 since Aug 2009
Thanks Given: 46
Thanks Received: 36


swinger View Post
Any advantage in doing so as it relates to Ninjatrader?

Yes - (not tested now) with the new free VS Community you can add some usefull extensions & apps
Making Visual Studio perfect | Visual Studio add-ins, extensions and tools

Reply With Quote




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