EXAMPLES:enhanced_taThis script is created to demonstrate usage of enhanced ta library which is present here :
Following custom indicators are populated in this script:
ma (Select moving average)
atr/atrpercent (With custom moving average)
bands - Bollinger Band, Keltner Channel, Donchian Channel (All with enhanced versions and additional options)
bandwidth - Bandwidth for the bands available. Uses same input as that of bands
bandpercent - Percentage in relation to band upper and lower levels. Uses same input as that of bands.
oscillator (oscillatorRange) - Generating custom overbought oversold regions.
Display Options
Display individual indicator by selecting them through dropdown. If you select all, we also look at overlay and non-overlay parameters to show/hide only those indicators which are applicable on candle overlay or as separate window.
布林帶(BB)
RSI OBLIVION This is a powerful tool if combined with other parameters. It's an advanced version of an RSI .
It shows OB and OS conditions and price direction or shift of the trend.
This indicator can be used in various ways with all markets.
The current settings are designed to work with futures market.
Combined with our TSI and Price action, RSI OBLIVION is the most reliable KPI out there.
Reached out to us for assistance.
Bolinger strategy v1 openFind lows based on divergence on bollinger bands .
Works great on stocks and index, no success on forex.
Different stock/index requires different values.
Exit is not perfect, often on the safer side.
Example settings: NASDAQ:OMXS30, 30m: 25 0.452 0.42 0.453 2 62 20
Lower bbrower = buys harder dips, too low will cause buy during fall.
Higher bbrhigher = buys on lower dips
One of my first scripts, so code is not pretty
Moving Average Band - Taylor V1A Very Simple Strategy From Moving Average
- Price Breakout Upper Band = Long
- Price Breakout Lower Band = Short
Moving Average Type = Able to Change RMA, EMA, SMA, WMA
Moving Average Period = Able to Change
Upper Band & Lower Band Gap = Able to Change
With Stop Lose & Take Profit = Able to Change
[jav] Better Bollinger BandsBetter Bollinger Bands (BBB)
This script is a modification of classic Bollinger Bands (BB).
CHARACTERISTICS
Main improvement over BB:
There is no need to introduce a standard deviation multiplier (usually 2).
Here, only a length is needed (usually 20 bars for BB).
Other features:
The type of moving average can be selected: sma, ema, vwma, wma or rma.
An inner band is plotted as an additional indication of approaching extreme levels.
Classic BB can also be shown on the graph for the sake of comparison.
CALCULATIONS
The calculation of BBB is done by adding three different contributions:
Standard deviation of price
Standard deviation of (price minus moving average)
Average of (high - low) over length.
RESULTS
It looks like BBB follows prices more smoothly (without the typical overshoots of BB). Also, it fits extreme values with higher accuracy. Finally, usually it doesn't cross through prices at less relevant, intermediate higher highs or lower lows, which can be advantageous.
See the comparison between red BBB vs blue BB:
Both vwma and ema seem to give decent BBB values using the standard length of 20 bars.
Take Profit On Trend (by BHD_Trade_Bot)The purpose of strategy is to detect long-term uptrend and short-term downtrend so that you can easy to take profit.
The strategy also using BHD unit to detect how big you win and lose, so that you can use this strategy for all coins without worry about it have different percentage of price change.
ENTRY
The buy order is placed on assets that have long-term uptrend and short-term downtrend:
- Long-term uptrend condition: ema200 is going up (rsi200 greater than 51)
- Short-term downtrend condition: 2 last candles are down price (use candlestick for less delay)
CLOSE
The sell order is placed when take profit or stop loss:
- Take profit: price increase 1 BHD unit
- Stop loss: price decrease 2 BHD units
The strategy use $15 and trading fee is 0.1% for each order. So that, in the real-life, if you are using trade bot, it will need $1500 for trading 100 coins at the same time.
Pro tip : The 1-hour time frame for altcoin/USDT has the best results on average.
7 Moving Averages [Plus]Moving Averages are price based, lagging (or reactive) indicators that display the average price of a security over a set period of time. A Moving Average is a good way to gauge momentum as well as to confirm trends, and define areas of support and resistance. Essentially, Moving Averages smooth out the “noise” when trying to interpret charts. Noise is made up of fluctuations of both price and volume. Because a Moving Average is a lagging indicator and reacts to events that have already happened, it is not used as a predictive indicator but as an interpretive one for confirmations and analysis.
Bollinger Bands (BB) are a widely popular technical analysis instrument created by John Bollinger. The BB consist of a band of three lines which are plotted in relation to security prices. The line in the middle is usually a Simple Moving Average (SMA) set to a period of 20 days (the type of trend line and period can be changed by the trader; however a 20 day moving average is by far the most popular). The SMA then serves as a base for the Upper and Lower Bands which are used as a way to measure volatility by observing the relationship between the Bands and price. Typically the Upper and Lower Bands are set to two standard deviations away from the SMA (The Middle Line); however the number of standard deviations can also be adjusted by the trader.
This script shows 6 moving averages and Bollinger Bands.
Features:
- Standard MA inputs.
- MA type.
- MA period.
- MA source.
- MA resolution (time frame).
- MA Offset.
- Forecasting : forcasted prices are calculated using our MAType and MASource for the MAPeriod.
- Trail: Show only candles not included in the MA calculation.
The color of MA1 depends on the chosen strategy, by default this is the 3EMA strategy. You can also select "Pivot Point Supertrend" or "Ichimoku Trend"
Added "Parabolic Stop and Reverse (PSAR)" . The PSAR is a time and price technical analysis tool primarily used to identify points of potential stops and reverses. In fact, the SAR in Parabolic SAR stands for "Stop and Reverse". The indicator's calculations create a parabola which is located below price during a Bullish Trend and above Price during a Bearish Trend.
Added "Linear Regression Channel" which can be correctly plotted on logarithmic charts. A linear regression channel consists of a median line with 2 parallel lines, above and below it, at the same distance. Those lines can be seen as support and resistance. The median line is calculated based on linear regression of the closing prices but the source can also be set to open, high or low. The height of the channel is based on the deviation of price to the median line. Extrapolating the channel forward can help to provide a bias and to find trading opportunities.
MACD + BB + RSI Strategy [Alorse]A very simple and highly effective strategy that combines 3 famous indicators:
MACD
Bollinger Bands
RSI
Entry conditions are:
The MACD line crosses over the signal line.
RSI less than 50
Price below the BB baseline
Exit conditions are:
RSI greater than 70
Closing price higher than the upper BB
Or when the price hits the Stop Loss defined by you (Feature).
Bollinger Bands With User Selectable MABollinger Bands with user selection options to calculate the moving average basis and bands from a variety of different moving averages.
The user selects their choice of moving average, and the bands automatically adjust. The user may select a MA that reacts faster to volatility or slower/smoother.
Added additional options to color the bands or basis based on the current trend and alternate candle colors for band touches. Options:
REACT SLOW/SMOOTH TO VOLATILITY
simple moving average (Regular Bollinger Bands)
REACT SMOOTH TO VOLATILITY
exponential moving average (EMA Bollinger Bands)
weighted moving average (Weighted MA Bollinger Bands)
exponential hull moving average (Hull Bollinger Bands with better smoothing)
HIGHLY ADJUSTABLE TO VOLATILITY
Arnaud Legoux Moving average (ALMA Bollinger Bands)
Note: 0.85 ALMA default for more smoothing, set offset=1 to turn off smoothing
REACT HARSH TO VOLATILITY
least squares moving average (Least Squares Bollinger Bands)
REACT VERY FAST TO VOLATILITY
hull moving average (Hull Bollinger Bands or Hullinger Bands)
VALUE ADDED: This script is unique in that no other Bollinger Bands indicator offers a user selection for moving average, and some of the options do not exist yet as Bollinger Bands indicators.
Definitions:
Bollinger Bands: A Bollinger Band® is a technical analysis tool defined by a set of trendlines plotted two standard deviations (positively and negatively) away from a simple moving average (SMA) of a security's price, but which can be adjusted to user preferences.
Exponential Bollinger Bands: The most important characteristics of the Exponential Bollinger Bands indicator are: When the market is flat, the bands will stay much closer to prices. When the volatility is high, the bands move away from prices faster.
Hull Bollinger Bands: Bollinger Bands calculated by Hull moving average, rather than simple moving average or ema. The Hull Moving Average (HMA), developed by Alan Hull, is an extremely fast and smooth moving average. In fact, the HMA almost eliminates lag altogether and manages to improve smoothing at the same time.
Exponential Hull Bollinger Bands: Bollinger Bands calculated by Exponential Hull moving average, rather than simple moving average or ema. The Exponential Hull Moving Average is similar to the standard Hull MA, but with superior smoothing. The standard Hull Moving Average is derived from the weighted moving average (WMA). As other moving average built from weighted moving averages it has a tendency to exaggerate price movement.
Weighted Moving Average Bollinger Bands: A Weighted Moving Average (WMA) is similar to the simple moving average (SMA), except the WMA adds significance to more recent data points.
Arnaud Legoux Moving Average Bollinger Bands: ALMA removes small price fluctuations and enhances the trend by applying a moving average twice, once from left to right, and once from right to left. At the end of this process the phase shift (price lag) commonly associated with moving averages is significantly reduced. Zero-phase digital filtering reduces noise in the signal. Conventional filtering reduces noise in the signal, but adds a delay.
Least Squares Bollinger Bands: The indicator is based on sum of least squares method to find a straight line that best fits data for the selected period. The end point of the line is plotted and the process is repeated on each succeeding period.
RSI Rising Crypto Trending StrategyThis 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 !
Bricklayer's Volatility MeterBricklayer's Volatility Meter will calculate Bollinger Bands Width up to 20 different lengths between lowest and highest input.
• If it is increasing, the brick will be green.
• If it is decreasing, the brick will be red.
The idea is that if volatility is decreasing across an increasing number of periods, the market will be ready for different strategies than when it is increasing.
Good luck trading!
Bollinger Bands And Aroon Scalping (by Coinrule)Many technical indicators can be profitable in certain market conditions while failing in others. No indicator is perfect alone.
All the best trading strategies involve multiple indicators and leverage the benefit of each of them. The following is an optimised strategy based on Bollinger Bands and the Aroon indicator.
The Bollinger Bands are among the most famous and widely used indicators. They can suggest when an asset is oversold or overbought in the short term, thus provide the best time for buying and selling it.
A strategy buying dips can work well during times of uptrend. Downtrends will result in a drawdown for the P&L of the strategy. The suggested approach minimises the drawdowns, ensuring that the system trades only when it's more likely to close the trade in profit.
The Setup
ENTRY
The price crosses below the basis line of the Bollinger Band indicator
The Aroon Indicator is above 90
EXIT
The price crosses below the upper Bollinger Band
The Aroon Indicator drops below 70
The Aroon Indicator plays a key role in this strategy. It acts as a confirmation that the asset is currently in an uptrend. On the other hand, it acts as a stop if market conditions deteriorate. The strategy uses an Aroon Indicator set to 288 periods to provide a longer-term view on market conditions, not being heavily dependent on short-term volatility.
The best time frame for this strategy based on our backtest is the 4-hr . The 1-hr can work well with three times more trades, on average. As trades increase, the profitability decreases. Yet again, this is the confirmation that trading more does not mean gaining more.
To make the results more realistic, the strategy assumes each order to trade 30% of the available capital. A trading fee of 0.1% is taken into account. The fee is aligned to the base fee applied on Binance, which is the largest cryptocurrency exchange.
Berzerker IndexSome pairs have their own distinct behavior. That includes volatility, news reactiveness, trend x chop day discrepancy, and other qualities.
At first, I tried to measure this with the Choppiness Index, but it looks pretty much alike when you compare symbols like EURNZD and GBPCAD, but my testing shows some major behavioral differences between the two. Hence, I decided to build my own measurement which I later decided to call Berzerker Index.
• The calculation takes the previous value and adds 1, 3, 7, or 15 depending on how many standard deviations the price beats.
• Deviations use Jurik Moving Average as a central line. If there is no new penetration, the total value will not be increased.
• At the end of the value update, the result will decay whether it is changed or not. The readings decay significantly faster if the price is between the bands.
• The beginning of the calculation is the beginning of the chart. There isn't any period for the calculation.
As you can see, from the beginning of the year, the maximum readings on EURNZD are 49.8 and 73.6 for GBPCAD. This is what I wanted to achieve - find some way to clearly differentiate the pairs. Later, I went on EURUSD to confirm the results. EURUSD should be a calmer pair and it shows 33.5 which supports the theory.
The symbols with small bars and explosions on events and bank meetings will reach high values, whereas those that are more predictable with less extreme movements will be found below 45.
Lastly, you may identify long periods of continuous descend on the indicator as setting up for a large explosion. This is not the original idea but could work nevertheless.
Of course, I will further update this indicator if I get improvement ideas...
FAQ:
► Does this repaint?
• No.
► Where is the buy signal?
• There isn't one. The purpose is to study repeated behavioral patterns of different symbols, not to drink from the holy grail.
► Why is it called the 'Berzerker' Index?
• I don't know.
I used @everget's version of Jurik's Moving Average with his consent.
What do ya thing?
[KL] Double Bollinger Bands Strategy (for Crypto/FOREX)This strategy uses a setup consisting of two Bollinger Bands based on the 20 period 20-SMA +/-
(a) upper/lower bands of two standard deviations apart, and
(b) upper/lower bands of one standard deviation apart.
We consider price at +/- one standard deviation apart from 20-SMA as the "Neutral Zone".
If price closes above Neutral Zone after a period of consolidation, then it's an opportunity for entry. Strategy will long, anticipating for breakout.
The illustration below shows price closing above the Neutral Zone after a period of consolidation.
a.c-dn.net
Position is exited when prices closes at Neutral Zone (being lower than prior bars)
RSI in Bollinger bandsI added Bolinger bands to the RSI indicator.
This shows you the area of reversal for the RSI. Generally, when the indicator falls out of the bands, you'll see a quick reversal. Indeed this is a better way to find the overbought and oversold areas.
Forex Scalping 1min Bollinger Bands, RSI and ADX Trading SystemThis is a Forex Scalping Trading Sytem based on the Bollinger Bands.
Its suited for major pairs, with lowest possible comission (below 1 pip) and with timeframes ranging between 1-15 min.
Indicators:
Bollinger bands
ADX
RSI
Rules for entry:
Long Entry: price to move below the upper Bollinger Bands RSI raise above the 30 line and ADX<32 at the same time.
Short Entry: price to move above the upper Bollinger Bands, RSI raise below the 70 line and ADX<32 at the same time.
Rules for exit
Profit Exit: 3 options: 1, exit position when the price touches the middle band, 2) when the price touches the opposite band, X pips target profit.
Loss Exit: X pips loss
Pump blaster based on Pump FinderThis is based on a video I watched while searching for good indicators to use for scanning pumps across the crypto market.
You can probably find the video by searching for "Pump Finder On 15 Minute Chart With Best Trading Indicators".
The approach presented uses LSMA and BB B% to detect pumps.
Results:
It does detect many pumps, it also detects many dumps...
I'm not very impressed after this first attempt but might give it another try if I come up with maybe something I'm doing wrong while trying to automate in a script the original strategy from the video.
Instructions:
This indicator is compatible with the backtest script we use.
It plots 1 for buy and 2 for sell. The rest of the plots are for debugging the strategy and can be ignored.
It's meant to be used on 15mins tf
Improved Bollinger Swing Strategy Stock NasdaqThis is an improved bollinger band strategy adapted to Nasdaq Index/Stocks.
The new update include a multiple logic calculation BB adapted for long and short, together with a risk management using movement in %.
Rules for entry
For long we have a crossover between the close and the lower band from the bb
For long we have a crossover between the close and the upper band from the bb
Rules for exit
We exit when we either find a reverse condition, or if we hit the take profit/stop loss levels.
If you have any questions, let me know !
Bollinger bands + EMAI discovered a video on YouTube which was published on Jan 22, 2021. I just coded on TradingView. It's performing better in smaller TimeFrames (1m, 5m, ...).
How does it work? How to use?
This is based on Bollinger Bands and Exponential Moving Average. The logic is so simple: It will wait until the a candle starts to poke out of the BB. When it figures out a price outside the band, it will be altered for next candle. If the next candle close back inside the band, it will be marked with a up triangle (for long positions) or down triangle (for short positions). The take profit level would be the Exponential Moving Average.
It can be used as a confirmation alongside other techno fundamental tools and analysis.
P.S. As it's prohibited by community rules to link to outside, while it seems to be a kind of advertisement, I cannot share the link to the video. Cheers to those creative and kind YouTubers!
Multiband Oscillator - Zigzag versionJust variation of Multi Band oscillator present here: Multi-Band-Channel-Oversold-Overbought-Oscillator
Changes are:
Instead of regular moving average, here I am using Zigzag Moving average. This is calculated in similar to as explained in: Zigzag-Cloud
Instead of ATR, using AZR (Average Zigzag Range) - Average-Zigzag-Range-AZR
Rest of the logic remains same.
Number of bands used 100 - which means, calculate 100 Bollinger bands with Std Dev Multiplier starting from 0.1 and with step 0.1 for the next one.
Which divides price ranges into 200 equal parts. Calculate what is the current range and plot them.
Overbought - Oversold levels are dynamics. They are dependent on the max and min state price has reached in last 80 days. Offset and factor can be used to adjust overbought oversold levels.
Ultimate Moving Average Bands [CC+RedK]The Ultimate Moving Average Bands were created by me and @RedKTrader and this converts our Ultimate Moving Average into volatility bands that use the same adaptive logic to create the bands. I have enabled everything to be fully adjustable so please let me know if you find a more useful setting than what I have here by default. I'm sure everyone is familiar with volatility bands but generally speaking if a price goes above the volatility bands then this is either a sign of an extremely strong uptrend or a potential reversal point and vice versa. I have included strong buy and sell signals in addition to normal ones so darker colors are strong signals and lighter colors are normal ones. Buy when the lines turn green and sell when they turn red.
Let me know if there are any other scripts you would like to see me publish!
Williams Vix Fix BB + RVI & Squeeze (Keltner) filtered BBW + %BLegend:
- When line touches or crosses red band it is Top signal (Williams Vix Fix)
- When line touches or crosses blue band it is Bottom signal (Williams Vix Fix)
- Red dot at the top of indicator is a Top signal (Relative Volatility Index)
- Blue dot at the top of indicator is a Bottom signal (Relative Volatility Index)
- Gray dot at the bottom of indicator is a Keltner Squeeze signal (filtered by either BBW or %B)
- Silver dot at the bottom of indicator is a weaker Keltner Squeeze signal (Doesn't meet either BBW or %B filter)
- Purple is a 'Half Squeeze' only 1 Bollinger Band crossed the Keltner Channel
This is an attempt to make use of the main features of all 6 of these Volatility tools :
- Williams Vix Fix + Bollinger Bands
- Relative Volatility Index (RVI)
- The crossing of Keltner Channel by the Bollinger Bands (Squeeze)
Conditions to Help Filter Keltner Squeeze:
- When the Bollinger Bands Width (BBW) value is lower than the lowest value within a period plus a margin of error (percentage)
- When the %B value reaches the alert level detailed in LazyBears indicator. ()
If it meets one of these 2 filters and there is a Keltner Channel Squeeze than gray color or else if the squeeze doesn’t meet one of the 2 filters than silver color (weaker Squeeze).
The goal is to find the best tool to find bottoms and top relative to volatility and filter the squeeze.
The idea is that both Williams Vix Fix + Bollinger Bands and Relative Volatility Index both already give the main volatility bottom and top so combining them to compare and validate the signals makes sense. (Note: Bottom signal is more accurate than top). In addition, I added the squeeze to show the potential breakout pressure and to compliment bottom and top signals.
For ideas on how to continue this work :
I encourage ideas to combine the Williams Vix Fix and Relative Volatility Index for volatility top and bottom (with probability would be awesome)
And I encourage ideas to filter Keltner Channel Volatility Squeeze using both the BBW or %B or other volatility squeeze indicators or a combination of all of them.
Also, I encourage people to post their top parameters for the BBW and %B to filter the Keltner Squeeze in the comments or to send me them by chat relative to this indicator.
Half the battle is making the indicator, while the other half is tuning the parameters.
The current parameters are one of the least aggressive, and act as a mild filter.
Note: You can also change the threshold for RVI top and bottom.
And this work builds on my last indicator:
If you have ideas on this work or have ideas on potential combinations please message me, I always want to learn or get perspective on how it can be improved.
Sharing is how we get better (Parameter tuning, ideas, discussion)
I don’t reinvent the wheel, just trying to make the wheel better.
Bollinger Bands Touch MapThis simple script based on Bollinger Bands to collect Touch Point at bandsand display them on the map. Detail of rule as below:
1.Define Touch Point
1.1.Touch Point at Lower Band
+ Key bar:
- Open Price lower than BB lower band, Close Price higher than BB lower band
+ Touch Point:
- Median Price (HL2) of Key bar
1.2.Touch Point at Upper Band
+ Key bar:
- Open Price higher than BB upper band, Close Price lower than BB upper band
+ Touch Point:
- Median Price (HL2) of Key bar
1.3.Zero Point
- Close Price of Current bar
===================================
2.Touch Map
+ Last 5 Touch Point will be show on the map
+ Newest Touch point is numbered as (1) and show at the left of Zero Point
+ Each Point has a label show point's value
===================================
3.Fibonacci
+ Enable: Apply to number of Touch Points indicated
+ Style Up: 0 Level at the bottom
+ Style Down: 0 Level at the top
===================================
4.123 Pattern
+ Pattern: dot 2 and dot 3 at the Top and the Bottom of group 1234
+ M Pattern: dot 3 at the Top of group 135 and at the Bottom of group 234
+ W Pattern: dot 3 at the Bottom of group 135 and at the Top of group 234
===================================
5.Supply Demand Zone
5.1.Supply Zone
+ Supply Zone is area map structure change from upward to downward
+ Supply Zone is limited by 2 dots highest before upward structure broken
5.2.Demand Zone
+ Demand Zone is area map structure change from downward to upward
+ Demand Zone is limited by 2 dots lowest before downward structure broken
============================================================================
6.6.Over Block
6.1.Overbought Block
+ Overbought Block is location Long position covering
+ Ovb Block is limited by higest high and upper band at top of map
6.2.Oversold Block
+ Oversold Block is location Short position covering
+ Ovs Block is limited by lowest low and lower band at bottom of map
===================================
7.RSI Column
+ RSI Overbought is marked by Overbought color
+ RSI Oversold is marked by Oversold color
+ RSI Normal is marked by Normal color
+ Symbol ▲: RSI growing
+ Symbol ▼: RSI falling
===================================
8.Volume Direction
+ Volume growing is marked by Up Color
+ Volume falling is marked by Down Color
+ New Highest Volume on the map is marked by High Color and H Label
+ New Lowest Volume on the map is marked by Low Color and L Label
+ Volume higher than Median level is marked by Up Color and M Label
===================================
9.Useful features
+ Quickly find chart patter: 123, M, W...
+ Quickly find wave patter: I, V, N...
+ Quickly find Key level when moving between different Time Frame
+ Quickly recognize chart is trending or trendless
+ Quickly recognize divergence of Price and Volume
+ Quickly calculate Entry, Stoploss, Takeprofit by using Fibonacci