Triple Stochastic RSITriple Stochastic RSI
As the name suggests, this indicator is a combination of three stochastic RSI indicators on three different time frames.
It will flash green when all three stochastics are in the lower range specified in the settings (signaling a possible bottom) and will flash red when all three stochastics are in the upper range(signaling a possible top). The bottom and top thresholds are user-configurable, as well as the timeframes for each stochastic and the standard stochastic settings.
Use this indicator on the lowest timeframe specified in the settings or you may get unexpected results.
Oscilador Estocástico
How to use Leverage and Margin in PineScriptEn route to being absolutely the best and most complete trading platform out there, TradingView has just closed 2 gaps in their PineScript language.
It is now possible to create and backtest a strategy for trading with leverage.
Backtester now produces Margin Calls - so recognizes mid-trade drawdown and if it is too big for the broker to maintain your trade, some part of if will be instantly closed.
New additions were announced in official blogpost , but it lacked code examples, so I have decided to publish this script. Having said that - this is purely educational stuff.
█ LEVERAGE
Let's start with the Leverage. I will discuss this assuming we are always entering trades with some percentage of our equity balance (default_qty_type = strategy.percent_of_equity), not fixed order quantity.
If you want to trade with 1:1 leverage (so no leverage) and enter a trade with all money in your trading account, then first line of your strategy script must include this parameter:
default_qty_value = 100 // which stands for 100%
Now, if you want to trade with 30:1 leverage, you need to multipy the quantity by 30x, so you'd get 30 x 100 = 3000:
default_qty_value = 3000 // which stands for 3000%
And you can play around with this value as you wish, so if you want to enter each trade with 10% equity on 15:1 leverage you'd get default_qty_value = 150.
That's easy. Of course you can modify this quantity value not only in the script, but also afterwards in Script Settings popup, "Properties" tab.
█ MARGIN
Second newly released feature is Margin calculation together with Margin Calls. If the market goes against your trades and your trading account cannot maintain mid-trade drawdown - those trades will be closed in full or partly. Also, if your trading account cannot afford to open more trades (pyramiding those trades), Margin mechanism will prevent them from being entered.
I will not go into details about how Margin calculation works, it was all explainged in above mentioned blogpost and documentation .
All you need to do is to add two parameters to the opening line of your script:
margin_long = 1./30*50, margin_short = 1./30*50
Whereas "30" is a leverage scale as in 30:1, and "50" stands for 50% of Margin required by your broker. Personally the Required Margin number I've met most often is 50%, so I'm using value 50 here, but there are literally 1000+ brokers in this world and this is individual decision by each of them, so you'd better ask yourself.
--------------------
Please note, that if you ever encounter a strategy which triggers Margin Call at least once, then it is probably a very bad strategy. Margin Call is a last resort, last security measure - all the risks should be calculated by the strategy algorithm before it is ever hit. So if you see a Margin Call being triggred, then something is wrong with risk management of the strategy. Therefore - don't use it!
Stochastic & RSIThis script is a simple extension of the Built-In Stochastic RSI that also plots the RSI and prints the values of ATR and ADX of the last bar of the current timeframe to a small table in the corner.
The script can be used to define the entry for a trade when the stochastics crossed and RSI is below or above 0.50 (for going long or short).
OANDA:BTCUSD
I like to use the Stochastics and RSI indicators for pullback strategies, and with this inidcator you dont have to add both indicators to your setup. The ATR can be used to define the value of your stop-loss and the ADX (e.g. > 25) give you a hint for the strength of the current trend.
Stochastic MFIDue to some similarity of the Relative Strength Index(RSI) and Money Flow Index(MFI), I thought of creating a Stoch MFI inspired by the Stoch RSI.
- can be used similar to the Stoch RSI
- useful for pullback during trending markets and for S&R trading during ranging markets
TAYOR!
DMI With Crosses (MyNewTrade)Directional Movement Indicator:
+DI and -DI
I changed the color of the bar bars according to the crossed of +DI and -DI . It helps us to have an idea of whether the trend is continuing or not.
+DI crossover to -DI barcolor is Aqua, if not bar color is Red.
It also helps us to find the lowest and highest points of the graph according to the positions of Adx +DI and -DI .
It gives warnings at the lowest and highest points, which helps us to detect the direction of the trend.
Stochastic RSI - DurbtradeDurbtrade Stoch RSI -
1) Stoch RSI
A) The K line can be customized to change color based on vertical direction.
B) The space between K line and D line can be filled with a color depending on whether K line is above or below the D line.
C) There are color-coded, cross-over and cross-under background fills, to signal when the K line crosses the D line.
D) K line is drawn in front of D line (D line is drawn behind K line).
E) Default values : K = 3, D = 4, RSI Length = 14, Stoch Length = 14
2) Horizontal Lines
A) Horizontal lines can be drawn automatically, so you don't have to draw them, and they don't extend past the current bar.
B) There are 11 customizable horizontal lines,
and each line is set to non-customizable increments (zero, 10, 20, 30, 40, fifty, 60, 70, 80, 90, hundred).
C) The 11 lines are divided into 2 groups:
a) 4 PAIRS of lines WITH fill options (10/90, 20/80, 30/70, 40/60... 8 lines total), and
b) 3 INDIVIDUAL lines WITHOUT fill options (zero, fifty, hundred).
D) The 4 fills give you the option to fill the space between each pair with a customizable color and opacity,
regardless of whether the lines themselves are drawn or not.
(all default values are what I feel work best for this indicator...
and initially, only the zero, fifty, and hundred lines are drawn automatically .
You may add the other lines if you choose to, by adjusting the opacity to your liking).
3) Conclusion
A) As with my previous indicators, this one maximizes information, color, discernment, clarity, and customization.
B) It is optimized for your ability to be able to easily customize the indicator according to your preferences...
for use on your own personal television, laptop, or cellular phone screen setup... and on all chart zoom levels and layouts.
C) Please feel free to comment your thoughts, critiques, or suggestions. They are all helpful!
D) Check out my previous pine script indicators if you like this one. They work really well together.
E) I hope that you find this script useful.
F) Enjoy!
//Durbtrade
Premier Stochastic Oscillator (PSO) [andre_007]This is a improved version of Premier Stochastic Oscillator (PSO), coded by "LazyBear".
"The indicator was first introduced by technical analyst Lee Leibfarth in the August 2008 issue of the journal Technical Analysis of Stocks & Commodities".
Inprovements:
The script was update to version 4 of PineScript.
Added support for diferents times frames.
For example, now it's possible to stay in intraday and at same time see a weekly version of this indicator.
Possibility to customize the thresholds.
Introduction to indicator:
"Stochastic oscillators have long been used to help traders and investors identify areas where trend changes are likely.
Leibfarth developed the PSO to take advantage of a standard stochastic oscillator's strengths while enhancing it to become more reactive to market activity.
The result is a faster indicator that provides earlier signals for potential trend changes".
More info:
www.investopedia.com
Stochastic RSI w/ Crossover Alerts (by WJ)NOTE:
// STOCH RSI CODE TAKEN FROM DEFAULT INDICATOR
// I HAVE ONLY MADE SOME ADJUSTMENTS FOR VISUAL AID
// I MADE THIS FOR MY OWN USE BUT HAVE DECIDED TO PUBLISH AND SHARE IN CASE ANYBODY WANTS TO USE IT
This is the normal default built-in Stochastic RSI indicator which I have added some stuff for visual aid:
Added middle line (50)
Stoch RSI background turns green when K line crosses D line UPWARDS, K line is below the 50 level, and price is above 200 EMA
Stoch RSI background turns red when K line crosses D line DOWNWARDS, K line is above the 50 level, and price is below 200 EMA
Alert notification on the crossover candle with background colour change conditions met
Crypto RSI Oscillator [marksc]This is my main indicator of pricing trend reversals.
It consists of two main indicators:
1. The green/red oscillator shows a general rising (green) or falling (red) price trend over a smoothed average of a number of periods (length).
2. The yellow "OverUnder Line" shows the Relative Strength Index adjusted price trend in real time.
How to use it:
- You will need to adjust the Overbought and Underbought (green and red) horizontal lines such that the yellow line rarely peaks past them. This will depend on historical data and the time-scale you're using. So if you configure it on a 15minute timescale and then switch to hourly the lines will need-readjusted. This is because the yellow line's movement is "Relative" to a number of periods of time in the timescale.
Predicting Pricing Reversals:
Adjust the Overbought and Underbought lines such that, in the past, the yellow line has rarely peaked over or under them.
When the yellow line peaks over or under one of the Over/Underbought lines again the price will likely make a strong reversal.
(Conversely, if the yellow line is not peaking but staying mostly flat or only slightly angled then the pricing trend is likely to continue.)
Predicting "Pump and Dumps":
If the price makes a sharp reversal while the yellow line was far from the over/underbought lines (ie. the yellow line was near the center), this indicates that a larger purchase or sale than has happened in a long time just happened. In most cases the price will quickly correct back to where it was because this sharp price reversal was was abnormal over the length*period used in the RSI calculation.
[GJ]IFRSITHE INVERSE FISHER TRANSFORM STOCH RSI
HOW IT WORKS
This indicator uses the inverse fisher transform on the stoch RSI for clear buying and selling signals. The stoch rsi is used to limit it in the range of 0 and 100. We subtract 50 from this to get it into the range of -50 to +50 and multiply by .1 to get it in the range of -5 to +5. We then use the 9 period weighted MA to remove some "random" trade signals before we finally use the inverse fisher transform to get the output between -1 and +1
HOW TO USE
Buy when the indicator crosses over –0.5 or crosses over +0.5 if it has not previously crossed over –0.5.
Sell when the indicator crosses under +0.5 or crosses under –0.5 if it has not previously crossed under +0.5.
We can see multiple examples of good buy and sell signals from this indicator on the attached chart for QCOM. Let me know if you have any suggestions or thoughts!
Stochastic RVIBased on the Stochastic RSI but uses RVI (Relative Volatility Index) as source. Another great tool for finding market lows and entry points. This oscillator is also good for finding accurate diversions.
StochasticLSMAIntroducing the worlds first StochasticLSMA. A powerful Stochastic that shows trends and highlights market tops/bottoms. This may be the ultimate tool in locating tops and bottoms on any timeframe.
How to tune the settings:
Depending on what chart you use and what timeframe you are on it may be necessary to dial in the settings to correctly locate the tops and bottoms you wish to trade. Here are some settings to try:
32 < Finds longer term Tops and bottoms.
21 < Great for longer term tops and bottoms on hourly and daily charts.
19 < If 21 is not accurate enough.
17 < If 19 is not accurate enough.
13 <Great setting for short to mid range tops and bottoms and lower timeframes. (default)
11
9
6 < Excellent for finding shorter term tops and bottoms on all timeframes.
*Changing the “Stochastic Price” setting to “hl3” or “low” can help hone in on lows and highs.*
It can be very useful to to use 2 StochasticLSMA indicators with different settings. Here we have two examples how to use multiple indicators on the ETHUSD Daily chart. One set on 13 and the other on 6. A trader can enter on the 6 length indicator and exit on the 13. It also shows how it has the potential to filter out “bad entries” by matching the bottoms.
Example of different length settings.
Alerts:
Overbought: K line crosses over overbought line (Red Dot)
Oversold: K line crosses under oversold line (Green Dot)
Buy Signal: K line is under oversold line and trends up (Green Up Arrow)
Sell Signal: K line is over oversold line and trends down (Red Down Arrow)
Last Chance Sell Signal: As K line leaves overbought line (Yellow Dot)
Last Chance Buy Signal: As K line leaves oversold line (Yellow Dot)
Example of alert signals and trigger enabled in settings
Buy sell waitHello, we need to open a trade in the opposite direction of the trend for this indicator. If there is a green line at the bottom, there is an uptrend. In this trend, the first exclamation mark is shorted. If there is a red line at the bottom, the trend is reversed. In this trend, a reverse transaction is opened to the first tick. In short, it is used to gain profit with small margins against the trend. It generates signals according to the stochastic oscillator. We are waiting in the question mark symbol. We are neither buying nor selling.
Stochastic RSI MTF - 6 TimeframesDisplays Stochastic RSI from 6 different timeframes.
Default timeframe settings: 5min, 15min, 30min, 1hr, 4hr, 1day.
(JS) Triple StochasticSo I ended up adding a ton of stuff to my prior Double Stochastic script which you can see here .
The concept of the Double was to smooth out the existing Stochastic by applying a Stochastic to the existing Stochastic (hence the Double). My concept for the Triple Stochastic is much different. It combines a regular stochastic, stochastic RSI, and the double stochastic to get a smoothed output based on all 3.
Also - since I love being able to see a Squeeze (see my Squeeze Pro indicators - Squeeze Pro 2 & Squeeze Pro Overlays ) I added the Squeeze to the Stochastic (the dots). If you're unfamiliar with how a Squeeze works, or what it is, check out my links for explanation. A quick explanation however is that the Squeeze is an indicator that was invented by John Carter that detects price compression before a big move out of a range. This is done by using Bollinger Bands and Keltner Channels, the BB shrink inside the KC. The color of the dots represent the depth of the BB in the KC, white (or black) being the lightest squeeze, red being the standard squeeze, and yellow being the strongest squeeze. Now on to the indicator:
The first thing you'll notice is the options available for the type of Stochastic you'd like to use:
Standard : This is a regular Stochastic
Stochastic RSI : This is the standard Stochastic RSI
Double : This is the Stochastic on top of a Stochastic from the prior version
Triple : This is simply an average of all 3 of the above combined together
(Top indicator shows the Triple Stochastic)
The options "K", "D", and "Smooth" are the settings from a regular Stochastic used to set up the type of Stochastic you choose to use.
Now let's say you're not sure how one type performs compared to another, or you like the quickest momentum change but also like to see the smoothest trend, or you want to use the same types of Stochastic and watch for them to cross like moving averages - for these reasons I added the ability to add a second Stochastic for comparison.
(2nd indicator shows a fast and slow Triple Stochastic together)
Quite obviously, the "K 2", "D 2", and "Smooth 2" are what is used in order to set the parameters for the second Stochastic.
Now another thing I added was the option to replace the regular Stochastic and instead look at the distance between the K and D. By turning off "Use K% and D%" you get to see this in action. To put it simply, a cross above zero would indicate a positive Stochastic crossover, and a cross below zero would represent the opposite. There's also an option titled "SMA Length using Difference" which, to smooth this out a bit, allows you to apply a moving average to the distance. By setting it at 1 you'd see the actual distance between K and D.
(3rd indicator shows the K and D distance used as a plot)
Another thing I wanted to do was add a different type of background that wasn't based on the indicator itself. I decided to use ADX & DMI which is a great way to determine the trend. When you select "ADX/DMI BG" the BG colors will change from being based on the indicator to being based on ADX and DMI.
(The 3rd indicator also shows the ADX/DMI BG being used).
And now finally the last feature I decided to add takes us back to the Squeeze. Essentially it is just the Stochastic shown through the lens of Squeeze momentum, as I ended up plugging the Stochastic output into the Squeeze momentum formula to create an oscillator. By selecting "Use Oscillator" you will see this in action as well.
(Bottom indicator shows the oscillator addition)
Stochastic(4,3,2) Spread By Rajv1: This indicator plots a spread of %K - %D of the stochastic(4,3,2).
ModestPips Triple StochasticThis script was created to provide confluence when entering trades. Trades are entered as scalp trades with trailing stops, that sometimes turn into swing trades.
This script is composed of three elements:
EMA Cross Indicator
Money Flow Indicator Oversold/Overbought
Triple Stochastic - The Core Component of this script
EMA Cross:
The EMA Cross provides a rough idea of trend direction. The 50 horizontal line will flash green/red depending on the current EMA crossover status.
The EMA values can be changed depending on your preference.
This indicator is not used for entries. It only provides confluence for entries.
Money Flow Indicator:
The money flow indicator will flash green/red in the background when it is oversold/overbought. It could be referred as an early signal before a potential big move.
Not used for entries, just as a warning to get ready for a potential big move.
Triple Stochastic:
This is the core and magic of the script. This indicator uses the 3 stochastic to provide signals for trade entries.
The 3 stochastics use different calculations to provide the differing length of the oscillators.
The slow stochastic will flash red when in overbought/oversold areas.
Using these 3 stochastics can provide 3 types of entries.
Trade Entries:
Extreme Opposite Entry - Entry when slow stoch is red and the super-fast stoch is on the opposite extreme.
Rebound Entry - Entry upon reversal signal where super-fast and fast stochs trigger a move in the opposite direction and then retrace to retest the slow stoch.
Continuation Entry - Entry during a trending market when super-fast and fast stochs retrace to retest the slow stoch.
This indicator can be used with any timeframes, although 30m is where I find the cleanest signals.
Some examples are provided on the chart, I will provide detailed explanations for ideal signals below.
STOCHASTIC+Stochastic Oscillators are used to determine Overbought and Oversold Market conditions. This Stoch is set to a quicker Length then normal with an RSI that changes color depending on Momentum. When RSI is Overbought you well get a red shadow to indicate the market is setting up for a sell. When the RSI is Oversold you will get a green shadow to indicate the market is setting up for a buy
cheesywedges MTF MACD+Stoch+Ichi+PSARThis is a heatmap created to show 4 key indicators MACD, Stochastic, Ichimoku and PSAR. Adjust TF accordingly. Default is incremental by 45 minutes.
One advantage is you can see as the indicator current candles change from green to red or the other way round as the current trend changes. Eg. MACD attempting to cross Signal and the candle will flicker red to green and you can see it happen on multiple TF.
Standard Settings
PSAR - Start, Increment and Max Value
Stochastic - K,D,Smooth, Upper and Lower
MACD - Fast, Slow and Smooth
Ichimoku - Conversion Line, Base Line Periods, Lagging Span and Displacement
Advanced Settings (MACD)
MACD/Signal Crossover , eg. Long = MACD > Signal
MACD/Signal + Histogram Crossover , eg. Long = MACD > Signal and Hist > 0 and Signal > 0
MACD/Signal Crossing, eg. Long = MACD > Signal and previous MACD < previous Signal
MACD/Signal + Histogram Crossing, eg. Long = MACD > Signal and previous MACD < previous Signal and Hist > 0 and Signal > 0 and previous Hist > previous Signal
For normal usage, just use MACD/Signal Crossover
Recommended Settings
Ichimoku 20, 60, 120, 30
If customized enhancement required drop a message and I'll see what I can do.
FUERSTUses Normalized Price Oscillator and Stochastics and combines them as an ADX weighted measure.
During low trend intensity Stochastics gets higher weighted than Price Oscillator, and vice-versa in times of high trend-intensity.