|
Bloomington
Experience: Beginner
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Stocks
Posts: 191 since Apr 2011
Thanks Given: 78
Thanks Received: 75
|
I'm trying to do something rather simple and it's just not working - My indicator comes up blank on the chart. What am I doing wrong? the code I came up with is a simple summation of a two period RSI for the last three bars. I don't see how it could be simpler! The plot just comes up with nothing calculated. I've saved and compiled. Any help on this would be greatly appreciated.
protected override void OnBarUpdate()
{
//CALCULATE THE 2 PERIOD SUMMED RSI
double CUMRSI = RSI(2,3)[0] + RSI(2,3)[1] + RSI(2,3)[2];
Plot0.Set(CUMRSI);
}
Note: Today is my first day using NT - so be easy on me
"I've missed more than 9,000 shots in my career. I've lost almost 300 games. 26 times, I've been trusted to take the game-winning shot and missed. I've failed over and over and over again in my life. And that is why I succeed."
- Michael Jordan, 5-Time NBA Most Valuable Player, 6-Time NBA Champion |
|