Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bug/feature in the Ninjascript Editor

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

    Bug/feature in the Ninjascript Editor

    I've been writing some fairly complex stuff and to keep the indicator code clean I decided to put my code in a separate namespace, but within the indicator file. First I put my own namespace at the top of the file. When I was done, I moved it last in the file (after the NT generated code) and recompiled... whoa, NT removed my code. To repeat, try this:

    Code:
    namespace NinjaTrader.Indicator
    {
        // NT code.
    }
    // NT regions and generated namespaces etc.
     
    namespace MyNeatNamespace
    {
        // This namespace and everything in it will be deleted when you hit F5.
    }
    Don't know if it is a bug or a feature... in any case it should be documented. Especially since there is no way to retrieve the deleted code, it's not saved anywhere (not on file, no undo etc).

    cheers,
    tobbe
    Last edited by tobbe; 02-21-2009, 05:59 AM.

    #2
    Unfortunately rearranging code outside of the setup provided by the NS wizard is not supported.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by cmtjoancolmenero, Yesterday, 03:58 PM
    11 responses
    39 views
    0 likes
    Last Post cmtjoancolmenero  
    Started by FrazMann, Today, 11:21 AM
    0 responses
    3 views
    0 likes
    Last Post FrazMann  
    Started by geddyisodin, Yesterday, 05:20 AM
    8 responses
    52 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by DayTradingDEMON, Today, 09:28 AM
    4 responses
    26 views
    0 likes
    Last Post DayTradingDEMON  
    Started by George21, Today, 10:07 AM
    1 response
    22 views
    0 likes
    Last Post NinjaTrader_ChristopherJ  
    Working...
    X