TFs Double Stochastic StrategyThe Strategy script uses Stochastic indicators for entering and exiting a position.
How to use
The strategy works with most timeframes and instruments.
I'm also providing a "study" version of this script, which can be used for automation of the strategy via alerts.
The script is using a default commission of 0.075% which reflects Bitmex' Taker-Fees. This is just a default and can be modified in the strategy settings for each instrument individually.
List of parameters
"Stochastic Length" ... Number of bars for Stochastic indicators
"Stochastic Overbought" ... Stochastic overbought level
"Stochastic Overbought Down Trend" ... Stochastic overbought level for down trends
"Stochastic Oversold Up Trend" ... Stochastic oversold level for up trends
"Stochastic Oversold" ... Stochastic oversold level
"Stochastic Smooth K" ... Stochastic K smoothing
"Stochastic Smooth D" ... Stochastic D smoothing
"MA Filter Enabled" ... Enable an additional filter for entering a position; the entries only follow the overall trend
"Fast Period" ... Fast filter period
"Slow Period" ... Slow filter period
"Backtest ..." ... Backtest timeframe; area outside this timeframe will be grayed out
How to access
This strategy is a "Invite Only" script. Please use the link below or send me a message via Tradingview to obtain access to the strategy and study script.
For enabling the script in your Tradingview chart window, click on "Indicators" and select "Invite-Only Scripts".
Oscilador Estocástico
Pro StochasticsMy take on coding a Stochastic Indicator for professional use.
Contains many options and settings for you to tweak, and can be used on different timeframes.
I've also decided to make the code Open to all to use.
But it would be great if you credit me when you use my code. :)
Stochastic based on Closing Prices - Identify and Rank TrendsStochClose is a trend indicator that can be used on its own to measure trend strength, in a scan to rank a group of securities according to trend strength or as part of a trend following strategy. Moreover, it acts as a volatility-adjusted trend indicator that puts securities on an equal footing.
StochClose measures the location of the current close relative to the close-only high-low range over a given period of time. In contrast to the traditional Stochastic Oscillator, this indicator only uses closing prices. Traditional Stochastic uses intraday highs and lows to calculate the range. The focus on closing prices reduces signal noise caused by intraday highs and lows, and filters out errant or irrationally exuberant price spikes.
Here are some examples when the high or low was out of proportion and suspect. Perhaps most famously, there were errant spike lows in dozens of ETFs in August 2015 (XLK, IJR, ITB). There were other spikes in VMBS (October 2014), IJR (October 2008) and KRE (May 2011). Elsewhere, there were suspicious spikes in IEI (April 2020), CHD (March 2020), CCRN (March 2020) and FNB (March 2020)
The preferred setting to identify medium and long-term uptrends is 125 days with 5 days smoothing. 125 days covers around six months. Thus, StochClose(125,5) is a 5-day SMA of the 125-day Stochastic based on closing prices. Smoothing with the 5-day SMA introduces a little lag, but reduces whipsaws and signal noise.
StochClose fluctuates between 0 and 100 with 50 as the midpoint. Values above 80 indicate that the current price is near the high end of the 125-day range, while values below 20 indicate that price is near the low end of the range. For signals, a move above 60 puts the indicator firmly in the top half of the range and points to an uptrend. A move below 40 puts the indicator firmly in the bottom half of the range and points to a downtrend.
StochClose values can also be ranked to separate the leaders from the laggards. In contrast to Rate-of-Change and Percentage Above/Below a Moving Average, StochClose acts as a volatility-adjusted indicator that can identify trend strength or weakness. The Consumer Staples SPDR is unlikely to win in a Rate-of-Change contest with the Technology SPDR. However, it is just as easy for the Consumer Staples SPDR to get in the top of its range as it is for the Technology SPDR. StochClose puts securities on an equal footing.
StochClose measures trend direction and trend strength with one number. The indicator value tells us immediately if the security is trending higher or lower. Furthermore, we can compare this value against the values for other securities. Securities with higher StochClose values are stronger than those with lower values.
Simple strategy IndicatorHello, this is my Indicator, based on my MACD+RSI+Stoch trading strategy
You can use it by your own and try to apply it on any market
Please, adjust any parameters and don't forget to leave a feedback and comments
RSI & StochasticHello everyone,
I would like to share with you my new little toy...
It's an oscillator wich combine RSI based on his neutral value (50) and Stochastic on the same spot.
Defaults values are ( 21 ) for RSI and ( 15,5,3 ) for stochastic.
All parameters are editable...
I hope you will enjoy
Cheers,
Keep it Simple
Stochastic - UltimateI have to admit that the Stochastic Indicator is one of my favorite tools, but the default version is lacking some functionalities which I always wished they were there...
Therefore I decided to create an enhanced version of the Stochastic which now exactly fulfills my needs. I wanted to share it with the community in case someone else finds it useful.
So what is included?
- Full Stochastic (by default the settings are Length = 14 / K-Smooth = 6 / D-Smooth = 3, but you can change them to your liking)
- Oversold/Overbought limits can be customized - by default they are set to 20/80
- Red/Green line at the bottom indicates if K above D (green) or K below D (red) --> Indicates the general trend
- Background coloring for Stochastic crosses that happen in Oversold/Overbought area (buy/sell can be considered here)
- Stochastic RSI can be shown (= Stochastic indicator used on RSI value)
- Divergences on Stochastic can be displayed (Regular Bullish/Bearish & Hidden Bullish/Bearish)
- Optional: Show Highest/Lowest RSI since last Stochastic Cross
- Optional: Show label which indicates Target Price and Price distance to next K/D cross
Constructive Feedback is always welcome.
Enjoy.
Stochastic CandlesA series of up to 28 stochastics oscillators used to form an average stochastic value, which is then used to colour the candles based on the momentum.
Each candle can be coloured one of ten colours and each one represents a position on the stochastic oscillator.
The indicator helps traders to visualise the momentum and helps trend following.
Inputs:
MA: multiple smoothing methods
Theme: multiple colours
Increment: stochastic length start and increments
End: stochastic length end
Smooth: smooth stochastic
Stochastic Heat MapA series of 28 stochastic oscillators plotted horizontally and stacked vertically from bottom to top as the oscillator background.
Each oscillator has been interpreted and the value has been used to colour the lines in.
Lower lines are shorter term stochastics and higher lines are longer term stochastics.
The average of the 28 stochastics has been taken and then used to plot the fast oscillator line, which also has a slow oscillator line to follow.
The oscillator line can be used to colour in the candles.
Inputs:
MA: multiple smoothing methods
Theme: multiple colours
Increment: stochastic length start and increments
Smooth Fast: smooth fast length
Smooth Slow: smooth slow length
Paint Bars: colour candles
Waves: toggle method to weight/increment stochastics
Heat map shows momentum extremes:
Stochastic RibbonA series of highs and lows of different lengths to create a ribbon-like indicator to emulate the stochastic oscillator's top (100), middle (50) and bottom (0). Traders can determine the strength of the support and resistance by the number of converging lines, choose price points and visualise momentum waves.
Inputs:
Theme: multiple colours/themes (theme 2)
Length: high/low length (14)
Start: plot number to start ribbon on (1)
PlotNumber: number of plots to show; maximum 10 per top, middle, bottom (10)
Example:
Length: 14
Start: 5
PlotNumber: 10
Trend Checker by Hally - IndicatorIt is an indicator that overlaps MACD and Stochastics.
It has both characteristics.
The trend changes when two lines intersect.
I think the reaction is bad in the range market.
Also, when there are Stochastics and MACD lines above the indicator, it is possible to think whether it is overbought while riding the trend, and it may be helpful for making decisions such as "maybe it will reverse soon". Hmm.
Also, I think it is better to use it in combination with other indicators.
This is my first pine script, and I couldn't find it even if I searched for the script with overlapping indicators of different scales, so I tried making it by trial and error.
I hope it helps somebody trying to do the same.
MACDとStochasticsを重ね合わせたインジケーターです。
それぞれの特徴を併せ持っています。
2本のラインが交差する時トレンドが変化します。
レンジ相場では反応が悪いと思います。
また、インジケーターの上の位置にStochasticsとMACDラインがあるときはトレンドに乗りながらも買われすぎかどうか考えられることが出来ますし、「そろそろ反転するかも」などの判断の助けになるかもしれません。
また、他の指標との併用して使うほうが良いと思います。
pineスクリプトは初めてで、異なるスケールのインジケーターを重ね合わせていスクリプトは探しても見つからなかったので試行錯誤で作ってみました。
同じようなことをやろうとしてる誰かの参考になれば幸いです。
Stochastic Pullback Above/Below Previous Week High/LowThis script was designed to help swing traders identify pullbacks on trending markets by generating long and short opportunities as explained below:
LONG OPPORTUNITIES: Oversold conditions on Stochastic (14) as long as the oversold candles are located completely above the previous week high.
SHORT OPPORTUNITIES: Overbought conditions on Stochastic (14) as long as the overbought candles are located completely below the previous week low.
Preferable TF: H1
MattyPips Strategy with Alerts For education purpose.
Applied only for Matty Pips Strategy.
Arrow will appear when
DMI + Stoch + RSI are in the same OB/OS.
Multi Time Frame StochasticThis Indicator draws 6 Stochastic Plots with different Time Frames showing only K Value.
Available Time Frames: 3m, 5m, 15m, 30m, 60m, 240m
BTC Hash Rate & Price Stochastic IndiciatorFresh off the press, we have a new breed of indicators: Bitcoin's Hash Rate & Price.
As many of you have read, roughly 80% of BTC's price movements can be correlated to its changes in hash rate volume. I decided to make a stochastic indicator that utilizes this principle to track divergence of the price from the hash rate.
Let's break this down...
In red is the CLOSE of BTC's Price, which is then smoothed by a SMA, and smoothed again by a WMA.
In aqua is a STOCH of BTC's Hash Rate, which is then smoothed by a SMA, and smoothed again by a WMA.
The reason why I chose to use the CLOSE of the Price versus a STOCH as I did with the Hash Rate, is because the price tends to signal trends via divergence from the Hash Rate, and eventually converge with the Hash Rate at some point.
You will notice that anytime there is a significant divergence of the RED from the AQUA, a trend is closely aligned with it. This indicator does a remarkable job of indicating the beginnings and ends of both bullish and bearish price movements.
Example Strategy:
Enter long when RED (price) crosses over AQUA (hash rate), and close long when RED crosses under AQUA.
The inverse can be done for shorts, just RED diverges downwards from AQUA versus upwards.
Note:
Unlike a normal Stochastic Indicator, the upper and lower bounds do not appear to hold any significance. In other words, the lines do not seem to reverse at 20/80. As a result, I just set them to 0/100 for aesthetics.
DO NOT make trades based off of small divergences, or simply enter into positions based off the price divergences. Though this indicator times the start/end of movements very accurately, it also comes riddled with false breakouts .
Proceed at your own pace, and please, toy around with the inputs values. I experimented with a few combinations, but I'm sure there are better value combinations that yield sharper results with fewer false signals.
EASTER EGG:
Notice the "Golden Line"? Any avid user of TV knows that Fibonacci ratios show up everywhere in markets. With that said, I plotted a horizontal line at 0.618, which is 1/Phi, an important level in Fibonacci retracements.
Final Comments:
First, this is not investment, merely my experimentation and observation of happenings in the analytical world.
Second, please comment questions, improvements, etc. Dialogue opens up room for exploration!
Higher Highs & Lower Lows Stochastics - Vitali ApirineThis is my modified "Higher Highs & Lower Lows Stochastics" employing PSv4.0, originally formulated by Vitali Apirine for TASC - February 2016 Traders Tips. Reading through a TASC magazine of mine, behold, I found a little known indicator that I can't find anywhere on all of Tradingview. That was a tragedy I felt I had to resolve... This indicator is best described as a dual momentum indicator, being helpful with anticipating reversals, spotting emerging trends, and defining correction periods. I felt it worthy of justice to unveil this for all TV members to utilize and also learn from. It's uniqueness is beyond past due for the honor it deserves on Tradingview.
As always, I have included advanced Pine programming techniques that conform to proper "Pine Etiquette". For those of you who are newcomers to Pine Script, this code release may also help you comprehend the "Power of Pine" by employing advanced programming techniques while exhibiting code utilization in a most effective manner. This script's uniqueness displays that we can now override built-in Pine functions. Firstly, you may have noticed that I replaced ema(), sma(), highest(), and lowest(). If you weren't aware of this Pine capability, well, here is a prime example... Now you know! Just heed caution when doing so to ensure your replacement algorithms are 100% sound. Lastly, I also added an additional "Median" line where the companion stochastics seemingly appear to gravitate within a central zone.
NOTICE: You may have observed, there is highest(), lowest(), ema(), and sma() custom functions overwriting Pine built-ins, some of which are audaciously used in ternary. "IF" you are planning to use Pine Script v4.0 functions in ternary, be forewarned, they WILL NOT operate as expected in most scenarios. The reason why I legitimately used them here in ternary is because they are ONLY manually controlled by an input(). If these were dynamically controlled with bar-to-bar dynamic conditional logic, you would most certainly run into serious unexpected programming issues, potentially resulting in hours of frustrations and guaranteed loss of hair. That's my lesson for this release, so never ever forget this when utilizing the full potential of the "Power of Pine". For more information concerning these potential dilemmas, please consult "Execution of Pine functions and historical context inside function blocks" in the "Pine Script v4 User Manual".
Features List Includes:
Dark Background - Easily disabled in indicator Settings->Style for "Light" charts or with Pine commenting
AND much, much more... You have the source!
The comments section below is solely just for commenting and other remarks, ideas, compliments, etc... regarding only this indicator, not others. When available time provides itself, I will consider your inquiries, thoughts, and concepts presented below in the comments section, should you have any questions or comments regarding this indicator. When my indicators achieve more prevalent use by TV members, I may implement more ideas when they present themselves as worthy additions. As always, "Like" it if you simply just like it with a proper thumbs up, and also return to my scripts list occasionally for additional postings. Have a profitable future everyone!
Pure Stochastic long onlyJust a stochastic for giving you a smart and quick signals of entering and exiting.
Your enter is K>D in the low band and close > last bar's high.
An Ema has been added for targeting and stops.
You exit also in case of high values of K or in case D crosses over K but in the "upper".
Length, periods and level of bands are personalized.
The system goes long only, because it fits at best for shares only; I leave you the attemp of writing code for other classes and for going short, in particular.
SUGGESTIONS:
Keep Oversold period high (> 20, also 40-45)
Keep Emaperiodfast higher (> 5)
Stochastic FibonacciThis is your run-of-the-mill stochastic indicator, with one slight difference. I added Fibonacci ratios and colored them across the rainbow for aesthetics.
I noticed that the stochastic moving averages, K & D, would reverse in between 0 & 100. Just like price, they were likely Fibonacci ratios.
My original plan was to create a strategy script, and trade whenever K & D crosses the Fib levels. However, they do not cross them perfectly, rather they merely float near them and reverse. Therefore, the strategy would have never made the trades.
As you will notice in the script, there is Bitcoin Hash Rate data imported. I did so because I would like to create a stochastic hash rate indicator at some point. For those of you with this same passion, there is the hash data to mess around with; consider it an Easter Egg...
Kojirokousi Daijyunkan Stochastics for Ichimoku-Kinko-HyoKojirokousi Daijyunkan Stochastics
Original indicator by Kojirokousi
Evolution of stochastics
Indicator to use with the Ichimoku-kinko-hyo
Checking each lines of the Ichimoku-kinko-hyo with an oscillator.
小次郎講師 大循環ストキャスティクス for 一目均衡表(大スト for ichi)
小次郎講師によるオリジナルのインジケーター
ストキャスティクスを発展させたもの
一目均衡表と一緒に使うためのインジケーター
一目均衡表の各線をオシレーターで確認する
B3 Stochastic Full w/BarColorNow with Bar Color!
The simplest upgrade to the classic indicator, old script:
B3 Stochastic Full
Also, if you like this one you may appreciate my personally modified take on the stochastic readings:
B3 Extended Stochastics
Stochastic %BIt's a Stochastic indicator combined with Bollinger %B. This way you just need to check if it is above 1.0 or below 0.0 (Outside Bollinger Bands).
Stoch tripleThe script has combined the three Stochastic oscillators into one.
It analysed divergences of indicators depending on the flow of stock price, a circle mark or text mark displayed.
The maroon and red marks mean a fall, while the green and lime marks mean a rise.
Especially red and lime of mark are strong signs of decline or rise.
I hope you can make a successful investment by using three Stochastic oscillators properly.
K/D DifferenceThis script provides a histogram for easier analysis of K D difference of a Stochastic oscillator.
StochRSI by Trader PrasadThe Stochastic RSI ( Stoch RSI ) indicator was developed by Tushard Chande and Stanley Kroll. They introduced their indicator in their 1994 book The New Technical Trader.
Original formula is
Stoch RSI = ( RSI - Lowest Low RSI ) / (Highest High RSI - Lowest Low RSI )
I have changed some settings as per my back testing.