Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

namespaces required to use "CrossAbove"

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

    namespaces required to use "CrossAbove"

    I am trying to use "CrossAbove" and have included:

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using NinjaTrader.NinjaScript;


    but it seems that there are other namespaces required.
    Which other namespaces are needed?
    Thank You!

    #2
    Hello waltFX,

    Thank you for your post.

    I recommend using the NinjaScript Wizard, it will automatically generate all necessary using statements in order for you to access all NinjaScript methods.

    Comment


      #3
      thanks but I was not specific enough.

      I am writing various utility functions in the "NinjaTrader.NinjaScript.Indicators" namespace to use in indicators & strategies.

      I have already been using them BUT the "CrossAbove" function is not recognized as a valid command even though I have included all the "using" lines from an Indicator.

      This is why I asked.

      In any case, I moved my functions into the "NinjaTrader.NinjaScript.Strategies" namespace and now it is recognized.

      >> This is very odd but my work-around (not the best solution) is working, so close this ticket

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      577 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
      553 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