Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

SharpDevelop - a free alternative to Visual Studio

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    SharpDevelop - a free alternative to Visual Studio

    I just downloaded SharpDevelop which is a free open source IDE alternative to Visual Studio and it's great for debugging NinjaScript.

    It's fast/light weight and does the same things as VS, maybe better in some cases.

    SharpDevelop is not officially NinjaTrader supported but it works as confirmed in this thread.

    These are the steps I took to set it up:
    1. Download SharpDevelop and install.

    2. Launch NinjaTrader 32bit, then compile in Debug Mode (as per NT help docs)

    3. In SharpDevelop, open the .cs file of your strategy, then choose Debug > Attach To Process - choose NinjaTrader.exe in the list.

    4. Set some breakpoints, run your strat in NinjaTrader, then it should stop at your next breakpoint - at this point add some variables to your watchlist and do other things normally done in VS.
    Hope this helps.

    -Dave
    Last edited by dave416; 01-04-2013, 09:30 AM.

    #2
    Hello Dave,
    Thanks for your post and hope fellow members will find it useful.

    To add, you can Attach a process in Visual Studio Express edition 2012 and thus you can use it too as a free alternative.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Originally posted by dave416 View Post
      I just downloaded SharpDevelop which is a free open source IDE alternative to Visual Studio and it's great for debugging NinjaScript.

      It's fast/light weight and does the same things as VS, maybe better in some cases.

      SharpDevelop is not officially NinjaTrader supported but it works as confirmed in this thread.

      These are the steps I took to set it up:
      1. Download SharpDevelop and install.

      2. Launch NinjaTrader 32bit, then compile in Debug Mode (as per NT help docs)

      3. In SharpDevelop, open the .cs file of your strategy, then choose Debug > Attach To Process - choose NinjaTrader.exe in the list.

      4. Set some breakpoints, run your strat in NinjaTrader, then it should stop at your next breakpoint - at this point add some variables to your watchlist and do other things normally done in VS.
      Hope this helps.

      -Dave
      Hi Dave,

      Thanks for posting this info. It really helps me save a lot of time getting my Ninja project started in SharpDevelop.

      Right now I am trying to debug an issue in UniRenko chart I downloaded from the forum. Can I use SharpDevelop to accomplish this task?

      Thanks.

      Comment


        #4
        "Attach To Process - choose NinjaTrader.exe in the list"

        Problem is that NinjaTrader.exe is NOT in the list. How can I get it on the list so I can select it?

        Btw, NinjaTrader is active (using NT7 in Windows 10).

        Thanks

        Comment


          #5
          Originally posted by ronb107 View Post
          "Attach To Process - choose NinjaTrader.exe in the list"

          Problem is that NinjaTrader.exe is NOT in the list. How can I get it on the list so I can select it?

          Btw, NinjaTrader is active (using NT7 in Windows 10).

          Thanks
          Try running Ninjatrader 32 bit - to use 64 bit requires SharpDevelop 64 support which I don't believe exists.

          Comment


            #6
            Thanks. That worked. Then, learning how to get SharpDevelop to run through the Indicator code took some trial and error.

            Here is what I did....

            In SharpDevelop...

            1. Start NinjaTrader in 32-bit mode
            2. In SharpDevelop: File > Open > File > (open .CS file to debug)
            3. In SharpDevelop: Debug > Attach to Process > (select NinjaTrader.exe)


            In NinjaTrader...

            1. In NinjaTrader: Tools > Edit NinjaScript > Indicator > (select indicator to debug)
            2. Compile the indicator with Debug ON (right click in editor and select Debug)
            3. On the Chart: right click > Reload NinjaScript

            The above gets the code running in SharpDevelop. It's all fun from there.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Shai Samuel, 07-02-2022, 02:46 PM
            4 responses
            93 views
            0 likes
            Last Post Bidder
            by Bidder
             
            Started by DJ888, Yesterday, 10:57 PM
            0 responses
            6 views
            0 likes
            Last Post DJ888
            by DJ888
             
            Started by MacDad, 02-25-2024, 11:48 PM
            7 responses
            158 views
            0 likes
            Last Post loganjarosz123  
            Started by Belfortbucks, Yesterday, 09:29 PM
            0 responses
            7 views
            0 likes
            Last Post Belfortbucks  
            Started by zstheorist, Yesterday, 07:52 PM
            0 responses
            7 views
            0 likes
            Last Post zstheorist  
            Working...
            X