BB+K strategyApplying Bollinger Bands and K-bar strategies
Suitable for long time periods
Suitable for forex trading, when the forex deviation is too large, the Fed will intervene and thus correct
Strategy: Enter when the price hits the upper or lower BB track and there is a reversal of the strong signal, and exit when it hits the other track and there is a reversal signal.
Полосы Боллинджера (BB)
BuyTheDip V2This is enhanced version of BuyTheDip Strategy which can be used for stocks and cryptos as well along with indices.
In addition to V1, the enhancement include breaking the zone into multiple levels based on multiple standard deviation Bollinger bands. Dip is confirmed only when price bounce back certain levels from the bottom. If price keeps going down, strategy does not generate signal.
Input parameters are as below:
ATR Parameters : AtrLength and AtrMult to calculate trailing stops
Trailing Condition parameters : TrailAfterBars, TrailTargetState - Trailing does not happen immediately. It either waits for TrailAfterBars to complete or price moves up by TrailTargetState levels in multi bollinger band level setup - whichever happens first.
Force Exit Parameters : If the price state based on multi-bollinger bands drop by TargetStopStateDiff level from its peak, then it will force exit from the trade if ExitOnFailureSignal is checked.
Entry Filters : It is not a dip if the instrument is already in downtrend. ConsiderYearlyHighLow , ConsiderNewLongTermHighLows and ConsiderMAAlignment are used for filtering entries so that we only buy the dip for uptrending instruments.
Vegas Tunnel strategyApply Vegas Tunnel,
Use EMA144 169 as medium-term trend support
Also use EMA 576 676 and 4 multiples of 144 and 169 as long-term support and trend direction
Also increase EMA 36 43 as a short-term trend support
Suitable for stocks, indices, commodities
The applicable time scale can back-test the usability of the strategy by itself, and select the most applicable target
Introduction to current trading strategy:
According to the trend, the price will enter the market when it touches the support of each stage. When it touches the bollinger bands, it is Squeeze. Hold until it leaves the bollinger bands
But the trading strategy can be more optimized, see the code for details
Overnight Bollinger Band ExtremesThis script is a combination of my overnight fakeout script and bollinger band color bars. It's designed to be used on CME/CBOT Equity Indexes during their GLOBEX session. It uses the built in Bollinger Band script and highlights bars that exceed the upper/lower bands during the overnight session.
(JS) VWAP BandsThis is a pretty simple script here - I took the VWAP and combined it with Bollinger Bands.
The bands can vary a lot based on chart resolution, so I wanted to make sure the resolution could be modified so you can use the resolution you're most comfortable with, or find the most success with.
Length:
Length of bars used to calculate the bands.
Standard Deviation Band 1-3:
There's three bands all together, this option allows you to modify the number of standard deviations per band.
VWAP Period:
This modifies when you want the VWAP to begin (Session, Week, Month, Year).
Offset:
This moves the VWAP and the bands the amount of bars you select, default is of course set to zero.
Source:
This selects the source of calculation, HLC/3 is the default VWAP calculation.
This is a pretty self explanatory script, I thought being able to see the standard deviations of the VWAP could prove to be useful - hope you all like it!
Momentum Strategy [MA Crossover + Squeeze Release + Alerts]This is a Strategy with associated visual indicators and Buy/Sell/Close Alerts for the Squeeze Momentum Indicator .
Development Notes
-------------------------
This is a fork of LazyBear's Squeeze Momentum Indicator histogram with an added moving average crossover for multiple trade signal confirmation. Functionality for Multi-Timeframe Resolution was also enabled and code was updated for PineScript v4 compatibility.
Strategy Description
-------------------------
Enter trade when the active crossover period (identified by background crossover indicator/zone) correlates with a squeeze release (black to gray cross along midline). BUY Long if momentum in uptrend or SELL Short if in downtrend. Close trade when momentum reverses.
Alerts configured for entering Long/Short position and to Close order.
Designed to have only one open long or short position at a time (no pyramiding) with an associated close order for each.
Indicator Visuals
--------------------
Crossover zone background (green or red) based on last crossover direction (only buy orders are triggered in a buy zone and sell orders in a sell zone)
Moving average crossover line matches trend (buy upwards on green and sell downwards on red)
Buy (green circle) and Sell (red circle) signals at the point of crossover
Buy (green cross) and Sell (red cross) signals at squeeze release on the midline
Long (green arrow) and Short (red arrow) order label when every indicator is triggered together
Close (purple arrow) and label when either trend or crossover zone changes
Recommend backtesting with the resolution set to current timeframe to avoid repainting; no other known repainting. There is a current bug or flaw in the script where all the Close and some of the Long and Short orders are not executed by the strategy (this doesn't affect the visual indicators, only the strategy).
Note that the provided backtest result is based on a position sizing of 10% equity with 100k initial capital. The 15-minute timeframe performed the best, with the 30-minute a close second, and 5/45-minute tied for third. Profit/loss went into the red when expanding out to 2-hours or beyond. I suspect this could be improved upon if you follow the Alerts on the oscillator versus rely solely on the strategy (due to the aforementioned issue with all entry and exit positions not being depicted).
Disclaimer
Past performance may not be indicative of future results. Due to various factors, including changing market conditions, the strategy may no longer perform as well as in historical backtesting. This post and the script are not intended to provide any financial advice.
Script is currently protected (due to the extensive development in the strategy) to prevent the source from being copied and sold.
Cosmic BB SRThis script is based on Bollinger Bands/Bandwidth data and displays support and resistance levels (thick horizontal lines), the direction/volatility of the levels (thin dynamic lines), and the testing of the levels (cross markers).
Bollinger Band Color BarsThis is a simple addition to the built in Bollinger Bands script. All it does is replaces the traditional plotting of Bollinger Bands with color bars.
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 :)
Exponential Deviation Bands Width [ChuckBanger]This indicator is a compliment to Exponential Deviation Bands . It is the difference between the upper and the lower bands divided by the middle band. It is an easy way to visualize consolidation before price movements or periods of higher volatility.
How it works
During a period of high volatility, the distance between the two bands will widen and Exponential Deviation Bands width will increase. And the opposite occurs during a period of low volatility, the distance between the two bands will contract and Exponential Deviation Bands width will decrease. Meaning there is a tendency for bands to alternate between expansion and contraction.
When the bands are relatively far apart, that is often is a sign that the current trend is ending. When the distance between the two bands is relatively narrow that often is a sign that the market is about to initiate a bigger move in either direction.
Bollinger Bands with Lagging Span(Chikou Span)Japanese below / 日本語説明は下記
Summary
This indicator shows Bollinger bands with plus/minus 3σ bands and lagging span(called chikou span in Japanese as used in Ichimoku cloud) showing alert when lagging span crossing plus/minus 2σ bands, which are buy/sell signal respectively.
Bollinger bands are one of frequently used technical analysis indicators in trading and some traders use Bollinger bands and lagging span together in order to identify trading opportunities.
When lagging span crosses upper bands in bullish trend and lower bands in bearish trend, that would be considered buying/selling opportunities respectively.
Generally, lagging span is used offsetting current price by 26 period.
This indicator shows signal and alerts when lagging span crossing ±2σ bands as potential trading opportunities.
Functions
-To show Bollinger bands with plus/minus 3 sigma bands
-To show SMA as Bollinger bands middle line with configurable period of SMA.
-To show lagging span, enabling users to set lagging period and control display of lagging span by checkbox
-To show signal on chart when lagging span crosses +2σ bands and -2σ band with ability to set alert
-To control display of the signal by checkbox
Sample chart with the indicator
——————————————————————————————
概要
ボリンジャーバンド(±3シグマ)と遅行スパンを同時に表示するインジケーターです。遅行スパンが±2シグマと交差するとチャート上にシグナルを表示するとともに、アラートを設定することができます。
ボリンジャーバンドはテクニカル分析で最も使われているインジケーターの一つです。トレーダーの中にはボリンジャーバンドと遅行スパンを共に用いることで売り買いのサインを捉える手法を使っている方もいます。
上昇トレンドにおいては、遅行スパンがプラスのバンドを上抜いた時を買いサイン、下降トレンドにおいては、遅行スパンがマイナスのバンドを下抜いた時を売りサインとして捉えるものです。
一般的には、遅行スパンは現在価格を26期間オフセットしたラインが用いられます。
このインジケーターでは、遅行スパンがプラスマイナス2シグマを抜いた時にチャートへのシグナル表示と、アラート設定が可能です。
機能
-±1-3シグマのボリンジャーバンドの表示
-ボリンジャーバンドの基準線としてのSMAの表示(期間は設定可能)
-遅行スパンの表示(遅行期間の設定及び表示非表示の切り替え可能)
-遅行スパンがプラス2シグマバンドを上抜いた場合、マイナス2シグマバンドを下抜いた場合にチャート上にシグナルを表示(同じ条件でアラート設定が可能)
-シグナルの表示・非表示の切り替え
サンプルチャート
Simple Bollinger Bands Toolkit™TradeChartist Simple Bollinger Bands Toolkit is a useful set of Bollinger Bands based utilities, which includes 0 mean %B Oscillator , price volatility based BB Width , actual Bollinger Bands and BB Breakout Signals .
===================================================================================================================
™TradeChartist Simple Bollinger Bands Toolkit Features
================================================
Modified %B Oscillator with 0 as its mean
%B Oscillator Over-Bought (typically values > 80/90/100) and Over-Sold zones (typically values < - 80/-90/-100) can be displayed by enabling Show Over-Sold/Over-Bought Zones .
Highs and Lows of the %B Oscillator are displayed to help visualize Divergences.
BB Width as Price Volatility (BB Upper Band - BB Lower Band) can be displayed to visualize BB Squeeze zones.
Actual Bollinger Bands can be plotted by enabling Display Bollinger Bands . To display on main price chart, just move the BB Toolkit to price chart and merge the scales.
Breakout Signals can be displayed by enabling Display Bollinger Bands and Show BB Breakout Signals . This also displays background fill to help visualize the zones since the breakouts of upper/lower bands happened.
The BB Basis/Mean line is colour coded based on the %B Oscillator (%B>0 - Green, %B<0 - Red).
The Toolkit uses Simple Moving Average (SMA) for the basis line.
The default length is 55 and default Standard Deviation is 1. %B Oscillator can be smoothed (default - 5) using EMA to minimize noise. (Use 20 length and 2 standard deviation for classic Bollinger Bands).
Price Bars on the Main Price chart can be coloured by enabling BB Colour Bars .
===================================================================================================================
MA ICHI BB [Rogulabo]3 indicators in 1.
Included Indicators are:
- MA 5,25,50,100,200
- Ichimoku
- Bollinger Band
These can be used to determine changes in trends when:
- MA's collide, trajectories shift, or certain levels are reached.
- Ichimoku cloud is above or below the candles.
- Bollinger Band's width changes, or range is broken.
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 “CC RSI” for the complete the setup.
Any questions, please refer to:
@rogulabo
==
高橋ダンさんが使用されてるチャートと同様のセットアップの為にご活用ください。
複数のインジケータをグループにしておりますので、無料版を使われてる方は効率よく使っていただけると思います。
また、“CC RSI ”どいうタイトルのインジケータも同時に公開しておりますので、セットアップを完成させたい方はこちらもご活用ください。
以下のインジケータを含みます。
・MA線
・一目均等表
・ボリンジャーバンド
カスタマイズされたい方はご自由に値を変更ください。
ご質問は @rogulabo までよろしくお願いいたします。
CSPDMost Advanced & Accurate CandleStick Pattern Detector
Looking All Over of All Markets for All Important Powerful Reversal | Corrective Patterns (25 type)
Filtering the Results with Optional Features like Oscillator, Bollinger Bands, Volume Confirmation, Prior and Following Candles Confirmation which are Fully Customizable.
With this you can detect:
Hammer | Shooting star
Inverted Hammer | Hanging
Long legged Doji | Dragonfly Doji | Gravestone Doji
Bullish tweezers | Bearish tweezers
Bullish inside bar | Bearish inside bar
Bullish three line strike | Bearish three line strike
Bullish engulfing | Bearish engulfing
Piercing line | Dark cloud cover
Bullish abandoned baby | Bearish abandoned baby
Morning star | Evening star
Three white soldiers | Three black crows
*Bullish kayo | *Bearish kayo
Features:
Prior and Following candles Confirmation
You can set prior and following candle as basic prerequisites for marking candles as pattern to make sure you are at the top or bottom of the trend.
Volume confirmation
You can active volume increasing confirmation for some of pattern with adjustable increase % relative to prior candle | candles.
Oscillator Confirmation
Active oscillator confirmation. Select your approved oscillator from list (Stochastic, RSI, StochRSI, MFI, StochMFI) then enter desired value for marking candles as bullish | bearish pattern.
Bollinger Bands Confirmation
Active BB confirmation. Configure your Bollinger Bands. Now only see the patterns which reached or crossed from Bands. Also you can enable BB clod to have your BB indicator at the same time.
Adjustable Flexibility and Precision
You can set tolerance% for Osc and BB Confirmation - each one separately - for more control.
Self-adaptability
The properties of markets change over time, for example the amplitude of fluctuations and the intensity of movements. The script is designed in such a way that you can examine the price history as a benchmark for changes in market properties to adopt determinants. Also you can control those manually.
Self-regulatory
The user has the ability to change input factors depending on their point of view.
Behind the pattern recognition algorithms, there are relationships and similarities in their appearance that cause them to be influenced by each other. Simultaneously with changing the determining factors of each pattern by you, script automatically adjusts other details in accordance with your changes.
Alerts
You can set for type of pattern or each one of pattern have been detected.
Fully Costumizable
All of these options can be change and adjust.
Note 1.
The patterns are based on extensive study of reference and famous sources and the experience of me and my friends in trading and analysis with price action methods.
Note 2.
Due to the Pine limitations in the number of outputs | plots for each script, our attempt has been made to select the best and most important patterns.
Note 3.
So far, many scripts have been written in this field, but our experience with all of them and even the build in version was not satisfactory, and this was the initial motivation for making the script.
We strive to improve progress and elimination of shortcomings and we will continue to make this better.
Note 4.
Through personal experience and based on the principles of market and candlestick psychology, we discovered a new type of pattern and named it as Kayo.
kayo is a two candle pattern which formed when:
1.We have a pivot point with prior candles as left bars and following candles as right bar. Pivot candle called as second candle.
2.In a bullish kayo, first candle must closed descending and second candle must closed as ascending. For bearish kayo vise versa.
3.In a bullish kayo, second candle's lower wick must be longer then upper wick.
4. A pattern marked as kayo when its conditions do not correspond to any of the other patterns(include the confirmation that user added), ie it has the last naming priority over the other patterns.
Note 5.
When you active confirmation options for patterns like hammer, engulf and etc which they conditions are like kayo in some extent, if they can't pass the confirmation steps, they can be marked as kayo pattern.
Note 6.
If you active volume confirmation for Three white soldiers | Three black crows, the confirmation get passed if the volume of forth or third candle increased as value as entered relative to volume EMA3 of 3 candles.
Note 7.
In a bullish pattern all highs of following candles MUST be higher than prior highs and all lows of following candles MUST be higher than prior lows. For bearish patterns vise versa.
This type of confirmation depends on High and Low NOT close!
Gift to price action lovers!
Support us with your like and comments. let us know your experience, points and idea to make this better together.
ATR on Double Bollinger Bands (BB) ATR Coupled with Bollinger bands helps you to time the Entries & Exits.
The combination of two Volatility Indicators ATR & Bollinger bands captures cyclical behavior of the market.
This Indicator helps you to identify the range contraction & range expansion for trades & signals reversal signs
ATR - Double Bollinger Bands (BB) indicator plots Two Bollinger Bands on ATR Indicator.
ATR - Double Bollinger Bands (BB) indicator plots Two Bollinger Bands on ATR Indicator.
Markets go through cycles of contraction and expansion. Range Expansion is identified when ATR is rising above the ATR average. Range Contraction is identified when ATR is falling below ATR average.
Whenever the market is contracted, then comes the range expansion so these signals can be used for entries & exits.
The average true range is a volatility indicator. Volatility measures the strength of the price action and is often considered for clues on market direction
This is the combination of two Volatility Indicators ATR & Bollinger bands to capture cyclical behavior of the market.
How to use the indicator for Entry & Exits ?
When ATR is below Bollinger band basis line and closer to the lower band that indicates the range contraction, so traders can expect the range expansion soon & entering long positions becomes a safe bet.
When ATR is touching the upper Bollinger band (2 standard deviation) that indicates range expansion so closing a long position or booking partial profits becomes a safe bet, because the stock is likely to enter a trading range or reverse direction at this point.
When ATR is outside the upper Bollinger band, avoid long trades as range contraction expected soon.
Reversals - A reversed trend is expected when price touches its extreme outer bands. it is always a good practice to confirm reversal signals with more than one indicator signals.
A prolonged period of low ATR values may indicate a consolidation area and the possibility of a continuation move or reversal.
EMA Double - Bollinger Bands (BB) & RSI This Indicator (2 EMA -BB - RSI ) plots 2 EMA's along with Bollinger Bands and paints RSI Overbought & Oversold Zones on Chart.
RSI zones help quick identification of the overbought & oversold regions. RSI On/Off switch lets it Switch On & Off .
G-Bollinger bands volatility breakout v.1This is my frist publish scrpit. I developed this indicator origin is BB. It make from easy idea but powerful for sideway to breakout
1. I findout volatility by upper band of BB - lower band of BB (I called "Aline")
2. I created SMA of Aline (I called Bline)
3. I created the special line is "Cline" from Aline - Bline
4. I created 0 line " Baseline "
G-BBvB is the very good indicator to detect low volatility to begin the volatility = Buy signal
Now I can't find the sell signal form indicator. I try backtest sell at Cline cross zeroline but it not work.
I'll develop "G" indicator for free .
Goodluck :D
Mulitple Bollinger Bands with MAsIn this indicator, I used Bollinger Bands and many standard deviation values together. These values are: 0.618 (Yellow), 1, 1.618 (Yellow), 2, 2.618 (Yellow), 3, 3.618 (Yellow), 4, 4.618 (Yellow). Like the indicator I just published, I also added multiple moving average options for the Bollinger Bands calculation. You can create your own strategies for where it bounces in ups and downs.
Türkçe:
Bu indikatörde Bollinger Bantları ile birçok standart sapma değerini birlikte kullandım. Bu değerler: 0.618 (Sarı), 1, 1.618 (Sarı), 2, 2.618 (Sarı), 3, 3.618 (Sarı), 4, 4.618 (Sarı). Daha yayınladığım indikatör gibi burada da Bollinger Bantları hesaplaması için birden çok hareketli ortalama seçeneği de ekledim. Yükseliş ve düşüşlerde sektiği yerler için kendi stratejileriniz oluşturabilirsiniz.
BBofVWAP with entry at Pivot PointThis strategy uses BB of VWAP and Pivot point to enter and exit the Long position.
settings
BB length 50
BB Source VWAP
Entry
When VWAP crossing up BB midline and price/close is above weekly PivotPoint ( you can also use Daily pivot point )
Exit
When VWAP is crossing down BB lower band
Stop Loss
Stop loss defaulted to 5%
Note : Long will position will be exited on either VWAP crossing down BB lower band or stop loss is hit - whichever comes first . Being said that some time your stop loss exit is less than 5% which saves from more losses.
Entry is based on weekly Pivot point , so any time frame below weekly will work perfect. I have tested t on 30 min , 1 HR , 4 Hr , Daily charts. Even weekly setting shows good results , that will work for long term investing style.
if you change Pivot period to Daily , chose time frames below Daily.
I also noticed this strategy mostly do not enter Long position in a down trend. Even it finds one , it will be exited with minimal loss.
Warning
For the use of educational purposes only
RK's Framework 01 - Auto Color GradientThis started as a personal arrays study, but after a few tests I decided to made a framework to get my own scripts simplest, lighter and faster.
And now I'm sharing with you guys.
Is very simple to use:
Copy evething inside "RK's Auto Color Gradient Framework" block;
Paste anywhere before the plotting;
Declare the color variable name calling the function "f_autocolor(___, ___)" with the source you gonna plot and the size of the scale do you want to use to compare the data.
Feel free to use.
Hope brings some profits for you guys!!
Spread Entry StrengthThis is an overlay indicator showing a strong potential for entry into an option spread trade.
2 background shadings will occur:
The background will shade blue if the ticker is prime for a Bullish Call spread.
The background will shade purple if the the ticker is prime for a Bearish Put spread.
In theory, if the SE Strength is at one of the extremes of the Bear or Bull side, then a spread is prime for entry.
To calculate this, 8 conditions receive a 1 or zero dependent on whether the condition is true (1) or false (0), and then all of those are summed. The primary gist of the strength comes from Nishant's book, or my interpretation thereof, with some additives that limits what I need to review (such as condition 8 below.)
The 8 Bull Conditions are:
1) Bollinger Bands are outside of the Keltner Channels
2) ADX is trending up
3) RSI is trending up
4) -DI is trending down
5) RSI is under 30
6) Price is below the lower Keltner Channel
7) Price is between the lower Bollinger Band and the Bollinger basis.
8) Price at one point within the last 5 bars was below the lower Bollinger Band
The 8 Bear Conditions are the inverse conditions (except the first):
1) Bollinger Bands are outside of the Keltner Channels
2) ADX is trending down
3) RSI is trending down
4) +DI is trending up
5) RSI is over 70
6) Price is above the upper Keltner Channel
7) Price is between the upper Bollinger Band and the Bollinger basis.
8) Price at one point within the last 5 bars was above the upper Bollinger Band
There is a "market noise" filter that will filter out shading when another market move is considered, i.e. if you don't want to see the potential trade when QQQ moves more than 1% then do the following in the settings:
Check "Market Filter"
Enter QQQ in the "Market Ticker To Use"
Enter 1 in the "Market Too Hot Level"
Press Ok
Obviously, the same holds true for the "Market Too Cool Filter."
Spread Entry Balance of PowerThis is a bar chart showing the strength of a potential option spread entry using 8 conditions for each side of a trade, bull or bear.
In theory, if the SE Strength (Spread Entry Strength) is at one of the extremes of the Bear or Bull side, then a spread is prime for entry.
To calculate this, the 8 conditions receive a 1 or zero dependent on whether the condition is true (1) or false (0), and then all of those are summed. The primary gist of the strength comes from Nishant's book, or my interpretation thereof, with some additives that limits what I need to review (such as condition 8 below.)
The 8 Bull Conditions are:
1) Bollinger Bands are outside of the Keltner Channels
2) ADX is trending up
3) RSI is trending up
4) -DI is trending down
5) RSI is under 30
6) Price is below the lower Keltner Channel
7) Price is between the lower Bollinger Band and the Bollinger basis.
8) Price at one point within the last 5 bars was below the lower Bollinger Band
The 8 Bear Conditions are the inverse conditions (except the first), and the conditions are given a negative disposition (meaning they sum to -8 :)):
1) Bollinger Bands are outside of the Keltner Channels
2) ADX is trending down
3) RSI is trending down
4) +DI is trending up
5) RSI is over 70
6) Price is above the upper Keltner Channel
7) Price is between the upper Bollinger Band and the Bollinger basis.
8) Price at one point within the last 5 bars was above the upper Bollinger Band
Double BB & Double EMA by IKINThis is the combination of code to detect the cross over between EMA 7 & EMA 21.
By using the double Bollinger Bands will help traders to make the decision by exit the counter just incase buy at the highest price.
Create for FREE TRADING VIEW USER