Bollinger Bands with Ema and Two DeviationBollinger Bands with Ema calculation. Based on high and low valus of candle. Also can be used two deviation for both upper and lower bands.
Полосы Боллинджера (BB)
Trend Following with Bollinger BandsThis is a trend following system which uses the Bollinger Bands instead of the Donchian Channels.
Long position:
* Price closes above the middle line.
* The fast EMA (in this case the 40) crosses over or is above the slow one (in this case the 120)
Short position:
* Price closes below the middle line.
* The fast EMA crosses under or is below the slow one.
Stoploss:
* 4 ATRs away from the price.
B.Bands | Augmented | Intra-range | Long-OnlyHere you have the essential trading engine based on Bollinger Bands .
The idea behind is to trade the intra-range of the bands.
How is going to work?
Define which Bollinger Bands we want to use. Classic Bollinger Bands or Augmented Bollinger Bands . Without selecting, the algorithm doesn't show a strategy.
Define the length of the Moving Average and the Standard Deviation by default the classic 20-2.
Define the Bollinger Bands Spread Max Range (Upper-Lower) to be able to determine wheter or not you're in a price range or potential breakout.
Define data source to trigger exit and entry points.
Define profit based on Middle Band or Opposite Band.
Define Stop Loss % and activate Trailing Stop if desired with the percentage required.
Determine if you want to sell only on profit after triggering the entry signal. * Note Stop Loss remains activated.
Choose a date range if you want to study a specific period.
Bear in mind, this is the essential trading engine, open for you to test, try and improve under your requirements. You can determinate when is the ideal market to implement it based on many other indicators. Maybe you wish to change the stop loss settings for ATR, previous low, etc. Totally up to you.
Note the script comes with initial capital, fee % and slippage by deault. This may change for your assets. Make sure you define it in advance.
NOTE: If you trade assets such BTC, you must update the initial capital. By default 5000 (USD) The script doesn't support fraction trading such 0.01BTC.
Will be updated on next version.
Feel free to get in touch if you've got any question.
K's Volatility BandsVolatility bands come in all shapes and forms contrary to what is believed. Bollinger bands remain the principal indicator in the volatility bands family. K's Volatility bands is an attempt at optimizing the original bands. Below is the method of calculation:
* We must first start by calculating a rolling measure based on the average between the highest high and the lowest low in the last specified lookback window. This will give us a type of moving average that tracks the market price. The specificity here is that when the market does not make higher highs nor lower lows, the line will be flat. A flat line can also be thought of as a magnet of the price as the ranging property could hint to a further sideways movement.
* The K’s volatility bands assume the worst with volatility and thus will take the maximum volatility for a given lookback period. Unlike the Bollinger bands which will take the latest volatility calculation every single step of time, K’s volatility bands will suppose that we must be protected by the maximum of volatility for that period which will give us from time to time stable support and resistance levels.
Therefore, the difference between the Bollinger bands and K's volatility bands are as follows:
* Bollinger Bands' formula calculates a simple moving average on the closing prices while K's volatility bands' formula calculates the average of the highest highs and the lowest lows.
* Bollinger Bands' formula calculates a simple standard deviation on the closing prices while K's volatility bands' formula calculates the highest standard deviation for the lookback period.
Applying the bands is similar to applying any other volatility bands. We can list the typical strategies below:
* The range play strategy : This is the usual reversal strategy where we buy whenever the price hits the lower band and sell short whenever it hits the upper band.
* The band re-entry strategy : This strategy awaits the confirmation that the price has recognized the band and has shaped a reaction around it and has reintegrated the whole envelope. It may be slightly lagging in nature but it may filter out bad trades.
* Following the trend strategy : This is a controversial strategy that is the opposite of the first one. It assumes that whenever the upper band is surpassed, a buy signal is generated and whenever the lower band is broken, a sell signal is generated.
* Combination with other indicators : The bands can be combined with other technical indicators such as the RSI in order to have more confirmation. This is however no guarantee that the signals will improve in quality.
* Specific strategy on K’s volatility bands : This one is similar to the first range play strategy but it adds the extra filter where the trade has a higher conviction if the median line is flat. The reason for this is that a flat line means that no higher highs nor lower lows have been made and therefore, we may be in a sideways market which is a fertile ground for mean-reversion strategies.
BB%B StratSimple strategy to go long when price is below a bollinger band %B threshold, or go short when above a threshold.
Trades are closed when BB%B moves back to an opposite threshold.
Intended to be a relatively short time frame trade, usually only a few candles, and probably better on high time frames.
Swing Assassin's Consolidated ScriptI put this script together to essentially consolidate a number of scripts that I use on a daily basis into one script. This is an ongoing improvement effort, so there may be some garbage in here right now so keep that in mind if you intend to use this to help in your trading.
There are 5 moving averages (Hull). I use the Fast, Mid and Slow to find entries after I us the Medium Slow and Super Slow to identify a trend. Otherwise, I have those three turned off.
This script also uses Bollinger Bands which I literally cannot trade without.
The script also has anchored VWAP , automated support/resistance lines, and a homebrewed Volume Profile that is a copy from Ildar Akhmetgaleev's indicator "Poor Man's Volume Profile" used under Mozilla Public License Version 2.0.
Pluto Star - Bollinger Band Trap//DESCRIPTION
//Pluto star appears on a chart when price goes in the in the extreme price range territory, i.e. beyond 2 standard deviation from the mean (or mid Bollinger Band).
//What makes a Pluto Star appear on a chart:
//1. Check if the candle 's' high and low, both are completely outside of the Bollinger Bands (close, 20, 2) - Lets call it Pluto Star Candle
//2. Pluto Star Candle must not be a result of sudden price movement. Hence the previous candle must give a BB Blast.
// In other words, the candle must have it's either open or close outside of Bollinger Bands, to confirm a BB Blast before the Pluto Star
//3. Candle, following the Pluto Star must not break the high (in case of upper BB i.e. short call) or low (in case of lower BB, i.e. long call), to confirm the reversal to the mean
// This implies that Pluto Star appears on chart, above/below the next candle of actual Pluto Star Candle
//----- The above 3 conditions make a Pluto Star appear on a chart. But one must wait for a trade signal. Read the following conditions
//4. There is a signal line, which is nothing but ema(close,5)
//5. The red dotted line is the signal range (and also acts as Stop Loss). The price must close above/below the signal line within the signal range
//6. For a red Pluto Star (short call), the price must close below the signal line, within next 6 candles (signal range). Else there is no trigger for a trade
//7. For a green Pluto Star (long call), the price must close above the signal line, within next 6 candles (signal range). Else there is no trigger for a trade
//8. If any of the candle crosses the Stop Loss line within signal range, there is no trigger for a trade
//9. In a normal scenario, the price must return to the mean, i.e. mid Bollinger Band. In best case scenario, it must go to the opposite side Bollinger Band.
//Recommendation: Test it with Nifty and Bank Nifty charts on 30 mins and 1 hour timeframes
Pin Bar//Pin Bar at the edge of BB
//Conditions to check
// 1. It must be a Pin Bar
// 2. Price Above/Below 200 SMA
// 3. Volume must be above 20 SMA
// 4. Low/High of the Pin Bar must cut across the BB upper/lower band
// 5. The very next candle closes above/below the high/low of the pin bar candle
Recommended timeframe - Daily and Weekly
Bollinger Band Breakout Positional Strategy- BN -15M This strategy consists of following criteria:
Buy:
1. Candle should have RSI is above 60 and Close above Bollinger band upper limit
2. Exit When candle is closed below 20MA
Sell:
1. Candle should have RSI is above 40 and Close below Bollinger band lower limit
2. Exit When candle is closed above 20MA
Checkout results.
Bollinger Bands %B - Belt Holds & Inner CandlesThis is a simple strategy that uses Bollinger Bands %B represented as a histogram combined with Candle Beltholds and Inside candles for entry signals, and combines this with "buy" and "sell" zones of the %B indicator, to buy and sell based on the zones you set.
How to use:
Long when in the green zone and an inside candle (which is highlighted in white) or a bullish belt hold (which is highlighted in yellow), and sell when inside a red zone and has an inside candle or a bearish belt hold (which is highlighted in purple) or the stop loss or take profit is hit.
Short when in the red zone and an inside candle (which is highlighted in white) or a bearish belt hold (which is highlighted in purple), and sell when inside a green zone and has an inside candle or a bullish belt hold (which is highlighted in yellow) or the stop loss or take profit is hit.
Stop loss / take profit selection:
Choose which performs best for you, ATR based uses the average true range, and % based is based on a set percent of loss or profit.
IDEAL BB with MA (With Alerts)It gives well combination of Moving average and Bollinger bands with signals
RSI Rising Crypto Trending AlertAlert version of the strategy with the same name
This is crypto and stock market trending strategy designed for long timeframes such as 4h+
From my tests it looks like it works better to trade crypto against crypto than trading against fiat.
Indicators used:
RSI for rising/falling of the trend
BB sidemarket
ROC sidemarket
Rules for entry
For long: RSI values are rising, and bb and roc tells us we are not in a sidemarket
For long: RSI values are falling, and bb and roc tells us we are not in a sidemarket
Rules for exit
We exit when we receive an opposite direction.
Cuation: Because this strategy uses no risk management, I recommend you takje care with it.
If you have any questions, let me know !
Advanced RSIThis is what I call the advanced RSI. It employs Bollinger bands on the RSI itself, in order to better highlight extremes that are still within the typical 30-70 range on.
You'll notice some background highlights. These are simply to mark the extremes.
Orange marks your standard overbought, Red marks oversold.
Fuchsia marks an RSI outside the lower deviation on the Bollinger Bands. Green marks an RSI outside the upper deviation on the Bollinger bands.
Typically while in an uptrend, the RSI dropping below the lower deviation indicates an entry point (fuchsia). The same applies for a downtrend with the RSI rising above the upper deviation (green).
You can look at the overlap in colors as even stronger indications because on a more rare occasion you will have the RSI outside the upper/lower deviation as well as being outside the typical oversold/overbought levels.
Any feedback is welcome! I try to employ contrasting colors, but they may not make sense to you so change them as you please - they are simply markers.
BBW EMA RIBBON+BB%B+EMA BUY/SELL SignalsBINANCE:BTCUSDT
* * * TESTED ON BTCUSDT 4H CHART * * *
The indicator gives signals based on possible ENTRY/EXIT zones (calculated using an ema ribbon of the BBW) and BB%B oversold/overbought conditions, also a 200 EMA filter is used to trade following the major trend.
ENTRY/EXIT zones can be used as a confirmation on other strategies (green zones suggest a possible entry for a long in an uptrend and for a short in a downtrend, red zones suggest a possible exit for long & short)
Only LONG signals are given.
Signals are divided in 3 categories based on their strenght:
- Weak BUY/SELL (green/red circles on chart)
- normal BUY/SELL (green/red triangles with "BUY" or "SELL" text on chart)
- strong BUY/SELL (green/red labels with "STRONG BUY" or "STRONG SELL" text on chart)
You can use signals from the same category as triggers for entering or exiting a trade or you can try using signals from different categories
All indicators settings can be costumized
Possible EXTRY/EXIT zones can be turned ON/OFF
Every signal label can be turned ON/OFF
EMA that changes color based on last candle close can be turned ON/OFF
Alerts can be set for:
- General Signals (every signal will trigger it)
- Weak Signals (only weak signals will trigger it)
- Normal Signals (only normal signals will trigger it)
- Strong Signals (only strong signals will trigger it)
There are 3 BB%B Oversold & 3 BB%B Overbought value presets:
- BASIC (default values)
- LOW (slightly lower values from default)
- HIGH (slightly higher values from default)
Tips:
Use BB%B OS LOW preset to find entries at a better price
Use BB%B OS HIGH preset to find entries faster
Use BB%B OB LOW preset to find exits faster
Use BB%B OB HIGH preset to find exits at a better price
There are 3 Filters already included:
- A checkbox to toggle ON/OFF the use of Heikin Ashi candels to detect trades
- A checkbox to toggle ON/OFF the use of an ema filter for the ribbon that tries to reduce the number of false signals on over-extended price movements
- A checkbox to toggle ON/OFF the use of an ema filter that tries to reduce the number of false signals when price crosses the moving average many times consecutively
Logarithmic Bollinger BandsThe existing Bollinger Bands simply used price to derive the standard deviation.
In other words, whether an asset goes up or down by $50 from $100, it counts at the same "50$".
But in the asset market, an increase of $50 and a fall of $50 have different values.
To eliminate this difference using a logarithmic function, a new Bollinger Band was created.
Green is the original Bollinger Band.
As mentioned above, a sharp lower band is formed by calculating the rise and fall of an asset with the same value.
Blue is the Logarithmic Bollinger band.
Please make this indicator useful!
기존의 볼린저 밴드는 단순하게 가격을 이용해 표준편차를 도출해내었습니다.
즉 자산이 100$에서 50$이 오르든 내리든 같은 "50$"로 계산한 것입니다.
하지만 자산시장에서 50$이 오르는 것과 50$이 내리는 것은 다른 가치를 가집니다.
이 차이를 로그함수를 이용해 없애보고자 하였고, 새로운 볼린저밴드를 만들었습니다.
초록색이 기존의 볼린저밴드입니다.
위에서 말했듯이 자산의 오르내림을 같은 가치로 계산해서 급격한 아래 밴드가 형성됩니다.
파란색이 로그 볼린저밴드입니다.
이 지표를 유용하게 사용해주세요!
ViVen-Multi Time Frame Bollinger Band StrategyThis indicator created to identify the strong Support and Resistance levels based on the Bollinger Bands. When two different time frame Bollinger Bands are travelling together then its a strong Support or Resistance Levels.
I have added 5 Min, 15 Min, 30 Min, 1 Hr and 1 Day time frame Bollinger Bands in one Chart. You can select and combine whichever the TF you want.
Default values considered - Period - 20 and Std.Dev is 2
You can on/off the indicator based on the requirement.
Trade plan:
BUY - When price comes near to the Bottom Bollinger Band level (look for candle confirmation is plus). If multiple Bollinger bands travels together then is Strong Support. (Exit if Price Breaks down the BB)
SELL - When price reaches the Upper Bollinger Band level (look for candle confirmation is plus). If multiple Bollinger bands travels together then is Strong Support. (Exit if Price Breaks Up the BB)
Middle Line - is the 20 SMA line
When the Gap between Upper and Lower Band is narrow then we can expect a trending movement soon.
Bollinger bands and Keltner bands
█ OVERVIEW
This is a Bollinger band Script, with Keltner Channel Bands and for scalping.
█ CONCEPTS
1 — Bollinger Bands, The Bollinger band component is make out from two part, the standard component represented by a white cloud.
This is the 2nd deviation and 3rd deviation filled.
The second part linear weight
This is the 2nd deviation, and is filled from the 3rd deviation from the standard bands. This give the effect of cutting in and out to proved a support and resistance cloud.
2 — Keltner bands, this is the normal calculation, nothing special, by default this is off and can be turned back on in styles.
3 Deviations with ALMA as the Basis
3 — Non-traditional basis
Like with you can change the base moving average
but to a lesser extent.
option are:
sma = Simple Moving Average
ema = Exponential Moving Average
wma = Weighted Moving Average
vwma = Volume Weighted Moving Average
rma = Running Moving Average
alma = Arnaud Legoux Moving Average
hma = Hull Moving Average
█ OTHER SECTIONS
• LIMITATIONS: again this is base on moving average so there is a lag factor, the cloud do not work without volume so if the indicator can not pull volume data you are left with the standard bands.
• NOTE this is a trimmed version of still functions the same.
• THANKS: rumpypumpydumpy for the inspiration
BB+RSI+EMA BUY/SELL SignalsBINANCE:BTCUSDT
* * * TESTED ON BTCUSDT 4H CHART * * *
The indicator gives signals based on candles touching BB lines and RSI oversold/overbought conditions, also a 200 EMA filter is used to trade following the major trend.
Only LONG signals are given.
Signals are divided in 3 categories based on their strenght:
- Weak BUY/SELL (green/red circles on chart)
- normal BUY/SELL (green/red triangles with "BUY" or "SELL" text on chart)
- strong BUY/SELL (green/red labels with "STRONG BUY" or "STRONG SELL" text on chart)
You can use signals from the same category as triggers for entering or exiting a trade or you can try using signals from different categories
All indicators settings can be costumized
Every signal label can be turned ON/OFF
EMA that changes color based on last candle close can be turned ON/OFF
Alerts can be set for:
- General Signals (every signal will trigger it)
- Weak Signals (only weak signals will trigger it)
- Normal Signals (only normal signals will trigger it)
- Strong Signals (only strong signals will trigger it)
BBI Bollinger BandsBBI (Bull and Bear Index) is an indicator aims on measuring the general short/mid-term (< 1 month) trend and sentiment of the stock/market. It used an average of 4 SMAs (3, 6, 12, 24) as a cut-off of a bullish/bearish trend. In general, YMMV, you can enter when close> BBI and exit when close<BBI.
BBI Bollinger Bands uses BBI as "basis" and calculates variations (Stdev) of BBI during the past several days. In general, BBI Boll band is more volatile than the traditional Boll Band.
The "possible entry and exit" function is for fun, trying to spot the point where there is extreme fear and optimism, not necessarily working yet.
Stochastic RSI Heat Bollinger BandsThis indicator is based on a combination of the famous Bollinger Bands and the Stochastic RSI indicator.
Bands are dynamically colored (and filled) with a RGB color composed by red and green values, directly generated from the average Stochastic RSI current value.
By default, colors represent the following status -> green zone is overgought & red zone is oversold.
A screener is also displayed on the chart, representing StochRSI K and D lines values, RSI value, as well as the current status (Overbought/Oversold) of the StochRSI and RSI indicators.
Notes:
The heat color and the screener status are both based on the average value between the K and D lines (for stochastic RSI based heat)
Bands can be disabled in options to use this indicator as a simple moving average colored by the Stochastic RSI heat color.
Options:
Various moving average types (SMA, EMA, SMMA, VWMA...)
Inversion of colors between overbought and oversold status
Enabling/disabling heat color on bands / basis line and bands background color
Show/Hide the screener
Color source can be modified to base the heat on the RSI instead of the Stochastic RSI value
Standards Bollinger bands, Stochastic and RSI parameters
Example
Feel free to suggest any improvements in comment.
Bollinger bands dynamic alertsThis triple Bollinger script is very useful for options traders to determine the trend condition. When the trend stays within 1 sigma limits it is termed as "congestion", breakout of congestion starts the "trending" phase and the big breakout termed "Blowout" happens when the underlying crosses the 2sigma and reaches 3 sigma limits in very short time at steep trend angles. The script provides dynamic alerts as soon as the underlying breaks out of these zones and enables options traders to stay in the trade longer. www.tradingview.com
BollingerBands Strat + pending order alerts via TradingConnectorSoftware part of algotrading is simpler than you think. TradingView is a great place to do this actually. To present it, I'm publishing each of the default strategies you can find in Pinescript editor's "built-in" list with slight modification - I'm only adding 2 lines of code, which will trigger alerts, ready to be forwarded to your broker via TradingConnector and instantly executed there. Alerts added in this script: 14, 17, 20 and 23.
SCRIPT INCLUDES PENDING ORDERS AND ALERTS! Alert will be sent to MetaTrader when order is triggered, but not yet filled. That means if market conditions change and order does not get filled, it needs to be cancelled as well, and there are alerts for that in the script as well.
How it works:
1. TradingView alert fires.
2. TradingConnector catches it and forwards to MetaTrader4/5 you got from your broker.
3. Trade gets executed inside MetaTrader within 1 second of fired alert.
When configuring alert, make sure to select "alert() function calls only" in CreateAlert popup. One alert per ticker is required.
Adding stop-loss, take-profit, trailing-stop, break-even or executing pending orders is also possible. These topics have been covered in other example posts.
This routing works for Forex, indices, stocks, crypto - anything your broker offers via their MetaTrader4 or 5.
Disclaimer: This concept is presented for educational purposes only. Profitable results of trading this strategy are not guaranteed even if the backtest suggests so. By no means this post can be considered a trading advice. You trade at your own risk.
If you are thinking to execute this particular strategy, make sure to find the instrument, settings and timeframe which you like most. You can do this by your own research only.
Asian Session Bollinger BandsThis is a fairly simple adjustment of the Bollinger Bands highlighting and giving the character to the Asian session.