Median Absolute Deviation Filtered SMA & BBMedian Absolute Deviation (MAD) is a robust measurement of variability and more resilient against outliers and small samples.
This experiment uses MAD as a means of filtering outliers from an SMA calculation. First we construct the equivalent of a Bollinger Band, but based on the median as the basis and a multiple( k ) of MAD as the outlier cutoff.
k can be set a number of ways. As a simple multiple (3 - very conservative / 2.5 - moderately conservative / 2 - poorly conservative). Alternatively MAD can be used as an estimator of standard deviation by using a multiple of 1.4826 (SD1 - 1.4826 / SD2 - 2.9652 / SD3 - 4.4478).
Once we have a cutoff range an SMA is calculated with the outliers filtered out. Additionally a Bollinger band can be output using the filtered SMA as the basis and a multiple of the MAD instead of SD for the bands.
Bande di Bollinger (BB)
MultiTimeFrame Shifting Predictive Bollinger BandsThis is the optimized version of my MTFSBB indicator with capability of possible bands prediction in case of negative shifting (to the left).
Make me happy by using it and sending me your ideas about the prediction.
Bollinger Band Volatility Spread VisualizerThis indicator was created to see the total dollar (or whatever currency pair) amount spread between the upper and lower Bollinger Bands. This knowledge of knowing this spread can be used to indicate upcoming periods of high volatility in a market. The fundamental idea behind predicting periods of high volatility is backed up by the idea that periods of low volatility are followed by periods of high volatility and vice versa.
Based on this knowledge, the numerical spread of the Bollinger Bands, as shown in the indicator, we can deduce that when the value is super low, we can expect a period of high volatility AKA: big move incoming.
This indicator is not fully finished because this was my first time coding in Pinescript and I wanted to post the basic indicator first.
My future plans for improving this indicator include:
Adding customization as an option to choose your personal BBands settings that this indicator is based off of
Potentially converting this indicator as a TradingView Strategy where a signal would go off when the spread reaches a certain threshold
3MAs & BB, Time-Res, Low-VolTriple MAs with EMA/SMA option, and specific timeframe options.
Very customizable.
Bollinger Bands
If BollingerBand Width is lowest in 100 bars it fills background.
Squeeze Momentum Indicator [LazyBear] vX by DGTModified version of Squeeze Momentum Indicator visualizing on Price Chart
author: LazyBear, modified by KıvançÖZBİLGİÇ
Bolinger Band + Mid Band using EMAEMA become more popular than SMA.
EMA reacts faster than SMA.
Mid Band helps you to find out trend.
Ichimoku ++ public v0.9Description:
The intention of this script is to build/provide a kind of work station / work bench for analysing markets and especially Bitcoin . Another goal is to get maximum market information while maintaining a good chart overview. A chart overloaded with indicators is useless because it obscures the view of the chart as the most important indicator. The chart should be clear and market structure should be easy to see. In addition, some indicator signals can be activated to better assess the quality of signals from the past. The chart environment or the chart context is important for the quality of a signal.
The intention of this script is not to teach someone how to trade or how to use these Indicators but to provide a tool to analyse markets better and to help to draw conclusions of market behaviour in a higher quality.
A general advise:
Use the included indicators and signals in a confluent way to get stoploss, buy and sell entry points. SR clusters can be identified for use in conjunction with fractals as entry and exit pints. My other scripts can also help. Prefer 4 hours, daily and a longer time frame. There is no "Holy Grail" :).
If someone is new to trading you should learn about the indicators first. Definitely learn about Ichimoku Cloud Indicator.
Integrated indicators are:
Ichimoku Cloud and signals
Parabolic SAR and signal
ATR stop
Bollinger Bands
EMA / SMA and background color as signal
Williams Fractals and signal
Puell Multiple signal
Double BB + Multi Ema Use this indicator to identify the market trend, possible dynamic Supports or Resistances and possible setbacks or corrections.
Take the Moving Averages (50,75,100,200) as a reference to identify if the market is bullish or bearish.
Have as reference the Moving Averages (8,15,20,25) as possible dynamic Supports or Resistances.
Have the BB as a reference, to identify possible setbacks or changes in trends.
(MTF) Bollinger Bands + RE RSIs + Hidden Supports & ResistancesI merged some of my previous written indicators, because a combination of multi-timeframe Bollinger Bands, RE RSI and Resistance/Support levels could help a lot.
Don't forget to add my other useful indicator (Classical SnR) to the chart to maximize your profit!
Price Distance to its MA by DGTPrices high above the moving average (MA) or low below it are likely to be remedied in the future by a reverse price movement as stated in an Article by Denis Alajbeg, Zoran Bubas and Dina Vasic published in International Journal of Economics, Commerce and Management
Here comes a study to indicate the idea of this article, Price Distance to its Moving Averages (P/MA Ratio)
The analysis expressed in the paper indicates that there is a connection between the distance of the prices to moving averages and subsequent returns : portfolios of stocks with lower prices to moving averages generally outperformed portfolios of stocks with higher prices to moving averages. This “overextended” effect is more pronounced when using shorter moving averages of 20 and 50 days, and is especially strong in short-term holding periods like one and two weeks. The highest annual returns are recorded when buying in the range of 0-5% below shorter moving averages of 20/50 days, and 0-10% below longer moving averages of 100/200 days. However, buying very far below almost all moving averages on almost all holding periods produces the lowest returns.
The concept of this study recognizes three different modes of action.
In a clearly established upward trend traders should be buying when prices are near or below the MA line and selling when prices move too far above the MA.
Conversely, in downward trend stocks should be shorted when reaching or going above the moving average and covered when they drop too far below the MA line.
In a sideways movement traders are advised to buy if the price is too low below the moving average and sell when it goes too far above it
Short-term traders can expect to outperform in a one or two week time window if buying stocks with lower prices compared to their 20 and 50 SMA/EMA, one to two-week holding periods is quite high, ranging from 72,09% to 90,61% for the SMA(20, 50) and 85,03% to 87,5% for the EMA(20, 50). The best results for the SMA 20 and 50, on average, are concentrated in the region of 0-5% below the MA for the majority of holding periods. Buying very far below almost all MA in almost all holding periods turns out to be the worst possible option
Candle patterns, momentum could be used in conjunction with this indicator for better results. Try Colored DMI and Ichimoku colored SuperTrend by DGT
Short in Bollinger Band Down trend (Weekly and Daily) // © PlanTradePlanMM
// 6/14/2020
// ---------------------------------------------------
// Name: Short in Bollinger Band Down trend (Weekly and Daily)
// ---------------------------------------------------
// Key Points in this study:
// 1. Short in BB Lower band, probability of price going down is more than 50%
// 2. Short at the top 1/4 of Lower band (EMA - Lower line), Stop is EMA, tartget is Lower line; it matches risk:/reward=1:3 naturally
//
// Draw Lines:
// BB Lower : is the Target (Black line)
// BB EMA : is the initial Stop (Black line)
// ShortLine : EMA - 1/4 of (Stop-target), which matches risk:/reward=1:3
// Prepare Zone : between EMA and ShortLine
// shortPrice : Blue dot line only showing when has Short position, Which shows entry price.
// StopPrice : Black dot line only showing when has Short position, Which shows updated stop price.
//
// Add SMA50 to filter the trend. Price <= SMA, allow to short
//
// What (Condition): in BB down trend band
// When (Price action): Price cross below ShortLine;
// How (Trading Plan): Short at ShortLine;
// Initial Stop is EMA;
// Initial Target is BB Lower Line;
// FollowUp: if price moves down first, and EMA is below Short Price. Move stop to EMA, At least "make even" in this trade;
// if Price touched Short Line again and goes down, new EMA will be the updated stop
//
// Exit: 1. Initial stop -- "Stop" when down first, Close above stop
// 2. Target reached -- "TR" when down quickly, Target reached
// 3. make even -- "ME" when small down and up, Exit at Entry Price
// 4. Small Winner -- "SM" when EMA below Entry price, Exit when Close above EMA
//
// --------------
// Because there are too many flags in up trend study already, I created this down trend script separately.
// Uptrend study is good for SPY, QQQ, and strong stocks.
// Downtrend Study is good for weak ETF, stock, and (-2x, -3x) ETFs, such as FAZ, UVXY, USO, XOP, AAL, CCL
// -----------------------------------------------------------------------------------------------------------------
// Back test Weekly and daily chart for SPY, QQQ, XOP, AAL, BA, MMM, FAZ, UVXY
// The best sample is FAZ Weekly chart.
// When SPY and QQQ are good in long term up trend, these (-2x, -3x) ETFs are always going down in long term.
// Some of them are not allowed to short. I used option Put/Put spread for the short entry.
//
Buy in Bollinger Band uptrend (Weekly and Daily) // © PlanTradePlanMM 6/14/2020
// ---------------------------------------------------
// Name: Buy in Bollinger Band uptrend (Weekly and Daily)
// ---------------------------------------------------
// Key Points in this study:
// 1. Long in BB Upper band, probability of price going up is more than 50%
// 2. Buy at the bottom 1/4 of upper band (Upper line - EMA), Stop is EMA, tartget is Upper line; it matches risk:reward=1:3;
//
// Draw Lines:
// BB Upper : is the Target (Black line)
// BB EMA : is the initial Stop (Black line)
// BuyLine : EMA20 + 1/4 of (Target-Stop), which matches risk:/reward=1:3 naturally
// Prepare Zone : between EMA and BuyLine
// buyPrice : Blue dot line only showing when has long position, Which shows entry price.
// StopPrice : Black dot line only showing when has long position, Which shows updated stop price.
//
// Add SMA(50) to filter the trend. Price >= SMA, allow to long
//
// What (Condition): in BB uptrend band
// When (Price action): Price cross over BuyLine;
// How (Trading Plan): Buy at BuyLine;
// Initial Stop is EMA;
// Initial Target is BB Upper Line;
//
// FollowUp: if price moves up first, and the EMA is higher than Entry point, Use EMA as new stop. At least "make even" in this trade;
//
// Exit: 1. Initial stop -- "Stop" when down first, close below stop price.
// 2. Target reached -- "TR" when up quickly, Target reached
// 3. make even -- "ME" when small up and down, Exit at entry Price
// 4. Small Winner -- "SM" when EMA above Entry price, Exit when close below EMA, and higher than entry Price
//
// --------------
// Because there are too many flags in up trend study already, I will create a down trend script separately.
// Uptrend study is good for SPY, QQQ, and strong stocks.
// Downtrend Study is good for weak ETF, stock, and (-2x, -3x) ETFs, such as FAZ, UVXY, USO, XOP, AAL, CCL
// -----------------------------------------------------------------------------------------------------------------
// Back test Weekly and daily chart for SPY, QQQ
// If it will be a big Gap down or a big down move, stop at close price could be a big loss; But this way could avoid may noise, to stay in a trending position longer.
// When buy in trending move, the position could be hold for a big range.
// The best samples are SPY and QQQ daily chart.
//
// Better to use another way to verify the long term up trend first.
// For single stock, it is better shows more relative strength than SPY.
MTF Shifting BBs + Reverse Engineering RSIs Overlay on ChartAnother multi-timeframe indicator presents 3 MTF (each) Bollinger Bands and 3 MTF (each) Reverse Engineering RSI and of course with shifting (left/right) capability.
RERSI in a simple term is the RSI but on the main chart alongside with candles.
There are many adjustable options like:
- Show/Hide each BB
- Show/Hide each MA
- Non-integer BB deviation values
- Positive/Negative shifting values
- Show/Hide each RSI
- Show/Hide each RSI Mid Level
- Adjustable Overbought, Oversold and Mid Levels values
I wrote this after my first script MTFSBB, because it's very useful to have BBs and RSIs together on a chart.
Calculating RERSIs will take some time, so be patient with it and feel free to use it.
BBMA : Bollinger Band & Moving AverageBased on trading technique by Mr Oma Ally, Technical Analysis Guru.
1. Bollinger Band - standard setting, MA20, Dev = 2
2. EMA 50 ( Line Color = Aqua )
3. WMA High ( wma5 High and wma10 High )
Area Pink : WMA5 High < WMA10 High
Area Gray : WMA5 High > WMA10 High
4. WMA Low ( wma5 Low and wma10 Low )
Area Green : WMA5 Low > WMA10 Low
Area Gray : WMA5 Low < WMA10 Low
5. If you wish to see wma lines, adjust the transparency at the menu.
This is just an indicator setting.
For technique and how to apply for trading, kindly please refer to web/youtube/class/etc :)
Bollinger Bands + Pivots - V2It drawes a higest or lowest pivot when price intersects with bollinger bands.
Bollinger Bands T3/SMA/EMAThis is Bollinger Bands script with an option to choose three different moving averages. The simple moving average is the original settings used by Mr Bollinger. Exponential is a popular choice as it adds more value to the recent price movements. T3 is a lot faster at adapting to the recent price. Compared to exponential, it gives even more value to the recent prices and furthermore, it is smoother. I use it to polish my True Range scripts.
Another upgrade is the ability to have a different colour of the channel when the baseline moves up or down.
Back to calculation? Is it better to use T3 with Bollinger? My opinion is that it depends on the trader. Both of them give you slightly different information and it is essential to look at the historical behaviour and answer for yourself. Will I use T3 calculation? Well, I built this script to find out if I want to.
Have a great trade!
Colored Directional Movement and Bollinger Band's Cloud by DGTThis study combines Bollinger Bands, one of the most popular technical analysis indicators on the market, and Directional Movement (DMI), which is another quite valuable technical analysis indicator.
Bollinger Bands used in conjunction with Directional Movement (DMI) may help getting a better understanding of the ever changing landscape of the market and perform more advanced technical analysis
Here are details of the concept applied
1- Plots Bollinger Band’s (BB) Cloud colored based on Bollinger Band Width (BBW) Indicator’s value
Definition
Bollinger Bands (created by John Bollinger ) are a way to measure volatility . As volatility increases, the wider the bands become and similarly as volatility decreases, the gap between bands narrows
Bollinger Bands, in widely used approach, consist of a band of three lines. Likewise common usage In this study a band of five lines is implemented
The line in the middle is a Simple Moving Average (SMA) set to a period of 20 bars (the most popular usage). The SMA then serves as a base for the Upper and Lower Bands. The Upper and Lower Bands are used as a way to measure volatility by observing the relationship between the Bands and price. the Upper and Lower Bands in this study are set to two and three standard deviations (widely used form is only two standard deviations) away from the SMA (The Middle Line), hence there are two Upper Bands and two Lower Bands. The background between two Upper Bands is filled with a green color and the background between two Lower Bands is filled with a red color. In this we have obtained Bollinger Band’s (BB) Clouds (Upper Cloud and Lower Cloud)
Additionally the intensity of the color of the background is calculated with Bollinger Bands Width ( BBW ), which is a technical analysis indicator derived from the standard Bollinger Bands indicator. Bollinger Bands Width, quantitatively measures the width between the Upper and Lower Bands. In this study the intensity of the color of the background is increased if BBW value is greater than %25
What to look for
Price Actions : Prices are almost always within the bands especially at this study the bands of three standard deviations away from the SMA. Price touching or breaking the BB Clouds could be considered as buying or selling opportunity. However this is not always the case, there are exceptions such as Walking the Bands. “Walking the Bands” can occur in either a strong uptrend or a strong downtrend. During a strong trend, there may be repeated instances of price touching or breaking through the BB Clouds. Each time that this occurs, it is not a signal, it is a result of the overall strength of the move. In this study in order to get a better understanding of the trend and add ability to perform some advanced technical analysis Directional Movement Indicator (DMI) is added to be used in conjunction with Bollinger Bands.
Cycling Between Expansion and Contraction : One of the most well-known theories in regards to Bollinger Bands is that volatility typically fluctuates between periods of expansion (Bands Widening : surge in volatility and price breaks through the BB Cloud) and contraction (Bands Narrowing : low volatility and price is moving relatively sideways). Using Bollinger Bands in conjunction with Bollinger Bands Width may help identifying beginning of a new directional trend which can result in some nice buying or selling signals. Of course the trader should always use caution
2- Plots Colored Directional Movement Line
Definition
Directional Movement (DMI) (created by J. Welles Wilder ) is actually a collection of three separate indicators combined into one. Directional Movement consists of the Average Directional Index (ADX) , Plus Directional Indicator (+D I) and Minus Directional Indicator (-D I) . ADX's purposes is to define whether or not there is a trend present. It does not take direction into account at all. The other two indicators (+DI and -DI) are used to compliment the ADX. They serve the purpose of determining trend direction. By combining all three, a technical analyst has a way of determining and measuring a trend's strength as well as its direction.
This study combines all three lines in a single colored shapes series plotted on the top of the price chart indicating the trend strength with different colors and its direction with triangle up and down shapes.
What to look for
Trend Strength : Analyzing trend strength is the most basic use for the DMI. Wilder believed that a DMI reading above 25 indicated a strong trend, while a reading below 20 indicated a weak or non-existent trend
Crosses : DI Crossovers are the significant trading signal generated by the DMI
With this study
A Strong Trend is assumed when ADX >= 25
Bullish Trend is defined as (+D I > -DI ) and (ADX >= 25), which is plotted as green triangle up shape on top of the price chart
Bearish Trend is defined as (+D I < -DI ) and (ADX >= 25), which is plotted as red triangle down shape on top of the price chart
Week Trend is assumed when 17< ADX < 25, which is plotted as black triangles up or down shape, depending on +DI-DI values, on top of the price chart
Non-Existent Trend is assumed when ADX < 17, which is plotted as yellow triangles up or down shape, depending on +DI-DI values, on top of the price chart
Additionally intensity of the colors used in all cases above are defined by comparing ADX’s current value with its previous value
Summary of the Study:
Even more simplified and visually enhanced DMI drawing comparing to its classical usage (may require a bit practice to get used to it)
As said previously, to get a better understanding of the trend and add ability to perform some advanced technical analysis Directional Movement Indicator (DMI) is used in conjunction with Bollinger Bands.
PS: Analysis and tests are performed with high volatile Cryptocurrency Market
Source of References : definitions provided herein are gathered from TradingView’s knowledgebase/library
Disclaimer: The script is for informational and educational purposes only. Use of the script does not constitutes professional and/or financial advice. You alone 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
GM 2 EMA Cross + BBScript for seeing the below EMAs
3
5
13
50
100
This also plots a red cross when -ve crossover of 3 by 5 EMA & green cross when +ve crossover of 3 by 5 EMA
Bollinger Bands
2
3
MultiTimeFrame Shifting Bollinger BandsJust 3 Bollinger Bands with different adjustable timeframes plus shifting (left/right) capability and non-integer deviation values.
I wrote this because I couldn't find the perfect BB indicator that matches my needs. Feel free to use it.
Triple MA + EMA + SMMA + BBCombined multiple scripts under one script.
Great for Free account users. ;-)
This script contains:
Moving Average
Exponential Moving Average
Smoothed Moving Moving Average
Bollinger Bands