Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Adding DataSeries

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

  • Nikoli
    replied
    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

    Leave a comment:


  • NinjaTrader_Ben
    replied
    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]);

    Leave a comment:


  • Nikoli
    started a topic Adding DataSeries

    Adding DataSeries

    Hi
    How adding DataSeries, example


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

Latest Posts

Collapse

Topics Statistics Last Post
Started by mic414, Yesterday, 11:52 PM
1 response
4 views
0 likes
Last Post NinjaTrader_Jason  
Started by fmcap, Yesterday, 10:49 PM
0 responses
2 views
0 likes
Last Post fmcap
by fmcap
 
Started by iradielt, Yesterday, 10:06 PM
0 responses
2 views
0 likes
Last Post iradielt  
Started by gbajaj, Yesterday, 03:35 PM
2 responses
11 views
0 likes
Last Post gbajaj
by gbajaj
 
Started by space_trader, Yesterday, 03:19 PM
2 responses
8 views
0 likes
Last Post space_trader  
Working...
X