Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Moveing code to Custom Folder didn't change namespace

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

    Moveing code to Custom Folder didn't change namespace

    I moved my indicators to a custom folder under NinjaTrade 8>bi>Custoem>Indicators subfolder. I use windows file explorer to move the .cs files.

    I can open the script from that custom folder and compile it with no errors. However, when choosing my indicator from the chart, I don't see my subfolder, and the indicator shows up in the regular list with all the @*.cs indicators.
    I try to manually add the subfolder name at the end of the namespace NinjaTrader.NinjaScript.Indicators, and I get errors when compiling:

    IB_TPO.cs,'NinjaTrader.NinjaScript.Indicators.IB.I B_TPO.OnStateChange()': no suitable method found to override,CS0115,102,27,
    IB_TPO.cs,'NinjaTrader.NinjaScript.Indicators.IB.I B_TPO.OnBarUpdate()': no suitable method found to override,CS0115,290,27,

    #2
    I had no response here for 2 days, which is not likely, so I guess someone skipped that

    Comment


      #3
      Hello Shai Samuel,

      Sorry about that, I'm not sure what happened with my response from the other day.

      Placing an indicator in a folder will put it in a subfolder in the NinjaScript editor. Placing an indicator within its own child namespace will have the indicator list within a folder throughout the platform.

      I modified the SMA indicator to demonstrate. You could compare this against the original SMA indicator as a reference for placing an indicator in its own namespace.

      Please let us know if you have any questions.
      Attached Files

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      579 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      334 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      554 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      551 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X