Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to access a PriceSeries in an external DLL

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

    How to access a PriceSeries in an external DLL

    Example:
    NinjaScript: double v = Lib01Class.TestCall(Open);

    external DLL:
    public static double TestCall(ISeries<double> Open)
    { return Open[0]; }​

    Where can I find the namespace to integrate ISeries?

    #2
    Hello ejzj1,

    Series are part of the NinjaTrader.NinjaScript class.

    NinjaTrader.NinjaScript.Series

    That said, the suggested code does not return a series and instead returns a double (a single number value with a decimal).

    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Where can I find the assembly to reference NinjaTrader.NinjaScript class in my Visual Studio DLL project?

      Comment


        #4
        Hello ejzj1,

        You can add a reference to the NinjaTrader.Core.dll from C:\Program Files\NinjaTrader 8\bin\.

        The NinjaTraderAddOnProject provides a sample.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Thanks, that helps.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CarlTrading, 03-31-2026, 09:41 PM
          1 response
          43 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          20 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          30 views
          1 like
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          49 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          38 views
          0 likes
          Last Post CarlTrading  
          Working...
          X