StochasticUser request. A tuned version of the built-in Stochastic indicator with the following options included:
K-D Histogram
K/D Crossovers
K/D Ribbon
Bands breakouts highlighting
Middle line crossovers background
Oscilador estocástico
The WWG Plan Indicator V2█ OVERALL
This indicator was specifically created for the Walsh Wealth Group.
In short it is a fusion of some of the most basic and widely used indicators to show overbought patterns and trend reversals.
Its best usage is with LTF scalping and agressive profit taking but can also be used to find HTF dips and buy-zones.
█ FEATURES
Buy Signal (Buy):
Printed only with all confirmations triggered
Small Buy Signal (B1 & B2)
Printed if some of the confirmations are triggered and can be treated as DCA entries or for further
confirmation with other indicators and basic TA.
Crayons (Color Bars):
Blue: RSI is oversold
Olive: RSI and Stoch RSI are oversold
Yellow: RSI, Stoch RSI are oversold and lower Bollinger Bands are crossed by Low
Orange: RSI, Stoch RSI and CCI are oversold
Trailing SL:
If activated in the config, a trailing SL can be displayed on the chart based on ATR.
█ SETTINGS
The underlying indicators used are RSI, Stoch RSI, Bollinger Bands, MACD and CCI.
All possible configs can be changed in the config settings.
█ GENERAL INFORMATION
Depending on the settings, the indicator performance will be highly affected.
This indicator is only displaying highly oversold areas and events of trend reversal it is not a *God*-Signal and will print false positives.
█ ALERTS
An alert for the main buy-signal is implemented and can be used via the TV alert functionality.
Stochastic with Lines - ChartWhat is Stochastic with Lines - Chart and why do you need it?
I use it for chart analysis to identify key K/D levels from which bullish / bearish market structure continues to develop.
Chart means that every K/D cross above/below the signal lines will be notified on your Chart and not on the stocahstic oscillator. To see them on your chart please choose "Stochastic with Lines - Default" in my library.
Once K or the D line cross over or under your upper or lower signal line you will see background colors which you can adjust in the settings menu.
This small indicator is for a larger project which will be uploaded in several days/weeks.
Stochastic with Lines - DefaultWhat is Stochastic with Lines - Default and why do you need it?
I use it for chart analysis to identify key K/D levels from which bullish / bearish market structure continues to develop.
Default means that every K/D cross above/below the signal lines will be notified on your Stochastic Indicator and not on your chart. To see them on your chart please choose "Stochastic with Lines - Chart" in my library.
Once K or the D line cross over or under your upper or lower signal line you will see background colors which you can adjust in the settings menu.
This small indicator is for a larger project which will be uploaded in several days/weeks.
Multi-Oscillator Buy/Sell AlertsThis is an indicator that shows buy and sell signals using multiple oscillators like RSI, Williams %R, Stochastics, and Chande. The green tabs say to buy, and the red tabs say to sell. Hope you like it! The parameters can be tweaked but they're not meant to be tweaked.
scalping against trapped countertrendAbstract
This script attempts to find the end of countertrend.
This script uses oscillators to measure long term and short period trends. When the long term trend keeps positive and clear short term period is over, this script provides a buy signal.
This script does not contain pullback, cut loss and re-enter. You need to add it manually.
Introduction
Many traders want to buy when long term trend is bullish and short term pullback is over.
This is because we can take advantage to the emotion of countertrend traders.
Countertrend traders realizes their profit is finite and therefore want to protect their profit well and limit their loss.
This script is inspired by a searchable trading strategy video.
The video mentioned 4 points.
(1) long term trend. The video did not spend much ink on this point. You can use any method to observe.
(2) clear pullback bar (at least 50% body)
(3) weak bar after clear pullback
(4) entry trigger buy stop
This script attempts to quantize these points to determine trading direction.
This script is originally designed for timeframes lower than examples in the video but you can apply it on any timeframe.
Computing and Adjusting
(1) long term trend
This script uses smoothed stochastic.
(2) clear pullback bar
Since this script is originally designed for timeframes lower than examples in the video, so the condition becomes:
RSI is low enough
(3) weak bar after clear pullback
RSI goes back from low level.
(4) entry trigger buy stop
This script does not include this condition.
You can decide enter when buy stop or pullback.
Parameters
x_src : the value for computing oscillators
x_len_a : how many bars for measuring short term trend
x_len_b : how many bars for measuring long term trend
x_k_b : smooth long term trend, the average value of stochastic values
x_changk = check if clear short term pullback appears recently. 1 means do not use, larger numbers means how long of periods to check.
x_rsi_ct : threshold of short term pullback clear
x_rsi_ft : threshold of short term pullback end
Reading numbers in Strategy Tester
Most possible loss :
(1) to find rational pullback. Generally 1/3 to 2/3 atr.
(2) to find cut loss distance. Generally 1 to 2 atr.
Most possible profit :
to find if trading the opposite direction against this script is profitable.
Conclusion
This script can suggest us trading direction.
Waiting for pullback can reduce risk, compared to buy stop.
This script does not provide good signals in sideways markets.
Reference
A searchable trading strategy video
Multi-Timeframe Stoch RSIGood evening folks!
Today I want to share with you a simple variant of the Stochastic-RSI built-in indicator.
Nothing too complex: by enabling the relative checkbox and setting the desired (k, d or the RSI ) source and timeframes, you can see higher timeframes data plotted on your screen.
Everything you need to do is enabling the indicator on the lowest timeframe (in this case 15 minutes), then you will see in YELLOW the information retrieved from the next higher timeframe (in this case 30 minutes) and in RED the information retrieved from the highest timeframe (in this case 45 minutes).
IT'S IMPORTANT THAT YOU DISPLAY THE INDICATOR ON THE LOWEST TIMEFRAME!
You can play with the overbought and oversold heights in order to have the best configuration you want (in oversold conditions is suggested to buy while in overbought conditions is suggested to sell)
The higher timeframes data are retrieved avoiding repainting since the method used for taking them is the 10th method described in this PineCoders Article , so, if you want to enable alerts, you SHOULD ignore the disclaimer message related to it without any problem.
Good Trading!
TradingView Alerts to MT4 MT5 - Forex, indices, commoditiesHowdy Algo-Traders! This example script has been created for educational purposes - to present how to use and automatically execute TradingView Alerts on real markets.
I'm posting this script today for a reason. TradingView has just released a new feature of the PineScript language - ALERT() function. Why is it important? It is finally possible to set alerts inside PineScript strategy-type script, without the need to convert the script into study-type. You may say triggering alerts straight from strategies was possible in PineScript before (since June 2020), but it had its limitations. Starting today you can attach alert to any custom event you might want to include in your PineScript code.
With the new feature, it is easier not only to execute strategies, but to maintain codebase - having to update 2 versions of the code with each single modification was... ahem... inconvenient. Moreover, the need to convert strategy into study also meant it was required to rip the code from all strategy...() calls, which carried a lot of useful information, like entry price, position size, and more, definitely influencing results calculated by strategy backtest. So the strategy without these features very likely produced different results than with them. While it was possible to convert these features into study with some advanced "coding gymnastics", it was also quite difficult to test whether those gymnastics didn't introduce serious, bankrupting bugs.
//////
How does this new feature work? It is really simple. On your custom events in the code like "GoLong" or "GoShort", create a string variable containing all the values you need inside your alert and this string variable will be your alert's message. Then, invoke brand new alert() function and that's it (see lines 67 onwards in the script). Set it up in CreateAlert popup and enjoy. Alerts will trigger on candle close as freq= parameter specifies. Detailed specification of the new alert() function can be found in TradingView's PineScript Reference (www.tradingview.com), but there's nothing more than message= and freq= parameters. Nothing else is needed, it is very simple. Yet powerful :)
//////
Alert syntax in this script is prepared to work with TradingConnector. Strategy here is not too complex, but also not the most basic one: it includes full exits, partial exits, stop-losses and it also utilizes dynamic variables calculated by the code (such as stop-loss price). This is only an example use case, because you could handle variety of other functionalities as well: conditional entries, pending entries, pyramiding, hedging, moving stop-loss to break-even, delivering alerts to multiple brokers and more.
//////
This script is a spin-off from my previous work, posted over a year ago here: Some comments on strategy parameters have been discussed there, but let me copy-paste most important points:
* Commission is taken into consideration.
* Slippage is intentionally left at 0. Due to shorter than 1 second delivery time of TradingConnector, slippage is practically non-existing.
* This strategy is NON-REPAINTING and uses NO TRAILING-STOP or any other feature known to be causing problems.
* The strategy was backtested on EURUSD 6h timeframe, will perform differently on other markets and timeframes.
Despite the fact this strategy seems to be still profitable, it is not guaranteed it will continue to perform well in the future. Remember the no.1 rule of backtesting - no matter how profitable and good looking a script is, it only tells about the past. There is zero guarantee the same strategy will get similar results in the future.
Full specs of TradingView alerts and how to set them up can be found here: www.tradingview.com
Precise_SignalThis signal combines a portion of Chris Moody's 2014 SlingShot and my 2017 MTF Indicators. Both of our prior scripts over indicated Buy and Sell Points. This signal indicates a buy or sell point much less than our prior scripts did but with absolute precision.
I would say it is 100% accurate, but that is because I am yet to find a timeframe and symbol where the Buy signal failed to see the equity move up or the Sell signal failed to see the equity move down over the next 5 bars. I have tested 2000 charts so far. To be safe, I would rather state this indicator is accurate nearly 100% of the time.
The indicator is made up of 2 main portions and both of them have to agree on a buy or sell in order to indicate such with a vertical green or maroon bar beneath the chart. If there is a failure to agree, nothing is signaled.
Indicator 1 combines a stochastic of a 3 hour chart and a daily chart to determine when the stochastics are in agreement on direction. When there is agreement, both of them MUST cross from a buy state to a sell state and vice versa at exactly the same time. This is difficult to achieve and it is already rare for this occurrence to produce a signal. When a signal is produce it is combine with Chris Moody's 2014 SlingShot Indicator which conservatively determines Buy and Sell signals based on EMAs and market direction. Signals from his SlingShot are infrequent.
BUY Signal
When my MTF signals Buy at the same time that the SlingShot signals a Buy, a vertical green bar will appear in the window containing this script. The vertical bar is based on the close price of the equity and is only final when the close price is final. A BUY signal means the equity will move up potentially as early as the next bar and achieve a higher value from the close price on the signal bar.
SELL Signal
Likewise, a sell signal from the MTF at the same time as a sell signal from the SlingShot will create a maroon bar in the window containing this script. The vertical bar is based on the close price of the equity and is only final when the close price is final. A SELL signal means the equity will move down potentially as early as the next bar and achieve a lower value from the close price on the signal bar.
The default values for this script are hard-coded into this script. You can edit any of the value you would like to play with other timeframes, stochastic, and moving average lengths.
I have played with these values and have hard-coded the ones that are most accurate. Please let me know if you find others that work.
Hopefully this becomes an extra tool in your technical trading toolkit.
Stochastic with Outlier Labels/MTFTL;DR This indicator is an update to a simple stochastic ('Stoch_MTF' by binarytrader666) that provides a novel outlier highlighting feature
Improvements on stochastic:
1. Novel outlier highlighting that points out crosses that are the Nth consecutive cross or greater.
2. Allowing for multiple timeframes to be shown on the same chart
3. Highlighting/Labelling crosses and providing labels for alerts
A cross of the stochastics in the high or low zones establishes a trend. Successive crosses in the same region seem to indicate a continuation of that trend. The outlier functionality here provides a signal for when X number of crosses have been in the same trend, signaling further strength of that signal.
I also provided the necessary code for converting this to a strategy if you so wish at the bottom.
StochasticMore colorful than the built-in Stochastic.
My suggestion is to use it for checking divergences between K line with the price only, so I hide the signal D line as default, as the crossover between K line and D line, and the overbought and oversold area are not so reliable.
(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!
[MACLEN] HODL ZONE RENKO
PLEASE READ!
Trade at your own risk. Please read about renko charts before using this indicator. This indicator is for educational purposes only.
This Indicator is only valid in renko charts with 1 second timeframe. For BTCUSDT . With the traditional method and the size box of 80.
With this indicator we can detect zones of buy and sell. Even that is not recommended to use leverage, I use it to find an entry and use only small leverages. It could be also used to accumulate and HODL bitcoin .
Please, comment anything.
POR FAVOR LEER!
Tradea bajo tu propio riesgo. Por favor lee sobre las graficas renko antes de usar este indicador. Este indicador es solamente con fines educativos.
Este indicador es válido solamente en graficas renko con un timeframe de 1 segundo. Para BTCUSDT . Con cajas del método tradicional de un tamaño de 80.
Con este indicador podemos detectar zonas de compra y venta. A pesar de que no es recomendable usar apalancamiento, yo lo uso para encontrar entradas y solo uso apalancamientos pequeños. También podría usarse para acumular y holdear bitcoin .
Por favor, escríbeme cualquier duda o comentario.
G-Oscillator Strength v.1Hello this is my new indicator. Purpose of this indicator is to find the strength of the trend.
This indicator was developed by RSI(14) and Stochastic(50)
How to used
Red = RSI(14) & Sto(50) < 40
Lightblue = RSI(14) >= 50 and Sto(40) < 50
Darkblue = RSI(14) & Sto(40) >= 50
Green = Sto(40) >= 80
Yellow = RSI(14) < 50 and Sto(40) >= 50
Buy&Sell
Buy signal for this indicator is Lightblue to Darkblue
Sell signal is Green to Darkblue or Darkblue to Yellow
G-strength downThis is my so proud indicator.
I call is "G-stength down" purpose of this indicator is " one glance to see the power of trend "
I am not full time-trader, Im physiotherpist and im not have a lot of time to analyze the graph. I trade only stock and crypto and buy only.
This's indicator develop form RSI(14) and Sto(50)
How to use
RED : Bearish
YELLOW : Bullish is coming but it's so weak
BLUE : Strong bullish
GREEN : Extreme bullish, if this color is present you can held until the color change
** Buy signal for me is YELLOW and change to BLUE and Sell signal is Green change to BLUE or BLUE change to YELLOW**
Note : I dont know how to write adjust the opacity. Im sorry T_T
Good luck :D
High and Low Checker
GBPUSD / 3m
BTCUSD / 5m
This is an indicator used to know the tops and bottoms of the market.
The logic is simple.
1. find out whether the current price is above or below the past by a very slow stoch.
2. Find out if the RSI is overbought or oversold.
3. Combine these two conditions and find out if the current price is tops or bottoms than it was in the past.
Appropriate settings will vary depending on the market and the time frame. Try changing various settings!
It is also not useful in markets that are experiencing a very strong trend.
For this case, we have chosen to display overshoot.
日本語
これは相場の天井と底をスナイプするために作ったインジケーターです。
ロジックはいたってシンプルです。
1. 非常に期間の長いStochを使い現在の価格が、過去から見て上か下に位置するのかを判断します。
2. RSIの買われすぎ、売られ過ぎを判断します。
3. この2つを組み合わせます。価格帯が上に位置する場合買われ過ぎが有効になり、価格帯が下に位置する場合売られ過ぎが有効になります。
銘柄や時間軸によって適切な設定値が変わると思うので、色々と試してみて下さい。
また、非常に強いトレンドが発生している相場では基本的に役に立ちません。
その場合のために、オーバーシュート(×マーク)を表示するようにしているので、参考にして下さい。
SDev Adjusted StochasticDescription : This Stochastic variant will auto-adjust stochastic period based on volatility measured by standard deviation.
The idea behind it are in highly volatile market, %K period will be reduced to account for recent price range,
while in low volatility market, %K period will be increased to account less of the recent price range.
This idea is based on one of medium article written by Sofien Kaabar with slight modification on the adjusting logic implementation. Any ideas to further improve this indicator are welcome :)
Disclaimer:
I always felt Pinescript is a very fast to type language with excellent visualization capabilities, so I've been using it as code-testing platform prior to actual coding in other platform.
Having said that, these study scripts was built only to test/visualize an idea to see its viability and if it can be used to optimize existing strategy.
While some of it are useful and most are useless, none of it should be use as main decision maker.
Simple Bollinger Band and stochastic oscillator strategy for SPXThis is a very simple Bollinger Band strategy with stochastic oscillator added. Main trend is determined by Band breakout while (5,3,3) stochastic crosses is used for additional entries. Alert function is configured as "one alert for any events", so that free users can set up and get alert for every events in the script. The following code segment can be manipulated as your needs, by removing or keeping "//" comment slashes etc. Entries should be above/below the signal bars and 7-8 points should be regarded as first target, trail the left. Good luck !
signal = bbupcross or bbdowncross //or add_long or add_short
DMI Stochastic ToltecasModification of DMI Stochastic Indicator created by @usgears
- Added Crossing Up/Down Text Signal
- Added Crossing Up/Down Arrow Signal
- Added Crossing Up/Down Darts Signal
- Added Midline level
- Custom settings for oversold, midline and overbought levels to select a solid, dotted, or dashed line style.
- Added Background Color
Stochastic with Bollinger & EMAIn this script
I combined the various of the oscillator
Stochastic (STOCH) with BB (Bollinger Bands).
Each cut of K and D creates a mark (+) Red / green - accordingly.
As the Stochastic (K) crosses the BB base, a green / red point is formed accordingly.
As a sign it is possible to continue up / down.
I added EMA8 to K (style circles)
When the oscillator is above the EMA - it is possible that this is a clear sign of an increase.
Band 50 was also added to facilitate the calculations.
Logistic RSI, STOCH, ROC, AO, ... by DGTExperimental attemt of applying Logistic Map Equation for some of widly used indicators.
With this study "Awesome Oscillator (AO)", "Rate of Change (ROC)", "Relative Strength Index (RSI)", "Stochastic (STOCH)" and a custom interpretation of Logistic Map Equation is presented
Calculations with Logistic Map Equation makes sense when the calculated results are iterated many times within the same equation.
Here is the Logistic Map Equation : Xn+1 = r * Xn * (1 - Xn)
Where, the value of r is the key for this equation which changes amazingly the behaviour of the Logistic Map.
The value we have asigned for r is less then 1 and greater than 0 ( 0 < r < 1) and in this case the iterations performed with the maximum number of output series allowed by Pine is quite enough for our purpose and thanks to arrays we can easiliy store them for further processing
What we have as output:
Each iteration result is then plotted (excluding plotting the first iteration), as circles or line based on user preference
Values above and below zero level (0) are coloured differently to emphasis bull and bear power
Finally Standard Deviation of Array's Elements is ploted as line. Users may choose to display this line only
So where it comes the indicators "Awesome Oscillator (AO)", "Rate of Change (ROC)", "Relative Strength Index (RSI)", "Stochastic (STOCH)".
Those are the indicators whose values are assigned to our key varaiable in the Logistic Map equation forulma which is r
Further details regarding Logistic Map can found under the description of “Logistic EMA w/ Signals by DGT” study
Disclaimer:
Trading success is all about following your trading strategy and the indicators should fit within your trading strategy, and not to be traded upon solely
The script is for informational and educational purposes only. Use of the script does not constitute professional and/or financial advice. You alone have the sole responsibility of evaluating the script output and risks associated with the use of the script. In exchange for using the script, you agree not to hold dgtrd TradingView user liable for any possible claim for damages arising from any decision you make based on use of the script
CC STOCH RSI [Rogulabo]3 indicators in 1.
Included Indicators are:
- Correlation Coefficient
- RSI
- Stochastics
Basic usage of these indicators respectively are:
- CC value of 1 represents a perfect correlation, while a value of -1 represents an inverted correlation.
- RSI values above 70 is commonly overbought, whilst below 30 is oversold.
- Stochastics for describing the momentum and turning points of price swings.
Please recognize that these are simplified explanations.
Reasons for 3 in 1 assembly:
This indicator is intended to be used by students, and followers of Dan Takahashi
(a prominent educator of investing in Japan who is also a user of TradingView) .
Those who wants to use and learn with the same setup as Dan, would greatly benefit from this since,
the complex setting up process which can be a pain for beginners can be skipped with a simple click.
Every stylistic choice of color and placement were made to make it similar to the chart used by Dan.
Simple customizations are available such as:
- Changing color
- Changing the values
- Hide/show controls
Notes:
This is intended to be used alongside “EMA ICHI BB ” for the complete the setup.
Any questions, please refer to:
@rogulabo
==
高橋ダンさんが使用されてるチャートと同様のセットアップの為にご活用ください。
複数のインジケータをグループにしておりますので、無料版を使われてる方は効率よく使っていただけると思います。
また、“EMA ICHI BB ”どいうタイトルのインジケータも同時に公開しておりますので、セットアップを完成させたい方はこちらもご活用ください。
以下のインジケータを含みます。
・相関係数
・ストキャスティクス
・RSI
カスタマイズされたい方はご自由に値を変更ください。
ご質問は @rogulabo までよろしくお願いいたします。