Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NinjaScript Editor. Compilation Error with folder named SharpDX

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

    NinjaScript Editor. Compilation Error with folder named SharpDX

    This is not a bug, it's rather a coincidence. But could have more impact.

    I ran into this problem when I wanted to create a folder with scripts to test the new library included in NT8 SharpDX:

    1.- From the NinjaScript Explorer I created a folder called SharpDX.
    2.- Inside the folder creates any indicator (eg Test01). Compile and get errors in all standard indicators that use SharpDX: RangeCounters, VolumeProfile, VolumeZones and ZigZag.

    The reason is a namespaces conflict.
    If I change the name of the folder (for example SharpDXTest) or edit the namespace of my indicator Test01 then compiles fine.

    Best Regards
    Last edited by cls71; 06-04-2015, 03:47 AM.

    #2
    Hello cls71,

    Thank you for bringing this to our attention.

    I am able to recreate the exact same behavior with a folder named SharpDX. I will forward this on to our development team.

    Comment


      #3
      Originally posted by NinjaTrader_PatrickH View Post
      Hello cls71,

      Thank you for bringing this to our attention.

      I am able to recreate the exact same behavior with a folder named SharpDX. I will forward this on to our development team.
      Hi Patrick,

      This brings up a great point. I think when I am trying to dyanmically create Indicators in the future through reflection, the "sub-folders" under indicators are going to cause a problem. It would be nice it there were a way to create a physical FOLDER under INDICATORs or Strategies for example, and have the compile recure into those folder. Right now, when you create a folder you are creating and extention to the name space. Certainly that is the issue here...

      For me in the future, as people create all sorts of "sub folders" for their projects, there are going to be random name spaces that need to be included to access these indicators.

      Just my 2 cents, but I would like a physical folder created through the editor and not a virtual namespace folder.

      Comment


        #4
        Originally posted by NJA_MC View Post
        Hi Patrick,

        This brings up a great point. I think when I am trying to dyanmically create Indicators in the future through reflection, the "sub-folders" under indicators are going to cause a problem. It would be nice it there were a way to create a physical FOLDER under INDICATORs or Strategies for example, and have the compile recure into those folder. Right now, when you create a folder you are creating and extention to the name space. Certainly that is the issue here...

        For me in the future, as people create all sorts of "sub folders" for their projects, there are going to be random name spaces that need to be included to access these indicators.

        Just my 2 cents, but I would like a physical folder created through the editor and not a virtual namespace folder.
        That would be my preference too. Have the NinjaScript Explorer exactly reflect an underlying Operating System folder structure.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by rhyminkevin, Today, 04:58 PM
        3 responses
        47 views
        0 likes
        Last Post Anfedport  
        Started by iceman2018, Today, 05:07 PM
        0 responses
        5 views
        0 likes
        Last Post iceman2018  
        Started by lightsun47, Today, 03:51 PM
        0 responses
        7 views
        0 likes
        Last Post lightsun47  
        Started by 00nevest, Today, 02:27 PM
        1 response
        14 views
        0 likes
        Last Post 00nevest  
        Started by futtrader, 04-21-2024, 01:50 AM
        4 responses
        50 views
        0 likes
        Last Post futtrader  
        Working...
        X