Forum: NinjaTrader
June 20th, 2013, 05:26 PM
|
Replies: 8
Views: 2,960
Got the DataSeries to Work; Now How to Plot?
So I got this figured out how to use a DataSeries. Here is the code I used:
//Variables
private DataSeries series;
private int sumlength = 10; // Defines how many bars I want in my sum (10 in...
|
Forum: NinjaTrader
June 20th, 2013, 02:47 PM
|
Replies: 8
Views: 2,960
So I think shifting to a DataSeries approach...
So I think shifting to a DataSeries approach might be best, because each bar will have a unique score attached to it.
The summing challenge is how to sum over a specified number of N bars. That's...
|
Forum: NinjaTrader
June 20th, 2013, 02:32 PM
|
Replies: 8
Views: 2,960
Alternative DataSeries Approach?
I've been thinking about this, and maybe I could also use a DataSeries to store the barvalue numbers, but if I were to do this, I'm not sure how I would sum the barvalues from N bars ago.
But...
|
Forum: NinjaTrader
June 20th, 2013, 02:10 PM
|
Replies: 8
Views: 2,960
Bar Score Over N Bars; Array Question
Howdy--
I have created an indicator that assigns each bar a unique 0, 1 or 2 "score" based on a series of logic conditions. This piece is working fine.
I then wanted to create a running "score"...
|