According to Investopedia :
“The (SMI) is a more refined version of the oscillator, employing a wider range of values and having a higher sensitivity to closing prices.”
The SMI was developed by William Blau and introduced in 1993 in an attempt to provide a more reliable indicator, less subject to false swings.
It calculates the distance of the current closing price as it relates to the median of the high/low range of price.
The SMI has a normal range of values between +100 and -100.
When the present closing price is higher than the median, or midpoint value of the high/low range, the resulting value is positive.
When the current closing price is lower than that of the midpoint of the high/low range, the SMI has a negative value.
I have reverse engineered the SMI formula to derive 2 functions.
One function calculates the chart price at which the SMI will reach a particular SMI scale value.
The second function calculates the chart price at which the SMI will crossover its signal line.
I have employed those functions here to give the price level where the SMI will equal :
- Upper alert level ( default 40 )
- Lower alert level ( default -40 )
- Signal line
If the price value is less than zero the value will show "impossible".
The advantage of knowing the exact prices that this will happen should give the user an additional edge and precision in risk management.
These crossover levels are displayed via an optional infobox with choice of user selected info.
There is an option to change the decimal places shown.
For easy and intuitive reading of the indicator when ….
- SMI is above the signal line both the SMI and Signal line and the space between them is Green.
- SMI is below the signal line both the SMI and Signal line and the space between them is Red.
- SMI is above the Zeroline the space between them is Green.
- SMI is below the Zeroline the space between them is Red.
- Positives values above 40 indicate a
- Negative values below -40 indicate a .
- When the SMI crosses above the zeroline, a buy signal is generated.
- When the SMI crosses below the zeroline, a sell signal is generated.
- When the SMI crosses below -40 and then moves back above it, a buy signal is generated.
- When the SMI crosses above +40 and then moves back below it, a sell signal is generated.
- When the SMI line crosses above the signal line. A signal to buy / take profit is generated
- When the SMI line crosses below the signal line. A signal to sell / take profit is generated.
Traders also look for divergences between the SMI itself or the SMI histogram and price action.
The SMI is often used in conjunction with the or R squared indicator to determine overall market trendiness where the SMI is used to determine the direction of the trend, and also with indicators to show if the momentum carries significant selling or buying pressure.
Renamed many variables and functions for consistency and clarity.
Added SMI (eq) output which shows the price level pivot to make the SMI higher or lower than its previous value.
Added some simple development testing tools ( as notes at the bottom ) for newer coders knowledge.
Where I am a moderator, my username there is The Caretaker also.
My Private indicators are available through https://app.krowntrading.net/
I sann TradingView-anda har författaren publicerat detta skript med öppen källkod så att andra handlare kan förstå och verifiera det. Hatten av för författaren! Du kan använda det gratis men återanvändning av den här koden i en publikation regleras av våra ordningsregler. You can favorite it to use it on a chart.
Informationen och publikationerna är inte avsedda att vara, och utgör inte heller finansiella, investerings-, handels- eller andra typer av råd eller rekommendationer som tillhandahålls eller stöds av TradingView. Läs mer i Användarvillkoren.