• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 Maxwell123, Today, 12:34 AM
            1 response
            7 views
            0 likes
            Last Post NinjaTrader_ChrisSch  
            Started by memonic, Today, 02:21 AM
            0 responses
            2 views
            0 likes
            Last Post memonic
            by memonic
             
            Started by Guru73, Yesterday, 02:47 AM
            5 responses
            33 views
            0 likes
            Last Post Guru73
            by Guru73
             
            Started by Guru73, Today, 01:35 AM
            0 responses
            2 views
            0 likes
            Last Post Guru73
            by Guru73
             
            Started by i2w8am9ii2, Yesterday, 04:41 PM
            1 response
            11 views
            0 likes
            Last Post Lancer
            by Lancer
             
            Working...
            X