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
Oscillateur Stochastique
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スクリプトは初めてで、異なるスケールのインジケーターを重ね合わせていスクリプトは探しても見つからなかったので試行錯誤で作ってみました。
同じようなことをやろうとしてる誰かの参考になれば幸いです。
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...
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).
K/D DifferenceThis script provides a histogram for easier analysis of K D difference of a Stochastic oscillator.
RSI & StochasticA combination of RSI and Stochastic using default settings.
- RSI or Relative Strength Index is the white line.
- Stochastic %K is the aqua line
- Stochastic %D is the orange line
- The purple rectangle is the RSI range going from 30 (oversold) at the bottom to 70 (overbought)
- The top dotted line indicates the price being overbought on the stochastic
- The bottom dotted line indicates the price oversold on the stochastic
I mainly use both indicators to spot divergence/ potential upcoming turning points (tops or bottoms).
For example on the chart the white line shows the price of Bitcoin Rising
While the yellow line shows the stochastic declining and the red RSI stayed more or less at the same level.
Another way to use this indicator is to use the aqua line crossing above the orange line as an entry for a long trade this strategy is most useful when both are near the bottom of the range. The opposite is true for short trades but
both should be combined with other indicators such as moving averages support levels or volume for best results.
Generally RSI is more useful in trending markets & the stochastic is more useful in sideways or choppy markets.
AKMY Multiple StochasticsRefer Sample Chart for description - updated to version 4 and additional script suited with Author's trading setting which original script was inspired from script developed by Manu76
Stochastic Pop and Drop by Jake Bernstein v1 [Bitduke]I found a simple strategy by Jake Bernstein, modified it a little and created a strategy with Risk Management System (SL+TP); After that I test it on the different cryptocurrency pairs.
About the Indicator
Basically it's the strategy of 2 indicators: Stochastic Oscillator to define the bias and Average Directional Index to confirm it.
One again, It uses Stochastic Oscillator to define the trading bias. In particular, the trading bias was deemed bullish when the weekly 14-period Stochastic Oscillator was above some default value (in him paper - 50) and rising and vice versa.
Once the trading bias is established, Steckler used the Average Directional Index (ADX) to define a slowdown in the trend. ADX measures the strength of the trend and a move below 20 signals a weak trend.
Modifications
I didn't implement Average Directional Index (ADX) and test just different sources for data, oscillator periods and different levels in relation to the crypto market.
So, it shows good results with two tight thresholds at 55 and 45 level.
The bar chart below the defining the bullish and bearish periods (green and red) and gives a signal to enter the trade (purple bars).
Backtesting
Backtested on XBTUSD , BTCPERP (FTX) pairs. You may notice it shows good results on 3h timeframe.
Relatively low drawdown
~ 10% (from 2019 to date) FTX
~ 22% (4 years from 2016) Bitmex
I backtested on the different altcoin pairs as well, but the results were just not good.
Relatively good results were shown by some index pairs from the FTX exchange ( FTX:SHITPERP ), but I think there is a few data for backtesting to be asure in them.
Bitmex 3h (2017 - 2020) :
i.imgur.com
FTX 3h (2019 - 2020):
i.imgur.com
Possible Improvements
- Regarding trading algorithm it would be good to check with strategy with ADX somehow. Maybe for the better entries
- As for Risk Management system, it can be improved by adding trailing stop to the strategy.
Link: school.stockcharts.com
Dumb Indicator 21 - Function's Candlestick Bar's StyleThe idea is help traders to see the patterns and levels from a different point o view.
This script create candlestick using the opening, high, low and close price as source on your favorite function.
It's very simple to use:
Select a function in the drop box list, the number of bars length, check or uncheck the boxes to treat source as logarithm, smooth, and if you want to plot the SMA from the results.
To make a deeper analysis, you can select to plot the candles in Stochastic or in Percent Rank way.
The Stochastic and Percent Rank plot will show how far the price is close to highest or lowest value of the source from the last "Stochastic Length" number of bars.
Some functions with different names can plot the same results.
This indicator works on every kind of market, but you will need to find the best function and length to use.
Please, if you find anything good with this, share to everyone.
Better Stochastic RSI to find DivergencesThis indicator is a modified version of a stochastic RSI oscillator. I want to share this because it is really good for analysis of divergence between price action and the oscillator. You can also use it to trade overbought and oversold conditions.
To find out more what a divergences is when we talk about trading. Take a look at this: medium.com
How to pirnt out siganl price on candleHi, this is Yong from Mby_lab
this codes explain how print out signal price on candles.
only working on 4H timeframe.
Core code based on 3H timeframe so This time close show on 4H, realtime close.
if 3H close fixed, then it will show on 4H line break style and this is not show twice on candle cause like this
When 3H closed / 4H = realtime
4H closed / 3H = realtime
then like this
3am close show 4am candle
6am close show next 4H candle for 8am~
..
.....
enjoy this!
this codes can help solve timeframe / security issues.
//
LEAN ChangeLEAN = Difference between %K and %D values of stochastic
Change in LEAN is plotted over the bar as a "Circle"
RED Circle => LEAN is decreased from previous value
GREEN Circle => LEAN is increased from previous value
Value of LEAN can be viewed at data window.
Lane's Stochastics (yasujiy)This script is original Lane's Stochastics.
Default script uses SMA for %D, but this %D is calculated separately numerator and denominator.
GBP CopperThis is copper prices in GBP.
After noticing that the FTSE100 shot up in March 2018 very sharply and continued into May while the rest of the world seemed to take its time carrying on until September while the FTSE fell back after its May peak, I wonder if the price of copper had any effect.
So here's the price of Copper in GBP.