Stochastic XThe "Stochastic X" script is a customizable momentum oscillator designed to help traders identify potential overbought and oversold conditions, as well as trend reversals, by analyzing the relationship between a security's closing price and its price range over a specified period. This indicator is particularly useful for traders looking to fine-tune their entry and exit points based on momentum shifts.
🔧 Indicator Settings and Customization
The script offers several user-configurable settings to tailor the indicator to specific trading strategies:
In addition to the source type, %K Period, %D Period, and Signal line periods you can now change moving average calculation for the stochastic and signal lines.
This script allows selection among various moving average methods (e.g., SMA, EMA, WMA, T3) for smoothing the %K and signal lines. Different methods can affect the responsiveness of the indicator.
🎨 Interpreting Background Colors
The script enhances visual analysis by changing the background color of the indicator panel based on the %K line's value:
Green Background: Indicates that the %K line is above 50, suggesting bullish momentum.
Red Background: Signifies that the %K line is below 50, pointing to bearish momentum.
Light Green Overlay: Appears when the %K line exceeds 80, highlighting overbought conditions.
Light Red Overlay: Shows up when the %K line falls below 20, indicating oversold conditions.
These visual cues assist traders in quickly assessing market momentum and potential reversal.
📈 Trading Strategies Using Stochastic X
Traders can utilize the Stochastic X indicator in various ways:
Overbought/Oversold Conditions:
A %K value above 80 may suggest that the asset is overbought, potentially signaling a price correction.
A %K value below 20 could indicate that the asset is oversold, possibly leading to a price rebound.
Signal Line Crossovers:
When the %K line crosses above the signal line, it may be interpreted as a bullish signal.
Conversely, a %K line crossing below the signal line might be seen as a bearish signal.
Divergence Analysis:
If the price makes a new high while the %K line does not, this bearish divergence could precede a price decline.
If the price hits a new low but the %K line forms a higher low, this bullish divergence might signal an upcoming price increase.
Trend Confirmation:
Sustained %K values above 50 can confirm an uptrend.
Persistent %K values below 50 may validate a downtrend.
In this chart, observe how the background colors change in response to the %K line's value, providing immediate visual feedback on market conditions. The crossovers between the %K and signal lines offer potential entry and exit points, while the overbought and oversold overlays help identify possible reversal zones.
⚙️ Adjusting Settings for Optimal Use
The Stochastic X indicator's flexibility allows traders to adjust settings to match their trading style and the specific asset's behavior:
Short-Term Trading: Use shorter periods (e.g., 5 for %K) and more responsive moving averages (e.g., WMA, VWMA, EMA, DEMA, TEMA, HMA) to capture quick market movements.
Long-Term Trading: Opt for longer periods (e.g., 14 for %K) and smoother moving averages (e.g., SMA, RMA, T3) to filter out noise and focus on broader trends.
Volatile Markets: Consider using the T3 moving average for its smoothing capabilities, helping to reduce false signals in choppy markets.
By experimenting with different settings, traders can fine-tune the indicator to better suit their analysis and improve decision-making.
Stochastics
Stochastic RainbowThe Stochastic Rainbow indicator is a multi-layered momentum oscillator designed to provide a comprehensive view of market dynamics by combining multiple stochastic oscillators of varying periods. This approach allows traders to analyze both short-term and long-term momentum within a single visual framework, enhancing decision-making for entries and exits.
🔧 Indicator Settings and Customization
Select from various moving average methods (e.g., SMA, EMA, DEMA, TEMA, WMA, VWMA, RMA, T3) to smooth the stochastic lines. Different methods can affect the responsiveness of the indicator.
The indicator computes five sets of stochastic oscillators with Fibonacci values.
Each %K line is smoothed using the selected moving average type, and a corresponding %D line is plotted for each %K.
🎨 Visual Interpretation
The Stochastic Rainbow indicator plots multiple %K and %D lines, each with distinct colors for easy differentiation.
Additionally, horizontal dotted lines are drawn at levels 80 (Upper Band), 50 (Midline), and 20 (Lower Band) to indicate overbought, neutral, and oversold conditions, respectively.
📈 Trading Strategies Using Stochastic Rainbow
The multi-layered structure of the Stochastic Rainbow allows for nuanced analysis.
Trend Confirmation:
When all %K lines are above 50 and aligned in ascending order (short-term above long-term), it suggests a strong uptrend.
Conversely, when all %K lines are below 50 and aligned in descending order, it indicates a strong downtrend.
Overbought/Oversold Conditions:
If the shorter-term %K lines (e.g., %K 5,3 and %K 8,3) enter the overbought zone (>80) while longer-term lines remain below, it may signal a potential reversal.
Similarly, if shorter-term lines enter the oversold zone (<20) while longer-term lines remain above, it could indicate an upcoming bullish reversal.
Crossovers:
A bullish signal occurs when a %K line crosses above its corresponding %D line.
A bearish signal occurs when a %K line crosses below its corresponding %D line.
Divergence Analysis:
If price makes a new high while the %K lines do not, it may indicate bearish divergence and a potential reversal.
If price makes a new low while the %K lines do not, it may indicate bullish divergence and a potential reversal.
⚙️ Adjusting Settings for Optimal Use
The Stochastic Rainbow's flexibility allows traders to adjust settings to match their trading style and the specific asset's behavior:
Short-Term Trading: Use shorter periods (e.g., 5 for %K) and more responsive moving averages (e.g., WMA, VWMA, EMA, DEMA, TEMA, HMA) to capture quick market movements.
Long-Term Trading: Opt for longer periods (e.g., 55 for %K) and smoother moving averages (e.g., SMA, RMA, T3) to filter out noise and focus on broader trends.
Volatile Markets: Consider using the T3 moving average for its smoothing capabilities, helping to reduce false signals in choppy markets.
By experimenting with different settings, traders can fine-tune the indicator to better suit their analysis and improve decision-making.
+ Stochastic S/R ZonesHey, all. I have a new indicator here that displays zones on your price chart where the stochastic oscillator has moved out of overbought or oversold back into the range of the indicator that is bounded by those two levels.
I know there are many support and resistance indicators on TradingView already, at least a couple of which use the RSI in a similar way as I am using the stochastic here, but I still believe this is a fairly novel interpretation of the stochastic, and it is, in my opinion, a better oscillator than the RSI to be used in this way.
In addition to the zones being plotted on the chart, the indicator also, optionally, can color candles or plot shapes above candles when the 50 line is crossed, so if you want to use this as a simple momentum indicator without desire of having the below chart indicator taking up screen space, you're pretty much covered on the typical signals you might want from it (with the exception of %K / %D crosses, but there are alerts for that).
Visually, it is a simple, clean indicator. There are the zones, and then candle colors or shapes if you opt to add those. These zones are actually drawn from the candle preceding the cross over or cross under. Reason for that is often times the candle of the cross is fairly impulsive and exiting a consolidation. That period of consolidation is what is important to highlight, at least as far as I am concerned. The zones themselves extend until they are broken by a candle. A support zone stops at the candle that closes below its low. Vice versa for a resistance zone.
Usage is fairly simple. All the standard stochastic inputs are available for you to adjust to your heart's content. Additionally, you can choose either the %K or %D line to use as the source from which the zones are drawn, candles are colored, and shapes are plotted. Not sure if this will matter to most people, but I figured it should be made available.
This should be obvious, but I feel it must be said, just because an oscillator (any oscillator) has exited overbought or oversold does not mean that there must be a reversal (or in the case of a trend pullback, continuation). The oscillator can always simply immediately move back into overbought/sold. Just because a support box prints does not mean you should mortgage your house on a long trade. In strong trends, and depending on your oscillator settings, the indicator might draw a box then only a couple of candles later break it, continuing on with the trend. This of course is telling you something, and you would be wise to listen. As with all things trading, context is important.
Here are a few extra screens for you.
I really hope you all like this. It's been ages since I've created anything new, and despite its simplicity and the few lines of code that make it up, it took a lot of work, as I am a poor coder.
Enjoy,
Scott
ESTOCÁSTICO + NORMALIZED MACD=== INTRO ===
This is a 2 in 1 indicator, STOCHASTIC + NORMALIZED MACD.
I release this script as public because both stochastic and normalized macd are public, so I cannot find any reason to post it as private :)
=== USAGE ===
You can use any of the indicators by itself as usual, stochastic as a oversold/overbought indicator as a momentum/trend indicator.
Usually, crossovers are used for LONG/SHORT entries.
I added dots for crossovers as well as background colors to show movement direction when both indicators agree: green = bullish, red = bearish and orange = range/consolidation.
=== SETTINGS ===
Default settings for both indicators have been changed (but they're of course configurable), to make them work better together.
You can also change NMACD moving average time to SMA or WMA instead of SMA, SMA is really slow for me but give it a try, WMA is more aggressive.
=== RECOMMENDATIONS ===
Always look for higher timeframes, for example, if you're trading 1h, don't try to catch a 1H "ALL GREEN" LONG while 4H is "ALL RED" because otherwise you're just "trying" to catch a bounce in the 1H chart that could never happen, always trade with the main trend.
Try to catch both crossovers in the opposite area, ex: try to LONG when both indicators are below 50 and SHORT above.
I did not test divergences on this indicator, as the MACD is normalized i prefer to use a standard MACD for that, but you can use the stochastic for sure.
(JS) Double StochasticThe idea for this indicator came from looking at the Stochastic RSI. The Stochastic RSI takes the RSI reading then applies the Stochastic formula to it - an indicator on top of an indicator. Using this logic, I decided to try using a Stochastic on the existing Stochastic in order to smooth it out - hence the "Double Stochastic". I have also added the option to add RSI on to the indicator as well (with smoothing if you'd like).
Resolution:
I added this so you can look at the reading on any time frame.
K & D:
This is the standard K% and D% used with the Stochastic indicator - the numbers modify the length of their calculations.
Smooth:
This is the smoothing calculation, also from the normal Stochastic indicator.
Use Second Stochastic:
This adds a second Stochastic on to the chart for analysis.
K & D 2:
This is the parameters used to calculate the second K% and D% lines.
Smooth 2:
This is the smoothing interval for the second K% and D% lines.
Use K% and D%:
The default for this is to have it on. What it means is that you wish to see both the K% and D% lines (watching for a cross). If you turn this off, the plot switches to a K% & D% difference line. It is just one line that plots the distance between the two.
SMA Length Using Difference:
If this is on, then you can smooth the difference plot with an SMA, obviously if you just want the raw difference to plot, then set this to 1.
Use RSI:
Since both RSI and Stochastic use a 0-100 scale, I added the ability to plot the RSI along with the Stochastic. This will not plot if you are using the Difference plot, being that plot isn't on a 0-100 scale.
Smooth RSI:
I also added the ability to smooth the RSI if you'd like, you can turn this off for the standard RSI reading.
RSI Length:
This is the period of bars used to calculate the RSI.
RSI Smoothing Length:
This is the smoothing interval if you'd like to apply a moving average on the regular RSI reading.
RSI Smoothing Use EMA:
This makes the RSI smoothing use an EMA, when off an SMA is used instead.
RSI Source:
And finally, this is the source used to calculate the RSI value.
I hope that you all may find this useful, I have been using it myself with a lot of success. Any questions, please leave them in the comments, thanks!
L2 KDJ with Whale Pump DetectorLevel: 2
Background
One of the biggest differences between cryptocurrency and traditional financial markets is that cryptocurrency is based on blockchain technology. Individual investors can discover the direction of the flow of large funds through on-chain transfers. These large funds are often referred to as Whale. Whale can have a significant impact on the price movements of cryptocurrencies, especially Bitcoin . Therefore, how to monitor Whale trends is of great significance both in terms of fundamentals and technical aspects.
The KDJ oscillator display consists of 3 lines (K, D and J - hence the name of the display) and 2 levels. K and D are the same lines you see when using the stochastic oscillator. The J line in turn represents the deviation of the D value from the K value. The convergence of these lines indicates new trading opportunities. Just like the Stochastic Oscillator, oversold and overbought levels correspond to the times when the trend is likely to reverse.
Function
L2 KDJ with Whale Pump Detector is a composite indicator that combines both KDJ and Whale Pump Detector. By virtue of this, fake signal of KDJ can be filtered out to some degree.
Key Signal
whalepump --> whale buy behavior will be detected and displayed in yellow histograms
k --> k value of a stochastic oscillator
d --> d value of a stochastic oscillator
j --> the deviation of the d value from the d value of a stochastic oscillator
Pros and Cons
Pros:
1. filter out KDJ fake signal by introducing whale buy/pump detector
2. J value can be used to detect overbought and oversold regions
Cons:
1. It works better in small time frame and sideways. Extreme long or short conditions may cause KDJ staturate.
2. It can only indicate in current time frame, larger time frame trend info is missing.
Remarks
Composite KDJ+Whale Pump Detector. Works fine in 15mins time frame.
Readme
In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Tradingview is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Tradingview community. Welcome everyone to interact with me to discuss these interesting pine scripts.
The scripts posted are categorized into 5 levels according to my efforts or manhours put into these works.
Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.
Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.
Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.
Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.
Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many of them to achieve private trading strategy.
Apirine Stochastic MACD w/ MA Selection by Cryptorhythms📊 Apirine Stochastic MACD w/ MA Selection by Cryptorhythms
Intro
Had to re-release due to moderation.
This happens to be my first open source indicator, hope you all enjoy it!
Description
This indicated is ported from November 2019 issue of TASC. “The Stochastic MACD Oscillator” in this issue, author Vitali Apirine introduces a new indicator created by combining the stochastic oscillator and the MACD . He describes the new indicator as a momentum oscillator and explains that it allows the trader to define overbought and oversold levels similar to the classic stochastic but based on the MACD .
Options
-You can enable bar coloration for trade state (signal conditions setup in the "long" and "short" variables).
-You can choose histogram or columns for the convergence/divergence display.
-You can turn on/off and adjust the overbought / oversold zones.
-You can choose what type of moving average to use in the calculation from a small selection of options. This gives you more flexibility to adapt the indicator to your needs.
👍 We hope you enjoyed this indicator and find it useful! We post free crypto analysis, strategies and indicators regularly. This is our 70th script on Tradingview!
🤐Check my Signature for other information
Stochastic [Gu5]To know if we are in range, I recommend my other indicator "Trend Channel Gu5"
Stochastic shows overbought / oversold
--
Para saber cuando no hay tendencia y estamos en rango, recomiendo usar mi indicador "Trend Channel Gu5"
El cruce de K & D nos muestra cundo el mercado esta en sobre-compra o sobre-venta
Las alertas con banderas ayudan a visualizar mas claramente, evitando las alertas duplicadas
2xStochastic + RSI (two levels, colored)Great tool to find market tops, bottoms, S/R's and reversals.
Rsi has 2 customiseble overbought and oversold levels can show you extreme levels.
Slow Stochastic 1 (25 period) shows small price swings
Slow stochastic 2 (100 period) can show you a greater picture, are we reversing?
Why do you need Leguerre, Murrey, Kaufman oscilator 3000 when you can have old and trusted tool, that has been tweeked very nicely for any timeframe.
I use it in a variety of ways, let me show you some examples:
EXAMPLE 1 (RSI Extreme Level):
1) Find extreme oversold or overbought level that clearly reversed and plop S/R line there. BAM! We have a S/R line
2) Next time you know this line will mean something (Either it will hold, or it will be broken by a big candle) and you can trade it accordingly to Stochastic trading strategy
EXAMPLE 2 (Fibonacci Level finder):
Trading fibo? This can help!
1) Just like fibo trading, find good swing top and bottom
2) You know that price will reverse from 38.2, 50, 61.8, but where? I think this is self explanotory...
Stochastic Momentum IndexStochastic Momentum Index indicator script. This indicator was originally developed by William Blau (Stocks & Commodities V. 11:1 (11-18)).
Slow StochasticThe slow stochastic indicator is a price oscillator that compares a security’s closing price over “n” range. The most commonly used range for the slow stochastic indicator is 14.
Defaults K=14, D=3
DMI Stochastic Extereme - Version 2Version 2 Includes
Custom setting for the Oversold and Overbought Levels
Replaced B and S with arrows
Cleaned up the code and finalized the indicator.
*Unless there is a real need, this indicator will not be revised further.
CM_Stochastic Highlight BarsCM_Stoch Highlight Bars
belgusinc Wanted to Know How To Create Highlight Bars based on Stochastic Bars Being Overbought/Oversold
Basics:
Ability to turn On/Off Crosses Only Above or Below High/Low Lines.
User sets Values Of High/Low lines. (Determines how highlight Bars are plotted, Based on the Value of the High/Low lines.
Ability to turn On/Off All Crosses, Both BackGround Highlights and “B”, “S” Letters.
Ability to turn On/Off BackGround Highlights if Stoch is Above Or Below High/Low Lines.
Ability to All or Any Combination of these Features.
Lower Indicator
CM Stochastic Multi-TimeFrameMulti TimeFrame Stochastic Loaded With Features.
Basics:
Ability to turn On/Off Crosses Only Above or Below High/Low Lines.
User sets Values Of High/Low lines.
Ability to turn On/Off All Crosses, Both BackGround Highlights and “B”, “S” Letters.
Ability to turn On/Off BackGround Highlights if Stoch is Above Or Below High/Low Lines.
Ability to All or Any Combination of these Features.
Multi Timeframe Capabilities:
Stoch defaults to current timeframe. You can change to many other timeframes.
Ability to turn On/Off Plotting 2nd Stoch on same TimeFrame with different settings
Ability to turn On/Off Plotting 2nd Stoch on Different TimeFrame
Much More…All Inputs and Options are Adjustable in Inputs Tab.