Announcement

Collapse
No announcement yet.

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..
    http://www.ninjatrader.com/support/h..._debugging.htm
    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
            http://www.ninjatrader.com/support/h...tml?export.htm
            http://www.ninjatrader.com/support/h...l_security.htm
            JoydeepNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by TheBean236, Today, 12:57 PM
            3 responses
            10 views
            0 likes
            Last Post TheBean236  
            Started by DTSSTS, Today, 09:59 AM
            6 responses
            37 views
            0 likes
            Last Post NinjaTrader_PaulH  
            Started by Kirk Thorns, Today, 12:46 PM
            2 responses
            10 views
            0 likes
            Last Post Kirk Thorns  
            Started by Stephen Trading, Today, 12:27 PM
            1 response
            10 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by MisterGee, Today, 12:43 PM
            1 response
            10 views
            0 likes
            Last Post NinjaTrader_Jim  
            Working...
            X