(JS) Interchanging ATR & VWAP BandsOkay so this is pretty simple, but I think it's a great tool for day trading especially. I just took the default VWAP and Keltner channel scripts and combined them together.
The top option allows you to choose which one you'd prefer to use, "Use ATR instead of VWAP" .
The next options, "ATR Source", "KC Length", and "ATR Length" are the parameters for the ATR Bands.
"Number of Bands" allows you to choose how many bands you'd like to be on display (you can choose 1-8).
"Use Expoential MA" and "Band Style" are more default parameters from Keltner Channels used to set up the ATR Bands.
The "ATR Bands" are just stacked Keltner Channels separated by 1 ATR each, whereas the "VWAP Bands" are separated by standard deviation just like the default script from Trading View.
In these example chart, you can see the weekly VWAP with 8 deviation bands and 5 ATR bands with Keltner Channels.
Oversold
Overbought/Oversold BandsThe basis of this script is my "Hybrid Overbought/Oversold Detector" which uses many different oscillators to confirm overbought/oversold conditions. The main idea is to generate higher and lower bands around the desired moving average using an average of the volatility (ATR) and the standard deviation (StDev), of course by interfering detected overbought/oversold condition.
Simply put, the more the asset become overvalued/undervalued, the tighter the channel would be and every breakout of the bands announces a return back into the channel in near future.
By default, the multiplier of the standard deviation in the indicator settings is set to 2 which means only less than 5% of price actions would appear outside the bands. Also the default multiplier of the ATR is set to 3 which leads to some similar result, but to achieve more strict results setting StDev multiplier to 3 and ATR multiplier to 4 would be useful.
The type of the central moving average could be picked up from 6 different types which are:
- SMA (Simple Moving Average)
- EMA (Exponential Moving Average)
- HMA (Hull Moving Average)
- LSMA (Least Squares Moving Average)
- TMA (Triangular Moving Average)
- MAEMA (My Personalized Momentum Adjusted EMA)
The latter one leads to a useful combination of the channel with the momentum.
Also the script has multi-timeframe features and the user could apply calculations from other time frames to the current chart.
Hope the idea would be helpful!
Dziwne MFI Overlay (with highlight)It is simply your traditional MFI , except that your 50 line became the actual price.
Why and how could it be useful? This indicator helps to spot more easily and efficiently divergences .
You could also use it for trend reversals as you usually do with your 50 line, but I would suggest to set a higher length for the MFI, like 155 or something like that.
RSI OverTrend Strategy (by Marcoweb) v1.0Hi guys, just adapted the CCI Level zero Strategy with the Over Bought and Over Sold levels provided by the Relative Strength Index. The strat is opening a long position at RSI Oversold 30 Level closing it at RSI Overbought 70 Level flipping the position.
Enjoy :D
CCI Overbought & OversoldThe Commodity Channel Index (CCI) is a momentum-based oscillator used to help determine when an investment vehicle is reaching a condition of being overbought or oversold
Developed by Donald Lambert, this technical indicator assesses price trend direction and strength, allowing traders to determine if they want to enter or exit a trade, refrain from taking a trade, or add to an existing position. In this way, the indicator can be used to provide trade signals when it acts in a certain way.
KEY TAKEAWAYS
The Commodity Channel Index (CCI) is a technical indicator that measures the difference between the current price and the historical average price.
When the CCI is above zero, it indicates the price is above the historic average. Conversely, when the CCI is below zero, the price is below the historic average.
The CCI is an unbounded oscillator, meaning it can go higher or lower indefinitely. For this reason, overbought and oversold levels are typically determined for each individual asset by looking at historical extreme CCI levels where the price reversed from
This script calculates Commodity Channel Index (CCI) value and fills background of price action chart with colors:
Green zone indicates oversold zone where you can enter position
Red zone indicates overbought zone where a positions should be closed
Combo Backtest 123 Overbought/Oversold This is combo strategies for get a cumulative signal.
First strategy
This System was created from the Book "How I Tripled My Money In The
Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
The strategy buys at market, if close price is higher than the previous close
during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50.
The strategy sells at market, if close price is lower than the previous close price
during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
Second strategy
Simple Overbought/Oversold indicator
WARNING:
- For purpose educate only
- This script to change bars colors.
RSI Colour OverlayApplies Blue or Pink colour overlay to candles when RSI is at or over the predefined parameters. These parameters are adjustable in the settings area of the indicator. Please note RSI does not guaranteed a pivot point in price action and the colour overlay should only be used as an indication or condition not a call to buy or sell alone. The colour overlay is a useful prompt to review price action. I hope this helps and good luck with your analysis and trading.
RSI Support & Resistance by DGTRSI Sᴜᴘᴘᴏʀᴛ & Rᴇꜱɪꜱᴛᴀɴᴄᴇ ʙʏ DGT
This experimental study attempts to translate Relative Strength Index (RSI) threshold levels of oversold/overbought and bull/bear zones as probable Price Support and Resistance levels
█ OPTIONS
Support & Resistance Levels , the main aim of the study. Level calculations are based on Relative Strength Index (RSI) threshold levels of oversold/overbought and bull/bear zones, where all threshold values are customizable through the user dialog box. Background of the levels can be colored optionally
RSI Weighted Colored Bars and/or Mark Overbought/Oversold Bars , Bar colors can be painted to better emphasis RSI values. Darker colors when the oscillator is in oversold/overbought zones, light colors when oscillator readings are below/above the bull/bear zone respectively, and remain unchanged otherwise. Besides the colors, with “Display RSI Overbought/Oversold Price Bars” option little triangle shapes can be plotted on top or bottom of the bars when RSI is in oversold/overbought zones
Example usage of the study with explanations
█ OTHERS
More regarding Support & Resistance concept (definition, identifying levels, trading S&R, etc) you are kindly invited to check my previous publication
Price Action - Support & Resistance by DGT
More regarding Relative Strength Index (RSI) and Relative Strength of Volume Indicators , please check Relative Strength of Volume Indicators by DGT
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
Scalping using RSI 2 indicator with TSLThis strategy implements a simply scalping using the RSI (calculated on two periods), the slopes of two MAs ( EMA or SMA ) having different lengths (by default, I use 50 and 200).
A trailing stop loss (%) is used.
Entry conditions:
.) Fast MA > Slow MA and Price > Slow MA and RSI < Oversold Threshold ------> go Long
.) Fast MA < Slow MA and Price < Slow MA and RSI > Overbought Threshold ------> go Short
Exit conditions:
.) Long entry condition is true and (close >= TP or close <= TSL ) ----> close short position
.) Short entry condition is true and (close <= TP or close >= TSL ) ----> close long position
The strategy performed best on Bitcoin and the most liquid and capitalized Altcoins but works excellent on volatile assets, mainly if they often go trending.
Works best on 3h - 4h time frame.
There's also an optional Volatility filter, which opens the position only if the difference between the two slopes is more than a specific value, which can be set in the study inputs. The purpose is not opening positions if the price goes sideways and the noise is way > than the signal.
Note:
.) the RSI length is 2;
.) the oversold Threshold is 90%;
.) the overbought Threshold is 10%;
.) by default, the trailing stop loss per cent is 1%;
.) by default, the fast MA length is 50;
.) by default, the slow MA length is 200;
.) by default, the MA used is EMA.
Cheers.
Scalping using RSI 2 indicator with TP and TSLThis study implements a simply scalping using the RSI (calculated on two periods), the slopes of two MAs (EMA or SMA) having different lengths (by default, I use 50 and 200).
A take profit (%) and a trailing stop loss (%) are used.
Entry conditions:
.) Fast MA > Slow MA and Price > Slow MA and RSI < Oversold Threshold ------> go Long
.) Fast MA < Slow MA and Price < Slow MA and RSI > Overbought Threshold ------> go Short
Exit conditions:
.) Long entry condition is true and (close >= TP or close <= TSL) ----> close short position
.) Short entry condition is true and (close <= TP or close >= TSL) ----> close long position
The strategy performed best on Bitcoin and the most liquid and capitalized Altcoins but works excellent on volatile assets, mainly if they often go trending.
Works best on 3h - 4h time frame.
There's also an optional Volatility filter, which opens the position only if the difference between the two slopes is more than a specific value, which can be set in the study inputs. The purpose is not opening positions if the price goes sideways and the noise is way > than the signal.
Note:
.) the RSI length is 2;
.) the oversold Threshold is 90%;
.) the overbought Threshold is 10%;
.) by default, the take profit per cent is 0.5%;
.) by default, the trailing stop loss per cent is 0.5%;
.) by default, the fast MA length is 50;
.) by default, the slow MA length is 200;
.) by default, the MA used is EMA.
Cheers.
RSS - RSI(OB/OS)This indicator draws a visual RSI signal on to your chart. You can use it to set RSI alerts when the market enters an extreme RSI condition.
Chande Momentum Oscillator - Alerts and RegionsIt seemed weird to me that the default Chande didn't have overbought and oversold regions, despite them being described for Chande Momentum and working very well. So I added the lines and alert conditions. I've used this to very good results in my day trading.
My strategy involved 4 timeframes of candlestick, each with 4 timeframes of Chande overlaid. Candlesticks are 5 min, 20 min, 80 min, 320 min and Chandes are x1, x2, x4 and x8 of the relevant time zone. Give it a shot. Use the 5 min Chande as Buy and Sell signal with the other timeframes for trend confirmation. You may get a lot of extra alerts with this setup, but it's almost impossible to really miss an opportunity if you use it right. It will take up all your free time though, as a warning. Using this strat made me go crazy.
Use the chande crossing over the lines as the signal, not just being in the region, as that will make you buy early.
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!
[JRL] Pivot Regression OscillatorIntroducing the Pivot Regression Oscillator. This oscillator uses a similar formula to the Stochastic Oscillator. However, instead of comparing the closing price to the lowest price of a period, it compares the distance between current price and the current pivot point. By basing our oscillator on pivot levels, we incorporate a much more relevant and consequential price point around which to base our comparisons.
The indicator can give reliable overbought and oversold signals, and it plots two exponential moving averages as output, which provides crossover signals that can be used to help time trades.
The Pivot Regression Oscillator can be effective for timing re-entries into a trend and seems to be able to avoid some of the false signals of other indicators.
Let me know if you find this useful. Cheers!
[blackcat] L1 MACD with Overbought and Oversold DetectionLevel: 1
Background
This MACD is designed with unique oversold and overbought detections, which you may not sell or buy immedidately. You may need to watch the trend movements and decide to buy or sell on current or next goldcross and deadcross respectively.
Function
Add oversold and overbought detections for MACD to locate proper entry point.
Key Signal
diff--> MACD fast line
dea --> MACD slow line
macdhisto --> MACD histogram
overbought --> overbought signal
oversold --> oversold signal
Pros and Cons
It assits you to locate a rough zone for overbought and oversold in classic MACD indicator. Classic MACD indicator does not have this function.
Remarks
Since we cannot look into the future, so it does not inform you on exact entries but alerts of current or next cross may be a good opportunity.
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.
Non-Rescaled RSI█ OVERVIEW
Relative Strength Index is a momentum oscillator developed by J. Wilder. The original version of RSI rescaled the relative strength measurement to range. While the rescaling is useful for readability, This non-rescaled version tells the exact average relative strength of the movement for the past period, and give another way to put the relative strength reading into context of current market condition.
█ Description & How To Use
1. The (+/-) in relative strength value indicates the direction
Example 1: Relative Strength of 2.33 means average gain is 2.33 bigger than average loss for the past period (Equivalent to RSI 70)
Example 2: Relative Strength of -2.33 means average loss is 2.33 bigger than average gain for the past period (Equivalent to RSI 30)
Example 3: Relative Strength of 0 means average gain is equal to average loss for the past period (Equivalent to RSI 50)
Look at comparison below:
2. You can use it exactly how you would use RSI: Overbought/Oversold state, Divergence, Trend identification, Failure Swings etc..
█ Features
- Overbought/Oversold line still maintainable as standard RSI level (70,30) in user input screen. The script will recalculate and plot the ob/os level accordingly
- Value Label to indicate the RSI and RS value
- Custom Gradient Color Scheme
█ Limitation
The Relative Strength absolute value is capped at 20 to avoid ratio value too big(or too small). This is enough to get accurate equivalent of RSI reading between 5-95
█ Disclaimer
Past performance is not an indicator of future results.
My opinions and research are my own and do not constitute financial advice in any way whatsoever.
Nothing published by me constitutes an investment/trading recommendation, nor should any data or Content published by me be relied upon for any investment/trading activities.
I strongly recommends that you perform your own independent research and/or speak with a qualified investment professional before making any financial decisions.
Screener - Mean Reversion Channel█ OVERVIEW
This is Screener script for Mean Reversion Channel Indicator
█ Description & How To Use
The screener works by scanning through up to 40 symbols and list down symbols that are currently within Overbought/Oversold Zone as defined by Mean Reversion Channel indicator.
The Overbought/Oversold Zone are further categorized and sorted by:
Strong : Indicated by "(Strong)" next to the symbol name
Normal : Indicated by the absence of "(Strong)" or "(Weak)" next to the symbol name
Weak : Indicated by "(Weak)" next to the symbol name
Notes: Refer to chart above to see how the Zone are categorized.
Notes: If the screener displays "Nothing Interesting". It simply means none of the screened assets are within the Overbought/Oversold Zone.
█ Features
- Scan up to 40 symbols at a time (By default, no asset is define. Once configured all the symbols you required, remember to save as default to save you from pain of configuring it again in the future)
- Options to scan by zones
- Custom Timeframe
█ Limitation
Due to multiple use of security() function required to call other symbols, expect the screener to be slow at certain times
█ Disclaimer
Past performance is not an indicator of future results.
My opinions and research are my own and do not constitute financial advice in any way whatsoever.
Nothing published by me constitutes an investment recommendation, nor should any data or Content published by me be relied upon for any investment/trading activities.
I strongly recommends that you perform your own independent research and/or speak with a qualified investment professional before making any financial decisions.
Any ideas to further improve this indicator are welcome :)
Credit: QuantNomad for his script idea on custom screener
Everything RSIThis indicator includes:
RSI Candles set to the default 14 length (un check Borders in the Style tab to see the candlesticks better)
I like using the wicks as an early warning for a possible trend change, which is generally in the opposite direction of the wicks.
It's also easier for me to draw trend lines using the RSI Candles vs the rsi plot line.
40 ema of the RSI Candles
2nd RSI set to the 20 length , which plots just inside the wicks of the RSI Candles. This RSI also highlights Oversold and Overbought levels.
I sometimes leave the RSI Candle Borders checked and use the 20 RSI plot with the wicks of the RSI Candles
Signals to look for Short or Long opportunities , which use the 5 sma of the RSI Candles crossing under the overbought and over the
oversold levels. If you'd like to plot the 5 sma, remove the // at the beginning of the code on line 72.
3nd RSI set to the default 14 length which can be set to a different timeframe as the current chart. Default setting is the 1h.
This RSI plots a + at the top of the indicator when it's above the 50 level and an x at the bottom of the indicator when it's below the 50 level.
For me, this is just a visual aid when I'm scalping on lower timeframes.
If the 1h RSI is above the 50 level, I focus on long scalps. If the 1h RSI is below the 50 level, I focus on short scalps.
RSI Cloud which is formed by filling in the area between the 14 ema of both the 7 RSI and 28 RSI.
I used part of @FnM_Capital 's Trend-Sniper script for my RSI Candles. Thank you! You're extremely talented and deserve all of the credit for your work.
I'd also like to thank @SeanNance for answering all of my random coding questions!!!
I've added the indicator to the example twice to show a couple of the ways I view the RSI's.
The top indicator shows the RSI Candle Borders "un checked" and without the 2nd RSI plot.
The bottom indicator shows RSI Candle Borders "checked", using 2nd RSI plot with the RSI Candle Wicks.
Mean Reversion Channel - (fareid's MRI Variant)Description :
Mean Reversion Channel objective, based on Mean Reversion theory ( everything has a tendency to revert back to its mean), is to help visualizing:
Inner Channel -> Dynamic Support and Resistance
Outer Channel -> Overbought/Oversold Zone which may signal consolidation phase or potential reversal due to unsustainable move
Details on some of the filtering type used for mean calculation can be read in Ehlers Technical Papers: "Swiss Army Knife Indicator" and/or his book "Cybernetics Analysis for Stock and Futures"
Disclaimer:
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.
Any ideas to further improve this indicator are welcome :)
Triple RSIThis idea behind this indicator was to show an un cluttered view of the RSI on 3 different timeframes. The RSI for the current chart highlights Lime/Red when it crosses the Overbought and Oversold levels, which are editable in the Inputs tab. RSI 2 defaults to the 1h timeframe and prints a lime dot at the top of the indicator when it's above the 50 level and a Red Dot at the bottom of the indicator when it's below the 50 level. It can also be viewed as a plot line that changes color when it's above or below the 50 level. RSI 3 defaults to the 4h timeframe and prints a blue square at the top of the indicator when it's above the 50 level and an orange square at the bottom of the indicator when it's below the 50 level. It also can be viewed as a plot line that changes color when it's above or below the 50 level.
I've added the indicator multiple times to show a few of the different viewing options, with the default settings at the very bottom.
G-RSI&EMA channel v.1This my 2nd indicator : It's just a Strenghtening of trend channal
If price can come up on the green line it's mean price is side way or maybe bullish
and if price can come up on RSI (14)50 and EMA50 it have problaby to bullish trend
If the price have blue ball it's mean crazy strong bullish trend
If the price have red ball it's mean crazy strong bearish trend
you can use my 1st script together : 1st is " G-Bollingerbands Volatility breakout "
My 1st script detect the price begin to have volatility
My 2nd scrit detect the trend
Goodluck :D
PS: My 2nd script develop from someone in tradingview RSI script i'm sorry I can't remember but thank you very much.
[blackcat] L2 VWAP CCI Trading SystemLevel: 2
Background
Volume-Weighted Average Price (VWAP) is a trading benchmark used by traders that indicates the average price that a security has traded for throughout the day based on volume and price. This is important as it gives traders insight into the trend and value of a security.
The Commodity Channel Index (CCI) indicator was created to identify bullish and bearish market cycles, as well as to define market turning points and the strongest and weakest market periods. CCI was developed for commodities and quickly found application in other markets, including forex.
Function
blackcat L2 VWAP CCI Trading System is an innovative indicator that combines vwap and cci indicator together. Not only long and short entries can be disclosed, but also the overbought and oversold zones are clearly observed.
Key Signal
cci ---> vwap cci indicator output
long --> long entry condition
short --> short entry condition
backtest --> indicator backtest scheme "NLX-L3 Backtest" required input source for strategy backtest
longentry --> visual long entry
shortentry --> visual short entry
Pros and Cons
Pros:
1. exact long and short entries are produced by overbought and oversold conditions
2. support "NLX-L3 Backtest" framework
Cons:
1. noise may be produced under extreme market condition
2. due to this is un-optimized version, time frame and trading pairs need to be selected
Remarks
Courtesy of @nilux "NLX-L3 Backtest" easy backtest framework for dummies.
Step by step backtest guide with "NLX-L3 Backtest" framework:
STEP1: Add this indicator into your chart
STEP2: Add "NLX-L3 Backtest" into your chart
STEP3: Click "Settings" gear icon of "NLX-L3 Backtest" to select "Select L2 Indicator" in the 1st line as "blackcat L2 VWAP CCI Trading System: backtest"
STEP4: Configure your backtest other settings under "NLX-L3 Backtest" framework
STEP5: Click "OK" and view the results in "Strategy Tester" tab
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.
Ehlers Adaptive Commodity Channel Index V1 [CC]The Adaptive Commodity Channel Index V1 was created by John Ehlers (Rocket Science For Traders pgs 236-237) and this is the typical Commodity Channel formula with the introduction of adaptive lengths based on his earlier work with indicators such as the Mother of Adaptive Moving Averages. For longer term signals you would get a bullish signal when CCI is above 0 and a bearish signal when CCI falls below 0. For shorter term signals you would get a bullish signal when crosses over it's overbought level or when it crosses above it's oversold level or vice versa. I have included both signals to make it easier.
Let me know if you want a custom script written or if you have a special request for me