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:
    http://www.ninjatrader-support.com/H...iesObject.html

    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 op1031, Yesterday, 05:16 PM
      1 response
      8 views
      0 likes
      Last Post NT-Roland  
      Started by sinpeople, Today, 07:20 AM
      1 response
      3 views
      0 likes
      Last Post NT-Roland  
      Started by Frank1000, Today, 03:05 AM
      1 response
      7 views
      0 likes
      Last Post NT-Roland  
      Started by ntdev, Today, 01:14 AM
      4 responses
      16 views
      0 likes
      Last Post ntdev
      by ntdev
       
      Started by ct, Today, 02:22 AM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_Jason  
      Working...
      X