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

Editing strategy with visual studio

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

    Editing strategy with visual studio

    Hi,

    I'm kinda new to NT programming. The first thing i tried was editing my new simple strategy with VS2008.
    Editing the CS file directly didn't work (compile button disabled) so i started a new solution with a new Class Library project and manually added my CS file.
    Most of my Using declarations raised errors so i added reference to them including NinjaTraded.Vendor.dll (from My Documents\Ninja Trader 7\...) which solved most of the errors.

    However i still get the following error on "using NinjaTrader.Cbi":
    The type or namespace name 'Cbi' does not exist in the namespace 'NinjaTrader' (are you missing an assembly reference?)

    Where can i get this reference? Or maybe my entire attitude was wrong and there's a quick way to edit strategies with VS?

    Thanks in advance

    #2
    Hello kiss987,
    Thanks for your post and I am happy to assist you.

    Please refer to our help guide which further discusses on how to debug a NinjaScript code via Visual Studio..
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Thank you for your reply.

      I didn't get to the debugging phase yet, since my project cannot compile because of the reference error.
      Please see attached image
      Attached Files

      Comment


        #4
        Hello kiss987,
        If you use the NinjaScript editor then can you compile the code.
        • In Control Center menu bar goto Tools>Edit NinjaScript>Indicators/Strategies
        • Select the NinjaScript code you want to compile and click on the Ok button.
        • In the NinjaScript editor please press F5 to compile it.
        JoydeepNinjaTrader Customer Service

        Comment


          #5
          The compilation on the NinjaScript editor is working fine.
          However i want to edit and compile it with Visual Studio and that isn't working.
          I suppose i can edit it with VS and compile it with the NinjaScript editor. but isn't it possible to do both with VS?

          Comment


            #6
            Hello kiss987,
            Unfortunately compiling via Visual Studios is not supported.

            If you want to compile your strategy as an assembly then you can use the export feature in NinjaTrader. Please refer to our help guide for more details

            JoydeepNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by mangel2000, Today, 01:30 AM
            0 responses
            4 views
            0 likes
            Last Post mangel2000  
            Started by Doxxxx, Today, 01:24 AM
            0 responses
            3 views
            0 likes
            Last Post Doxxxx
            by Doxxxx
             
            Started by ezekilany, Today, 01:10 AM
            0 responses
            4 views
            0 likes
            Last Post ezekilany  
            Started by usjavaburn, Today, 12:59 AM
            0 responses
            3 views
            0 likes
            Last Post usjavaburn  
            Started by heatherjmarshalls, Today, 12:56 AM
            0 responses
            2 views
            0 likes
            Last Post heatherjmarshalls  
            Working...
            X