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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      80 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      40 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      63 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      63 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      54 views
      0 likes
      Last Post CarlTrading  
      Working...
      X