I've only tested this in NT7 as I have not used 6.5 for well over a year with no intentions of going backwards, sorry.
I was reading Sharky's thread and noticed he used what he called the universal color indicator. I could not find it so I built one.
How many times do you have an indicator you want to change the color of based on it's respective slope change? Me being a bit of a programmer, I'd just jump in and coder up. But what if you're not?
I created an indicator that will color "ANY" distinct, single-value dataseries in any panel. It takes advantage of a cool feature of Ninja that can be exploited in numerous ways other than just what is illustrated here.
To keep it simple I will use the following chart to illustrate....
If you wanted to have the color change of the EMA(20) based on slope change you could use any number
of widely available indicators such as EMA_Color...but that leads to one for the SMA and one for the HMA, etc...
download the following indicator:
ColorInputSeriesSlopeChanges
(if it's not in the download area it will be soon - writing this first)
After you install it, add it to your chart and when you do you will eventually display the following dialog:
Do as it says and click on the input series value - this is where the coolness starts.
Notice the little box with the "..." inside of it
Click on them.
This causes the input series popup to display.
By default the input series is the main dataseries for the chart and in this example it is the 6E 12-11 (4 Range)
Notice the + in front of the Indicators
Click on it to expand it then notice you can now pick which indicator you want to use as the input dataseries for this indicator (this is a form of inheritance or recursion for you c#ies)
to continue with this example, scroll down to and select the EMA
I also went ahead and changed the default 14 value to 20 as that it aligns with our example. (Extra Credit for those of you with me so far, do you see the Input Series field again? Also pay attention to the value in the "Panel field" value in the original indicator dialog, there's no end to this rabbit hole fun other than RAM and CPU's which you can never have enough of)
Now just click "ok" and apply. Note that I also altered the thickness of the plot line in the ColorInputSeriesSlopeChanges indicator from 1 to 2 and the style from solid to dash. I also removed the original EMA(20) to produce the following chart:
You can change the color of Red, Yellow, or Green from the indicator parameters.
Yellow can indicate values that are identical but it can also represent what I call Peak.
The Peak value is the bar that is the apex of the slope change (ie from up to down). If in an upward motion it would be the highest bar/value meaning it would have a bar/value before it lower and bar/value after it lower. Note I said value, as in this case it would be the EMA value of the bar, not the high or low of the bar.
From the indicator parameters, you can toggle the display of Peak off and on.
Extra Credit....
The following chart was created using the technique illustrated above plus a little more investigation of the Panel field value. Here's a little help, I added the color changing EMA(20) of the ATR(20) to the ATR(20) panel or putting in another way, EMA(ATR(20),20) drawn on the ATR(20) panel.
There was no programing involved to do this, just the NinjaTrader 7 interface and the
ColorInputSeriesSlopeChanges indicator (with Peak off) ...