CUMMULATIVE RSI CALCULATION - NinjaTrader Programming | futures io social day trading

CUMMULATIVE RSI CALCULATION
 Updated: June 13th, 2011 (07:07 PM) Views / Replies: 1,704 / 3 Created: June 13th, 2011 (01:54 PM) by ShruggedAtlas Attachments: 0

 Welcome to futures io.

# CUMMULATIVE RSI CALCULATION

Atlas
Bloomington

Futures Experience: Beginner
Broker/Data: Interactive Brokers
Favorite Futures: Stocks

Posts: 191 since Apr 2011

CUMMULATIVE RSI CALCULATION

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

Market Wizard
virginia

Futures Experience: Intermediate
Platform: ninja
Favorite Futures: ES

Posts: 5,428 since Jun 2009
Forum Reputation: Legendary

wait for enough value to be used in your calculation

protected override void OnBarUpdate()
{

if (CurrentBar < 3)
{

return;
}

....}

ShruggedAtlas
 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

 The following user says Thank You to cory for this post:

Atlas
Bloomington

Futures Experience: Beginner
Broker/Data: Interactive Brokers
Favorite Futures: Stocks

Posts: 191 since Apr 2011

Beginners mistake. I should have known! grrrr
thanks for the tip. I looked up that problem and apparently it's really common. Lesson learned! Thx again!

 "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

Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500

Posts: 46,336 since Jun 2009

When creating a new thread, note which subforum you are in. Here is a short list of suggestions:

- Topic: Anything to do with an Elite indicator -> Subforum: The Elite Circle
- Topic: Looking for an existing indicator, or how-to use an indicator -> Subforum: (the platform)
- Topic: Programmer needing help with non-Elite indicator -> Subforum: (the platform) - Programming
- Topic: Want an indicator created/modified -> Reply to "Want indicator created free" in Elite Circle
- Topic: Vendors (trading rooms, commercial indicators) -> Subforum: Vendors/Product Reviews
- Topic: Discussion of Forex or Currency trading -> Subforum: Forex and Currency Trading

Last, any Elite Member may create more or less any of these topics in The Elite Circle at your own discretion (your support is appreciated).

This is just a short general list and doesn't cover everything. If you are unsure where to create your new thread, just create it in Traders Hideout and a moderator will move it if necessary.

Mike

 futures io > CUMMULATIVE RSI CALCULATION

Upcoming Webinars and Events (4:30PM ET unless noted)

Elite only

## Digging into the Details of iSystems w/Stage 5 & iSystems

Jun 5

 Similar Threads Thread Thread Starter Forum Replies Last Post Baseheadz NinjaTrader Programming 14 February 17th, 2013 11:17 PM eleven NinjaTrader Programming 7 December 29th, 2012 07:03 PM baruchs Psychology and Money Management 7 June 15th, 2011 01:06 AM trendisyourfriend Traders Hideout 54 May 31st, 2011 09:14 AM jsengxx Psychology and Money Management 2 March 18th, 2011 05:23 AM

All times are GMT -4. The time now is 06:08 AM.

 Copyright © 2018 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io All information is for educational use only and is not investment advice.There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2018-05-27 in 0.08 seconds with 19 queries on phoenix via your IP 54.159.85.193