NexusFi: Find Your Edge


Home Menu

 





Color changing candles rsi


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one learning0101 with 4 posts (4 thanks)
    2. looks_two dwemini with 3 posts (2 thanks)
    3. looks_3 aligator with 2 posts (5 thanks)
    4. looks_4 Abde with 1 posts (5 thanks)
      Best Posters
    1. looks_one Abde with 5 thanks per post
    2. looks_two aligator with 2.5 thanks per post
    3. looks_3 learning0101 with 1 thanks per post
    4. looks_4 dwemini with 0.7 thanks per post
    1. trending_up 5,949 views
    2. thumb_up 16 thanks given
    3. group 4 followers
    1. forum 10 posts
    2. attach_file 3 attachments




 
Search this Thread

Color changing candles rsi

  #1 (permalink)
 dwemini 
Yorktown, VA
 
Experience: Advanced
Platform: NinjaTrader
Broker: AMP
Trading: ES,6E,CL,NG
Posts: 6 since Jul 2009
Thanks Given: 4
Thanks Received: 6

I would like an indicator to change the color of the candles if they are oversold or overbought.
Thanks for any repaons

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Cheap historycal L1 data for stocks
Stocks and ETFs
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Quantum physics & Trading dynamics
The Elite Circle
Strategy stop orders partially filled
EasyLanguage Programming
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
24 thanks
What is Markets Chat (markets.chat) real-time trading ro …
19 thanks
ApexTraderFunding.com experience and review
17 thanks
GFIs1 1 DAX trade per day journal
13 thanks
EG Indicators
11 thanks
  #2 (permalink)
 
learning0101's Avatar
 learning0101 
Houston, Texas
 
Experience: Intermediate
Platform: NinjaTrader,TOS,Etrade,St
Broker: NT:( tos,etrade,CS
Trading: stocks,options,futures,forex
Frequency: Never
Duration: Never
Posts: 287 since Aug 2011
Thanks Given: 3,614
Thanks Received: 222


dwemini View Post
I would like an indicator to change the color of the candles if they are oversold or overbought.
Thanks for any repaons

Hi @dwemini
Do a search for gradient

@aligator has done this, and by the way Thank you

Reply With Quote
  #3 (permalink)
 dwemini 
Yorktown, VA
 
Experience: Advanced
Platform: NinjaTrader
Broker: AMP
Trading: ES,6E,CL,NG
Posts: 6 since Jul 2009
Thanks Given: 4
Thanks Received: 6


Thanks, yes I did see the gradient color change. I would prefer the candles to change when OBOS.
Thanks

Started this thread Reply With Quote
Thanked by:
  #4 (permalink)
 
learning0101's Avatar
 learning0101 
Houston, Texas
 
Experience: Intermediate
Platform: NinjaTrader,TOS,Etrade,St
Broker: NT:( tos,etrade,CS
Trading: stocks,options,futures,forex
Frequency: Never
Duration: Never
Posts: 287 since Aug 2011
Thanks Given: 3,614
Thanks Received: 222


dwemini View Post
Thanks, yes I did see the gradient color change. I would prefer the candles to change when OBOS.
Thanks

Hi @dwemini, maybe you can use the strategy wizard for what you are trying to do.
I did this and with it. Find attached as a strategy(sorry don't know how to make an indicator out of it)
Maybe one of the generous members here will help you out if it is doing what you want.
I just told the wizard to outline the candles (you can tell it to color the outline, the candle,the bkground, etc) when the RSI was greater than the value of 70.(did not do for undersold)
I am the farthest thing from a coder, just thought would give a shot with the wizard.

Attached Thumbnails
Click image for larger version

Name:	rsiobos.JPG
Views:	380
Size:	82.4 KB
ID:	137124  
Attached Files
Elite Membership required to download: testrsiOBOS.zip
Reply With Quote
Thanked by:
  #5 (permalink)
 
aligator's Avatar
 aligator 
Las Vegas, NV
Legendary Market Wizard
 
Experience: Advanced
Platform: Abacus, Slide Rule, HP-65
Trading: Futures, Stocks, Options
Posts: 3,622 since Aug 2010
Thanks Given: 1,071
Thanks Received: 5,997


learning0101 View Post
Hi @dwemini, maybe you can use the strategy wizard for what you are trying to do.
I did this and with it. Find attached as a strategy(sorry don't know how to make an indicator out of it)
Maybe one of the generous members here will help you out if it is doing what you want.
I just told the wizard to outline the candles (you can tell it to color the outline, the candle,the bkground, etc) when the RSI was greater than the value of 70.(did not do for undersold)
I am the farthest thing from a coder, just thought would give a shot with the wizard.

Thank you @learning0101,

There are a bunch of color bar indicators on futures.io (formerly BMT), All one needs do is a search. But I think he wants ready-mix. All one really have to do is to change one line of your code; change "Strategy" to "Indicator " for public class and recompile it.

Cheers!

#region Using declarations
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Xml.Serialization;
using NinjaTrader.Cbi;
using NinjaTrader.Data;
using NinjaTrader.Indicator;
using NinjaTrader.Gui.Chart;
using NinjaTrader.Strategy;
#endregion

// This namespace holds all strategies and is required. Do not change it.
namespace NinjaTrader.Indicator
{
/// <summary>
/// Enter the description of your strategy here
/// </summary>
[Description("Enter the description of your strategy here")]
public class Rsiobos : Indicator
{
#region Variables
// Wizard generated variables
// User defined variables (add any user defined variables below)
#endregion

/// <summary>
/// This method is used to configure the strategy and is called once before any strategy method is called.
/// </summary>
protected override void Initialize()
{

CalculateOnBarClose = true;
}

/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
// Condition set 1
if (RSI(14, 3).Avg[0] >= 75)
{
CandleOutlineColor = Color.DarkBlue;
}
if (RSI(14, 3).Avg[0] <= 25)
{
CandleOutlineColor = Color.DarkRed;
}

}

#region Properties
#endregion
}
}

Visit my NexusFi Trade Journal Reply With Quote
  #6 (permalink)
 
learning0101's Avatar
 learning0101 
Houston, Texas
 
Experience: Intermediate
Platform: NinjaTrader,TOS,Etrade,St
Broker: NT:( tos,etrade,CS
Trading: stocks,options,futures,forex
Frequency: Never
Duration: Never
Posts: 287 since Aug 2011
Thanks Given: 3,614
Thanks Received: 222

LOL Hi @aligator thanks for that little trick. However when I tried to just replace "Strategy" with "Indicator"
got compile error, so opened a regular indicator in editor and copied and pasted this
" NinjaTrader.Indicator.Indicator" and it compiled.(if this was not right way, please shout out)
Really cool, now I know how to create a strategy and then make into indicator. Your tip is much appreciated, you have created a monster-LOL.
Not really I still have no clue but now I can really screw my install up with badly coded indis-Thanks! lol.
On a serious note I really appreciate you chiming in with the "how-to" Thanks-All the best


edit: ok now totally confused I for curiosity copied and pasted your above code and it compiles. Think I am missing something cause when all I did was use the Strategy and edited it and replaced the one word "strategy" with "indicator" it did not work until I used the " NinjaTrader.Indicator.Indicator" in place of "strategy" yet when I used your code all was fine and it compiled. Sorry for rambling guess thinking out loud on paper but for all to see.

Reply With Quote
  #7 (permalink)
 
aligator's Avatar
 aligator 
Las Vegas, NV
Legendary Market Wizard
 
Experience: Advanced
Platform: Abacus, Slide Rule, HP-65
Trading: Futures, Stocks, Options
Posts: 3,622 since Aug 2010
Thanks Given: 1,071
Thanks Received: 5,997


learning0101 View Post
LOL Hi @aligator thanks for that little trick. if this was not right way, please shout out Really cool, now I know how to create a strategy and then make into indicator. Your tip is much appreciated, you have created a monster-LOL....

@learning0101,

Don't be confused, that is the trick Just create a simple strategy and copy the code area (parameters, Initilization, OnBarUpdate, Properties,etc. (but none of the NinjaScript Generated Code) into a new indicator. I do the same, then I just add whatever bells and whistles I want.



learning0101 View Post
Not really I still have no clue but now I can really screw my install up with badly coded indis-Thanks! lol. On a serious note I really appreciate you chiming in with the "how-to" Thanks-All the best

You are more than welcome! Not a monster, just a fisherman now..

Cheers!

Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #8 (permalink)
 dwemini 
Yorktown, VA
 
Experience: Advanced
Platform: NinjaTrader
Broker: AMP
Trading: ES,6E,CL,NG
Posts: 6 since Jul 2009
Thanks Given: 4
Thanks Received: 6

I would like to Thank learing0101 for creating this indicator for me.

Started this thread Reply With Quote
Thanked by:
  #9 (permalink)
 
sands's Avatar
 sands 
London + UK
 
Experience: Advanced
Platform: Proprietary Analytics
Broker: Multiple broker + Multiple feed
Trading: Currently European and US equities
Posts: 443 since Dec 2013
Thanks Given: 257
Thanks Received: 234

Great post, love that you're having a go at it yourself. You can learn so much from pattern matching and adding functionality..and there are always friendly people to help here.

Good luck

Reply With Quote
  #10 (permalink)
 Abde 
Stuttgart / Germany
 
Experience: Intermediate
Platform: FlatTrader
Broker: GFT and Interactive Brokers
Trading: ES, DAX
Frequency: Every few days
Duration: Days
Posts: 533 since Aug 2010
Thanks Given: 2,141
Thanks Received: 729



dwemini View Post
I would like an indicator to change the color of the candles if they are oversold or overbought.
Thanks for any repaons

Hi @dwemini

Have just noticed this thread today, so I´m likely a bit late to the party...

A while back , I´ve created an RSI which does what you want and more. You can define up to five levels and color the bars accordingly. It has also options to display arrows and play sound alerts at OB/OS conditions. I´m attaching the RSIpaintBarsDeLuxe2 in case you or someone else is interested.


Attached Files
Elite Membership required to download: RSIpaintBarsDeLuxe2.zip
Reply With Quote




Last Updated on February 21, 2014


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts