Dark Theme
Light Theme
Trading Articles
Article Categories
Article Tools
Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to
register in order to view the content of the threads and start contributing to our community.
It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
how do i change RSI 50 line to Zero
Updated March 24, 2013
Top Posters
looks_one
ceramictilepro
with 13 posts (1 thanks)
looks_two
Fat Tails
with 8 posts (3 thanks)
looks_3
TimC
with 1 posts (0 thanks)
looks_4
Big Mike
with 1 posts (0 thanks)
trending_up
9,204 views
thumb_up
4 thanks given
group
4 followers
forum
24 posts
attach_file
7 attachments
how do i change RSI 50 line to Zero
January 14th, 2011, 01:47 PM
Roseville CA
Experience: Advanced
Platform: N7
Broker: Amp Futures/CQG
Trading: ES
Posts: 124 since Jun 2009
Thanks Given: 32
Thanks Received: 21
using NT7:
how do i change values in the RSI? specifically looking to change the 50 line to 0.
thank for any help with this!
Code
protected override void OnBarUpdate()
{
if (CurrentBar == 0)
{
down.Set(0);
up.Set(0);
return;
}
down.Set(Math.Max(Input[1] - Input[0], 0));
up.Set(Math.Max(Input[0] - Input[1], 0));
if ((CurrentBar + 1) < Period)
{
if ((CurrentBar + 1) == (Period - 1))
Avg.Set(50);
return;
}
if ((CurrentBar + 1) == Period)
{
// First averages
avgDown.Set(SMA(down, Period)[0]);
avgUp.Set(SMA(up, Period)[0]);
}
else
{
// Rest of averages are smoothed
avgDown.Set((avgDown[1] * (Period - 1) + down[0]) / Period);
avgUp.Set((avgUp[1] * (Period - 1) + up[0]) / Period);
}
double rs = avgUp[0] / (avgDown[0] == 0 ? 1 : avgDown[0]);
double rsi = 100 - (100 / (1 + rs));
double rsiAvg = (2.0 / (1 + Smooth)) * rsi + (1 - (2.0 / (1 + Smooth))) * Avg[1];
Avg.Set(rsiAvg);
Value.Set(rsi);
}
Can you help answer these questions from other members on NexusFi?
Best Threads (Most Thanked) in the last 7 days on NexusFi
January 14th, 2011, 03:17 PM
Chicago
Experience: Advanced
Platform: NinjaTrader, MT4, TS
Posts: 17 since Mar 2010
Thanks Given: 3
Thanks Received: 9
ceramictilepro
using NT7:
how do i change values in the RSI? specifically looking to change the 50 line to 0.
thank for any help with this!
In NT, the "Add(new Line" statement is what you want to change...and it's found in the Initialize() method.
It will look like this:
Code
Add(new Line(System.Drawing.Color.DarkViolet, 30, "Lower"));
Add(new Line(System.Drawing.Color.YellowGreen, 70, "Upper"));
Naturally, if you find one that has a "50", you'd either delete the line, or change the 50 to 0.
January 14th, 2011, 03:22 PM
Berlin, Europe
Market Wizard
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103
ceramictilepro
using NT7:
how do i change values in the RSI? specifically looking to change the 50 line to 0.
thank for any help with this!
Does that mean that you are looking for an oscillator that oscillates around zero and has negative and positive values?
Or do you simply want to shift that line?
January 14th, 2011, 03:39 PM
Roseville CA
Experience: Advanced
Platform: N7
Broker: Amp Futures/CQG
Trading: ES
Posts: 124 since Jun 2009
Thanks Given: 32
Thanks Received: 21
Fat Tails
Does that mean that you are looking for an oscillator that oscillates around zero and has negative and positive values?
Or do you simply want to shift that line?
sorry for the confusion...
yes that is correct Fat Tails, i would like to replace the 50 line to 0 which would make positive and negative values.
hope that makes sense and thx!
January 14th, 2011, 04:03 PM
Berlin, Europe
Market Wizard
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103
ceramictilepro
sorry for the confusion...
yes that is correct Fat Tails, i would like to replace the 50 line to 0 which would make positive and negative values.
hope that makes sense and thx!
Here you are.
Attached Thumbnails
Attached Files
Elite Membership required to download: RSICeramictilePro.zip
January 14th, 2011, 06:15 PM
Roseville CA
Experience: Advanced
Platform: N7
Broker: Amp Futures/CQG
Trading: ES
Posts: 124 since Jun 2009
Thanks Given: 32
Thanks Received: 21
hey fat tails. thank you!
could you take a look at the pic and tell me if there is a way to have the indicator you built on panel 3 match the indicator on panel 2 as far as the readings go?
it looks like yours is exactly one half of panel 2's reading.
thanks so much!
if you can figure out what the heck the dotted line is on panel one, that would be cool too. i was lucky enough to figure out that the solid line is a rsi
January 14th, 2011, 06:24 PM
Berlin, Europe
Market Wizard
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103
ceramictilepro
hey fat tails. thank you!
could you take a look at the pic and tell me if there is a way to have the indicator you built on panel 3 match the indicator on panel 2 as far as the readings go?
it looks like yours is exactly one half of panel 2's reading.
thanks so much!
if you can figure out what the heck the dotted line is on panel one, that would be cool too. i was lucky enough to figure out that the solid line is a rsi
I have changed the indicator and divided its vertical scale by 2. You need to download it again.
The dotted line looks like a moving average , can you show more of the chart?
January 14th, 2011, 06:36 PM
Roseville CA
Experience: Advanced
Platform: N7
Broker: Amp Futures/CQG
Trading: ES
Posts: 124 since Jun 2009
Thanks Given: 32
Thanks Received: 21
Fat Tails
I have changed the indicator and divided its vertical
scale by 2. You need to download it again.
The dotted line looks like a
moving average , can you show more of the chart?
how is this?
January 14th, 2011, 06:46 PM
Berlin, Europe
Market Wizard
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103
ceramictilepro
Just try different moving averages, start with EMA and SMA , it is nothing special.
Last Updated on March 24, 2013