March 28th, 2010
Size: 2.13 KB
Downloaded: 202 times
400
decs0057
I'm using this on a 5 minute chart. I am not sure of its usefulness on anything smaller.
You'll need a semi-wide right margin to see the text, or you can edit the indicator itself if you want to adjust that. v-d1..v-d5 just represents how many days back the line represents, I have it set to do a 5-day rolling action now.
All the lines are drawn ahead of time and do not change intraday.
The premise behind this indicator is to capture the overbought and oversold conditions of CCI, and then draw trend lines on the chart representative of the turning points.
It is designed for Range or Renko charts only.
The lines are drawn in realtime and do not change. They are drawn as soon as a bar closes where the CCI has pivoted to/from an overbought/oversold area, so you get instant feedback.
The idea is the top (resistance / blue) represents the top of the normal trading range. Price will normally bounce off this resistance area and move lower. The bottom (support / red) represents the bottom of the normal trading range. Price will normally bounce off this support area and move higher.
When price does break through either S/R area, it tends to make new highs and lows (ie: breakout).
This is my own interpretation of the popular SuperTrend indicator.
It is a function and an indicator, so you can also easily use it to generate signals.
To get the desired Indicator effect and control over plot colors that I wanted, I made Plot1 and Plot2 a real plot so you could precisely control the RGB color. You need to mark these plots as invisible once you setup the indicator! I will provide a screen shot below as an example.
Plot3 is the real plot, and it will be colored based on if trend is up or down.
This is an enhancement of SMI4 (which was an enhancement / combination of the SMI2 and Cory's SMI2) which added a price bar coloring option, a background coloring option, an option to draw a vertical line on the price panel when trend changes and an option to play a sound upon the formation of a new price bar).
Cory contributed code to color the region between +20 / -20 which indicates a possible chop zone.
The background coloring differs from SMI4, which painted the background based on whether the SMIEMA was above or below the zero line.
This version changes the background color when the SMIUP / SMIDOWN dots rise or fall above the SMIEMA line, indicating a possible change in price direction, for potential earlier entry into the move.
Examples of how I use this indicator can be found in the WizardsDen (HolyGrail II) thread.
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
(Re-uploaded March 23, 2010, 7:29 pm CST. Original post did not contain the .zip file, just the .jpg file)
May 17th UPDATE:
This fix addresses several problems that were discovered.
Mindset contributed code to color the bars hollow when price is rising & solid when price is falling eDanny contributed code to remove errant arrows, vertical lines, text messages and also code to clean up the conditions when the warning sounds play.
The arrow code has been changed to (offset*ticksize) so that when you use it on currencies, you shouldn't have to adjust the OFFSET parameter in order to get the arrows to show. They should show automatically now.
I changed it so that it colors the arrows to whatever color you set in the VERTICAL LINE UP/DOWN option. That way, you can have Red/Blue price bars & Magenta / Lime arrows (they are a little easier to spot, I think, when they're not the same color as the price bars).