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.
Last edited by learning0101; February 12th, 2014 at 07:37 PM.
The following 2 users say Thank You to learning0101 for this post:
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.
#region Using declarations
// This namespace holds all strategies and is required. Do not change it.
/// Enter the description of your strategy here
[Description("Enter the description of your strategy here")]
public class Rsiobos : Indicator
// Wizard generated variables
// User defined variables (add any user defined variables below)
/// This method is used to configure the strategy and is called once before any strategy method is called.
protected override void Initialize()
CalculateOnBarClose = true;
/// Called on each bar update event (incoming tick)
protected override void OnBarUpdate()
// Condition set 1
if (RSI(14, 3).Avg >= 75)
CandleOutlineColor = Color.DarkBlue;
if (RSI(14, 3).Avg <= 25)
CandleOutlineColor = Color.DarkRed;
The following 3 users say Thank You to aligator for this post:
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.
Last edited by learning0101; February 13th, 2014 at 07:23 PM.
Reason: more thoughts
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.
You are more than welcome! Not a monster, just a fisherman now..
The following 2 users say Thank You to aligator for this post:
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.
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).
The following 5 users say Thank You to Abde for this post: