Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Adding DataSeries

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

    Adding DataSeries

    Hi
    How adding DataSeries, example


    double value = MACD(DS1.Indicator+DS2.Indicator, 12,26,9)[0];
    Thanks

    #2
    Hello,

    This link shows how to do this:


    Here is an example using the SMA indicator twice:

    //put this in Variables
    private
    DataSeries myDS;

    //put this in intialized
    myDS =
    new DataSeries(this);

    //put this in OnBarUpdate
    myDS.Set(SMA(
    10)[0]+SMA(5)[0]);
    DenNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Ben View Post
      //put this in Variables
      private
      DataSeries myDS;

      //put this in intialized
      myDS =
      new DataSeries(this);

      //put this in OnBarUpdate
      myDS.Set(SMA(
      10)[0]+SMA(5)[0]);
      very thank you

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      569 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      330 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
      548 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      548 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X