Instances of all external MA's that are used by this indicator are pre-instantiated and the instances are defined before use.
Calls to the external MIN and MAX indicators have been replaced by calls to new internal private functions that give the minimum and maximum values.
The calls to those functions can only be made on the first tick of each new bar, and then ONLY when the maximum or minimum value of the applicable series is known to have changed. This eliminates a great deal of unnecessary loop processing.
Special thanks to Richard of MoveTheMarkets.com for the optimization strategies, at least SOME of which should be used whenever an external indicator is called from a Ninjacript INDICATOR or STRATEGY... it's a Paradigm Shifter.
This version should work on NT6.5 or NT7, but I have not tested it on NT6.5.
I enhanced Cory's SMI2 and added a price bar coloring option, as well as background coloring option and the option to draw a vertical line on the price panel when trend changes. You can also put this indicator in panel 1 and turn off all the plots (Set all plots & alert line to TRANSPARENT) and just using the background colors to color the background of the price panel, if you desire. I altered the default settings and some of the plots so that it now looks more like the Eco2 (Ergodic) indicator, and is (I think) a little easier to read than Eco2.
March 23, 2010: Update
REPAINTING:
Fixed a "repainting" problem that other members discovered. Cleaned up the code. Changed the text that read "very over bought / very over sold" to "chop zone upper" & "chop zone lower". Removed the ChopFilter function, as it added nothing to help in keeping you out of chop.
ADDED TEXT ALERTS:
"POSSIBLE CHOP" when SMI dot enters the +20 / -20 zone
"LONG BREAKOUT" when SMI dot exits above the +20 zone
"SHORT BREAKOUT" when SMI dot exits below the -20 zone
it is 2 seperate Stochastics - one .K and one .D - line -
with visualisation of a choosable OB / OS - value via bakccolor.
Also it is able to play an audio-alert of a .wav-file of your choise if it crosses these values - just copy y .wav-filename you have in your Ninjatrader-soundfolder in the alert-indicatorsettings.
Have Fun!
To Import
1. Download the attached file to your desktop
2. From the Control Center window select the menu File > Utilities > Import NinjaScript
3. Select the downloaded file
Double stochastic is used as a cycle indicator. You can use a long term and short term cycles on your chart and take oversold short term trades in the direction of the long term cycle. This is not holy grail!
This indicator is from the Ninja Trader Support Forum.
Indicator gives the ability to color candle sticks based on stochastic indicator. You can paint as Heiken Ashi style overlay or just plain. Very configurable.
Same SMI2 but this one won't repaint if you use a plot other than Line. If you use line, it will repaint 1 bar back to connect plots (like normal). But if you use something else, like a dot, it won't repaint.
Mike
COMPATIBILITY:
NinjaTrader 6.5: YES
NinjaTrader 7.0: YES (tested by sam028)
September 22nd, 2011 11:42 AM Tiberius I found this indie did not plot correcting (math,code) in fast markets. Seems like a great indie, but my faith has dimin