The_Caretaker

CT Reverse Stochastic Momentum Index

The_Caretaker ที่อัปเดต:   
Introducing the Caretakers Reverse Stochastic Momentum Index .

According to Investopedia :
“The Stochastic Momentum Index (SMI) is a more refined version of the stochastic 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 )
  • Zero-Line
  • Lower alert level ( default -40 )
  • Signal line
The user can infer from these values that when closing prices cross the levels shown, the SMI will cross the indicated level or 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.
Traditionally traders and analysts will consider:

  • Positives values above 40 indicate a bullish trend
  • Negative values below -40 indicate a bearish trend .
Common traditional ways to derive signals from the SMI :

  • 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 Chande Momentum Oscillator or R squared indicator to determine overall market trendiness where the SMI is used to determine the direction of the trend, and also with volume indicators to show if the momentum carries significant selling or buying pressure.

เอกสารเผยแพร่:
General tidy up of code.

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.
เอกสารเผยแพร่:
Upgraded to Pinescript Version 5.
Added color selection options for plots and fills.
Arranged settings and added setting section headers.

You may contact me on Krown's Crypto Cave Discord: discord.gg/W9ettX54DF My Discord username is The Caretaker.
My Private indicators are available via :
krown-trading.teachable.com/?affcode=236462_mm1lb1_w
สคริปต์โอเพนซอร์ซ

ด้วยจิตวิญญาณของ TradingView อย่างแท้จริง ผู้เขียนสคริปต์นี้ได้เผยแพร่เป็นโอเพนซอร์ส เพื่อให้ผู้ค้าสามารถเข้าใจและตรวจสอบได้ ไชโยให้กับผู้เขียน! คุณสามารถใช้ได้ฟรี แต่การใช้รหัสนี้ซ้ำในสิ่งพิมพ์อยู่ภายใต้กฎของบ้าน คุณสามารถตั้งเป็นรายการโปรดเพื่อใช้บนชาร์ตได้

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ เงื่อนไขการใช้บริการ

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?