Volume + VolatilityBefore I begin I want to mention:
1. This is a variation of the 'CCI & BB' made by matsu_bitmex (Link: ) and SigmaDraconis's 'On Balance Volume Oscillator + Bollinger Bands' (Link: )
2. While using this sometimes you may not notice the crossover so I've added the Line 'x' outside 'x' BB to only see if Line 3 and 4 crossed over
The indicator:
1. When the background is green and the 2 lines are going up it means uptrend
2. When the background is red and the 2 lines are going down it means downtrend
3. When there is a crossover and the background outside BB turns yellow, it means there is a lot of volatility or volume
How to use (Or how I use this):
1. All trades based on the yellow color MUST be during a trend
2. When the color changes to yellow for the 1st time in the direction of a trend it is advisable to enter
Dải Bollinger (BB)
VIX Cheat SheetHello!
This indicator - "VIX Cheat Sheet" - performs several calculations for $VIX against the asset on your chart. However, using $VIX as a risk proxy or volatility metric often fails beyond large-cap U.S equities. To remedy this, the VixFix indicator is included in the script; you can select whether the script performs calculations for an asset against $VIX or against VixFix (i.e. Forex, Crypto)
Measured are: $VIX correlation to an asset's price fluctuations, the average close-to-close gain/loss subsequent a $VIX/VixFix close above the upper Bollinger Band, the average 5-session gain/loss following the same occurrence in addition to the average 10-session gain/loss, all close-to-close, 5 session, and 10-session gains/losses are stored as tooltips for labels on the chart. The current close-to-close percentage gain/loss for $VIX and VixFix are displayed on the chart.
Displayed in the example image is a box incorporating $VIX price data alongside an upper Bollinger Band and lower Bollinger Band. The data isn't cast to its own price scale but is helpful for quick interpretation of $VIX fluctuations. You can select to plot VixFix data in the box in the user inputs table.
Displayed in the second example image is a semi-transparent blue box encompassing all price moves that occurred when $VIX measured above $40 for at least ten consecutive sessions. The largest percentage close-to-close loss is displayed below the box.
Also illustrated is a red label that appears when $VIX or VixFix closes above the upper Bollinger Band. The indicator will calculate and display the performance of the asset for the subsequent 10 sessions, to which the red label will disappear and all data stored as a tooltip in the blue labels stating "VIX Closed Above Upper Band" or "VixFix Closed Above Upper Band".
To reduce chart clutter, a label and line combination marking all $VIX closes above the upper Bollinger Band was not included. Instead, bar color changes were added. When "$VIX" is selected in the user inputs table the indicator will mark all sessions in which $VIX closed above the upper band as blue, in addition to plotting $VIX price data in the dynamic black box. When "VixFix" is selected, the indicator will mark all sessions where VixFix closed above the upper band as purple; the VixFix indicator will be plotted in the black box.
Be sure to hover over labels to access tooltip information; try the indicator with bar replay!
MadriEsta estrategia fue creada por mi, basándose en el indicador bollinger bands+rsi y una ema , forexstrategiesresources me lo pasó a codigo y despues fue publicado en ChartArt y en la pagina web de forexstrategiesresources.
Ahora este script lo he modificado para optimizarlo para BTC /USDT en la temporalidad de 1 hora, os invito a ir cambiando temporalidades y valores para conseguir la mayor rentabilidad y, al igual que yo lo publico en codigo abierto os invito a que pongáis vuestros ajustes en los comentarios.
Los ajustes que se pueden cambiar para buscar mayor rentabilidad son en primer lugar "lo que se puede cambiar desde el mismo grafico" los valores "A" y "B".
Además, en el codigo el valor "RSIoverSold" y el "RSIoverBought" por mi experencia con menos de 30 no suele ir bien y con mas de 70 tampoco, el rango adecuado es de 29 a 49, incluidos.
Yo no he trasteado mucho pero también os invito a cambiar la fuente de entrada de "close" a "high", "open", "low"...
Recomiendo para la configuración ACTUAL mismo símbolo, mismos valores operar las señales Short cuando el precio este por debajo de la EMA de 900 y operar las Long cuando este por encima.
En otros símbolos la cosa cambia, hay que adaptarlo a cada cosa.
Triple ThreatThis indicator provides buy and sell signals for Bitcoin based on confluence from well-known momentum, volatility, and trend indicators. It has successfully captured the major directional trends on Bitcoin's daily chart since 2018, and the settings are currently optimized for this chart in particular. This indicator implements RSI to gauge momentum, BBWP to gauge volatility, and an EMA to gauge trend. Maximum confluence signals are represented by horizontal bars in the indicator's pane, where the tallest green bar is a confirmed buy signal, and the tallest red bar is a confirmed sell signal. The shortest bar represents a momentum-only signal, and the second-shortest bar represents a volatility signal in confluence with the previously given momentum signal.
To track momentum, the RSI is plotted to the indicator plane against a moving average of the RSI. A momentum signal is generated when the RSI crosses over its moving average, retests/approaches the moving average, and then continues in the crossover direction (i.e., it fails to cross the moving average to the opposite side, creating a successful retest). The settings that affect this trigger are the "Crossover Threshold," which specifies how much the RSI should exceed the moving average to be considered a crossover, and the "Retest threshold," which specifies how closely the RSI should approach the moving average to be considered a retest. A momentum signal is ALSO generated if the RSI or its moving average exceed their counterpart by a certain threshold. For example, if the threshold was set at 10, a BUY signal would be generated when the RSI exceeds the moving average by 10, or a SELL signal would be generated when the moving average exceeds the RSI by 10. This threshold can be set using the "Instant Signal Threshold" setting. Either type of momentum signal will be plotted on the pane as the shortest horizontal bar, with its color indicating the signal's direction.
Volatility is primarily measured using the Bollinger Band Width Percentile (BBWP) indicator, which was created by The_Caretaker. BBWP plots the volatility of the asset's price, given by Bollinger Band width, relative to past volatility by assigning the volatility readings into percentiles. The indicator also includes a moving average of the BBWP itself, where a crossover to the upside represents expanding volatility and a crossover to the downside represents contracting volatility. This indicator is used to confirm a signal given by the momentum indicators - a momentum signal that is given during a period of expanding volatility has a greater likelihood of success. Therefore, when the BBWP crosses above its moving average by a given threshold, a previously triggered momentum signal is considered to be "confirmed." The threshold for this crossover can be set using the "BBWP Confirmation Threshold" setting. However, it is also relevant that periods of extreme volatility often accompany an extremity in price action (a "top" or "bottom"), in which case the BBWP is likely to contract after price reaches such an extremity. This phenomenon is captured by also using "extreme reads" on the momentum indicator to signal that there has already been enough volatility to confirm a momentum signal. If the RSI gives an "extreme read" before triggering a signal, the momentum signal is also considered to be confirmed. For example, if the RSI is above 80, breaks below 80, and then gives a SELL signal, this sell signal is considered to be confirmed without requiring the BBWP to crossover its moving average to the upside. The threshold that would confirm a SELL signal can be set with the "Overbought" setting, and the threshold that would confirm a BUY signal can be set with the "Oversold" setting. Whenever a volatility signal confirms a momentum signal, a medium-sized horizontal bar will be plotted on the pane in the same directional color as the momentum signal. Note that a momentum signal may trigger at the exact same time as the volatility signal which confirms it; in this case, only the medium-sized bar will be visible on the pane, but its direction can still be identified by its color.
Lastly, to reduce the likelihood of "false signals," a trend indicator is used to confirm the direction of the signal. This is typically an exponential moving average. If a confirmed volatility SELL signal is given, and the closing price is below the moving average, then the SELL signal is also confirmed by the trend. Likewise, if a confirmed volatility BUY signal is given, and the closing price is above the moving average, then the BUY signal is confirmed by the trend. The type and length of the moving average used to verify the trend can be set using the "Moving Average Type" and "Moving Average Length" settings found below the momentum/volatility settings. A trend signal is plotted on the pane as a tall horizontal bar, and is more deeply colored than the momentum and volatility signals.
For maximum confluence, it is recommended that the trend signal, given by the tallest bar, is the one that forms the basis of trades executed while using the Triple Threat indicator. It is possible to enter more aggressive trades with better entries by using only the volatility signal, given by the medium-sized bar, however this entails greater risk and should only be done in confluence with an additional trading strategy of your own discretion. Backtesting has shown that using the volatility signal alone underperforms using the volatility signal in confluence with the trend signal.
Please also be advised that the default setting are optimized for Bitcoin's daily chart only. The indicator is still applicable to other timeframes and asset classes, but the settings may need to be modified. I have a list of settings for other Bitcoin timeframes, and I would be happy to share them upon request.
I hope you can find this indicator to be of some use to your trading strategies. I'd be happy to hear any feedback from the community, so please don't hesitate to reach out. Stay safe, and happy trading.
BBands ChannelsBased on the Bollinger Bands system. This shows outer channels to the bollinger bands .
Reversal Indicator
█ OVERVIEW
This indicator shows bullish and bearish reversal signal candles. It finds the candles with extreme volatility and marks the candles with high probability for a reversal of the trend.
█ CONCEPT
This indicator uses the Bollinger Bands to mark the candles with high selling/buying pressure. Bollinger Bands consist of three bands total: an upper band, middle band, and lower band. These separate bands are each used to highlight extreme prices in a specific security. The upper band is associated with overbought, whereas the lower band points to oversold, and the middle band acts as a moving average.
It is common after a lower band has been broken by heavy selling for the price of the asset to revert back above the point of the lower band and move closer to the middle band. The indicator marks this occurrence as a bullish reversal candle. Same applies vice versa. If the upper band is broken by heavy buying, it is natural for the price to revert back and move closer to the middle level. This indicator marks this as a bearish reversal candle.
█ HOW TO USE IT
Reversal Candles - Sky blue colored "R" indicates bullish reversal candle and yellow colored "R" indicates bearish reversal candle.
Checkmarks - Checkmarks provide a confirmation that the reversal has already begun with the candle next to the signal candle. Always wait for confirmation before considering it as a reversal of the trend.
RSI confluence - Enabling this check box in settings will show the reversal signal only when the RSI is overbought/oversold
█ LIMITATION
As like in any indicator, this indicator needs to be used with the assistance of other indicators to make conceptual and strategic trading decisions.
Flat Detect By Bollinger BandsThis simple script indicate the potential flat market zones, calculated based on the Bollinger Bands width.
It's showing the Bollinger Bands in red when the market is detected as flat.
You can adjust the Width Threshold with precision on the inputs settings.
Enjoy :)
Coin Bureau BB/EMA/RSI IndicatorThis indicator was inspired by Coin Bureau's How To Spot The Crypto Top video. In the video, Coin Bureau uses Bollinger bands, 7-period EMA and RSI to look for early signs of a top, thus presenting an opportunity to sell.
Using the basic principles found in the video, I've made a tentative indicator as a way to visualise all 3 indicators at once. Alerts will only fire when all 3 criteria are met:
Price closes outside 20-period Bollinger bands
Price closes ~2sd away from 7-period EMA
RSI is overbought or oversold
The indicator will also update in real-time and show when 1, 2 or all 3 conditions are satisfied. Additionally, there is built-in functionality to toggle historical/current alerts and users can set their own bounds for what constitutes a buy or sell alert.
This is just a personal project purely for edutainment purposes and should not be used to make financial decisions. This project is not affiliated with Coin Bureau.
Some caveats:
Using only 7 periods to calculate the standard deviation of price data will not lead to a statistically significant result, thus this figure may have no right being in the script. However, this was more to trial some techniques and to get acquainted with the pine scripting language.
As you can see, there are a lot of false positives. There are moments when the indicator flashes a sell alert only for the price to keep on rising. This is due to the specificity/sensitivity trade-off. The indicator has been tuned to give the optimal sensitivity (the more critical component). These are the best results I could find for this asset in this time frame.
MA Bollinger Bands + RSI (Study)This study/indicator script is meant to allow users to set alerts based on my MA Bollinger Bands + RSI (Strategy).
Both Study and Strategy scripts reflect the exact same user inputs, parameters and trading signals.
6 different alerts available:
- MABB+RSI Long (or Short) Signal (all): activates for every single Long (or Short) signals
- MABB+RSI Long (or Short) Signal: activates when trade direction changes from Short to Long (or from Long to Short)
- MABB+RSI Long (or Short) Re-Entry Signal: after a stop loss was hit, activates upon same trade direction if new signal
(“Enable SL” & “Allow re-entry” must be switched on)
Chart legend:
- Red arrow = Short Signal
- Blue arrow = Long Signal
- Red square = Stop loss (when trade entry)
- Purple square = Stop loss (when hit)
NB1: Be sure to set both Study and Strategy script settings to the same values if you want to achieve similar results in both scripts.
NB2: When setting up your alerts, preferably use option “Once per bar close” to get proper confirmations.
Enjoy!
Volume Adaptive Bollinger Bands (MZ VABB)This indicator is a functional enhancement to John Bollinger's Bollinger Bands. I've used Volume to adapt dynamic length which is used in basis (middle line) of Bollinger Bands and Simple Moving Average is replaced with Adaptive Ehlers Deviation Scaled Moving Average ( AEDSMA ).
BOLLINGER BANDS BASIC USAGE AND LIMITATIONS
Bollinger bands are popular among traders because of their simple way to detect volatility in market and redefine support and resistance accordingly. These are some basic usages of original Bollinger Bands:
Most commonly Bollinger Band works on 20 period Simple Moving Average as Basis / Middle Line and standard deviation of 2 for volatility detection.
Upper and lower bands can act as support and resistance which accordingly update with standard deviation of same period as of Simple Moving Average.
As upper and lower bands act as volatility measure which benefits in Squeeze detection and breakout trading.
Among all the usages there are some limitations as follows:
Original Bollinger Bands use 20 period Simple Moving Average as Basis which itself restricted to some number of data pints and if market moves in one direction or simply goes sideways for long time; candles can stay on either bands for long time. This gives benefit for staying in directional trade but will completely nullify the use of both bands as support and resistance.
Above point simply be explained as markets can stay overbought / oversold for long time and one way to make Bollinger Bands more useful is to simply use higher periods in SMA but as we know with higher periods SMA becomes more laggy and less adaptive.
Most traders use BBs alongside some other Volume Oscillator for example "On Balance Volume" but that does solve BBs limitations issue that it should be more adaptive to detect volatility in market.
VOLUME ADAPTIVE BOLLINGER BAND WORKING PRINCIPLE
Best way to make original Bollinger band more adaptive was to just use dynamic length instead on constant 20 period. This dynamic length had to be based on some other powerful parameter which can't be volatility as BB itself is a volatility indicator and adapting its length based volatility would have been superimposing volatility on Bollinger bands giving unrealistic results.
For adaptive length, I tried using Volume and for this purpose I used my Relative Volume Strength Index " RVSI " indicator. RVSI is the best way to detect if Volume is going for a breakout or not and based on that indication length of Bollinger Band Basis Moving Average changes.
RVSI breaking above provided value would indicate Volume breakout and hence dynamic length would accordingly make Bollinger band basis moving average more over fitted and similarly standard deviation of achieved dynamic length would give better bands for support and resistance. Similar case would happen if Volume goes down and dynamic length becomes more underfit.
According to my back testing studies I found that Simple Moving Average wasn't the best choice for dynamic length usage in Bollinger Band Basis. So, I used Adaptive Ehlers Deviation Scaled Moving Average ( AEDSMA ) which is more adaptive and already modified to adapt with RVSI.
SLOPE USAGE FOR TREND STRENGTH DETCTION
Volume Adaptive Bollinger Bands are more reactive to market trends so, I used slope for trend strength detection.
If slope of Volume Adaptive Bollinger Band Basis (i.e. AEDSMA ), Upper and Lower Bands is supporting a trend at same time then script will provide signal in that direction. That signal can also use Volume as confirmation if Bollinger Bands trend direction is supported by Volume or not.
DYNAMIC COLORS AND TREND CORRELATION
I’ve used dynamic coloring in Basis ( AEDSMA ) to identify trends with more detail which are as follows:
Lime Color: Slope supported Strong Uptrend also supported by Volume and Volatility or whatever you’ve chosen from both of them.
Fuchsia Color: Weak uptrend only supported by Slope or whatever you’ve selected.
Red Color: Slope supported Strong Downtrend also supported by Volume and Volatility or whatever you’ve chosen from both of them.
Grey Color: Weak Downtrend only supported by Slope or whatever you’ve selected.
Yellow Color: Possible reversal indication by Slope if enabled. Market is either sideways, consolidating or showing choppiness during that period.
SIGNALS
Green Circle: Market good for long with support of Volume and Volatility or whatever you’ve chosen from both of them.
Red Circle: Market good to short with support from Volume and Volatility or whatever you’ve chosen from both of them.
Flag: Market either touched upper or lower band and can act as good TP and warning for reversal.
FIBONACCI BANDS
I’ve included Fibonacci multiple bands which would act as good support/resistance zones. For example, 0.618 Fib level act as good local support and resistance in both upper and lower zones. Fibonacci values can be modified but should be lower than 1.
DEFAULT SETTINGS
I’ve set default Minimum length to 50 and Maximum length to 100 which I’ve found works best for almost all timeframes but you can change this delta to adapt your timeframe accordingly with more precision.
Dynamic length adoption is enabled based on Volume only but volatility can be selected which is already explained above.
Trend signals are enabled based on Slope and Volume but Volatility can be enabled for more precise confirmations.
In “ RVSI ” settings "Klinger Volume Oscillator" is set to default but others work good too especially Volume Zone Oscillator. For more details about Volume Breakout you can check “MZ RVSI Indicator".
ATR breakout is set to be positive if period 14 exceeds period 46 but can be changed if more adaption with volatility is required.
EDSMA super smoother filter length is set to 20 which can be increased to 50 or more for better smoothing but this will also change slope results accordingly.
EDSMA super smoother filter poles are set to 2 because found better results with 2 instead of 3.
FURTHER ENHANCEMENTS
So far, I've achieved better results with "Klinger Volume Oscillator" in RVSI but TFS Volume Oscillator and On Balance Volume can be used which would change dynamic length differently. It doesn't mean that results would be wrong with some oscillator and precise with others but every oscillator works in its specific way for and RVSI just detect strength of Volume based on provided oscillator.
[kai]Keltner&BolingerIt is an indicator that simultaneously displays the Bollinger Bands (BB) and Keltner Channel (KC) calculated for the log scale.
* If you need the normal scale version, please turn off the log mode in the settings.
I think the usage is the same as normal BB and KC.
From here, it ’s an original way of thinking.
I thought about countermeasures for the phenomenon that the BB contracts (squeezes) and breaks, but for some reason it suddenly reverses and breaks greatly in the opposite direction or ends in misfire.
The main part of this Inge is KC, and I think that the range within KC is the range.
Considering that the bar broke above and below the range of KC and broke, the trend market started.
BB fits in KC and judges that the trend is game over
If it is within KC, it is contrarian at the upper and lower limits of KC.
If it breaks, Trend following
Profit if BB fits in KC
I'm thinking about how to use it
ログスケール用にログ計算したボリンジャーバンド(BB)とケルトナーチャンネル(KC)を同時に表示するインジケーターです
※通常スケール版が必要な時は設定のlog modeをOFFにしてください
使い方は普通のBBとKCとおなじで使用方法で良いと思います
ここからはオリジナルな使い方の考え方です
BBが収縮(スクイーズ)してブレイクしたのに何故か突然反転して反対の方に大きくブレイクしたり、不発に終わったりする現象の対策を考えました
このインジのメインはKCでKCの範囲内はレンジと考えます
KCの範囲外にバーが上抜け、下抜けして、ブレイクしたと考え、トレンド相場スタートとします
BBがKCの中に納まってトレンド終了と判定します
KC内の場合はKCの上限、下限で逆張り
ブレイクした場合は順張り
BBがKCの中に納まったら利確
という感じの使い方を考えています
RSI Divergences + Bollinger Bands█ OVERVIEW
Here's the RSI divergences with Bollingers bands.
█ CONCEPTS
5 features
1 — RSI
2 — Bollinger bands
3 — RSI signal is in another color when above 70 or below 30
4 — Looking for previous Divergences, Bullish, Bearish and Hidden Bullish and Bearish but I don't like Hidden divergences
5 — Color fill when overbuy or oversold
█ OTHER SECTIONS
I like to see it like a moutain, with snow on top and lake on bottom. I think you don't want to start walking at the top, nor sink to the bottom of the lake for ever and ever.
It is an idea of sjoerd , tip him if you like it.
An oscillator is good to know where we are in the trends, but it's not enough to run a small business of trading, you need to learn how to use it.
What is a divergence ?
Thanks to The rational investor for teaching me how to use this indicator.
Daily EMA50 100 200 + BBStandard Bollinger Bands (timeframe dependent), period and standard deviation are configurable.
And standard daily triple EMA (timeframe independent). Short, Medium and Long periods are configurable (50/100/200 by default)
MA Bollinger Bands + RSI This script uses the standard deviation of a given moving average along with an RSI direction.
When: rsi crossover neutral line + price crossover lower deviation boundary => long
When: rsi crossunder neutral line + price crossunder upper deviation boundary => short
CRC.i Bollinger Bands ®This script is yet another variant of the famous Bollinger Bands® TA tool used to track price volatility as it deviates from the mean of a security using standard deviations (positive &negative). Built for my own personal preferences. But perhaps you might like it, too.
Includes
+ Chart Lines: price, upper and lower bands
+ User Options: SMA length, stdev value
+ Heads up Display (HUD) with TARGET's and other related stats
Bugs? Comments? Requests? Ping me @calmrat
T3 + BB
TRES EMAS + BANDAS DE BOLLINGER
INDICADOR 1: TRES EMAS (MEDIA MOVIL EXPONENCIAL)
Con este indicador puede visualizar el promedio de precios con mayor peso a los datos mas recientes.
Se calculan y dibujan tres medias móviles exponenciales: 4, 20 y 200 últimas velas.
-Rápida EMA1 = 4, paso = 1
-Media EMA2 = 20, paso = 2
-Lenta EMA 3 = 200, paso = 10
INDICADOR 2: BANDAS DE BOLLINGER
Con este indicador podrá ver la fuerza y la tendencia del mercado, es decir la mide la volatilidad del precio del activo.
Si el precio sobrepasa la banda superior, el activo está sobrecomprado.
Si el precio sobrepasa la banda inferior, el activo está sobrevendido.
Longitud tendencia - BASE = 20, paso = 1
Desviación Estándar - Multiplicador = 2, paso = 0.2
Estos 2 indicadores sirven para todo tipo de activos: FOREX, CRIPTO, CFD´s, ETC.
------------------------------------------------------------------------------------------------------------------
THREE EMAS + BOLLINGER BANDS
INDICATOR 1: THREE EMAS (EXPONENTIAL MOVING AVERAGE)
With this indicator you can visualize the average of prices with greater weight to the most recent data.
Three exponential moving averages are calculated and drawn: 4, 20 and 200 last candles.
-Fast EMA1 = 4, step = 1
-Average EMA2 = 20, step = 2
-Slow EMA 3 = 200, step = 10
INDICATOR 2: BOLLINGER BANDS
With this indicator you can see the strength and trend of the market, that is, it is measured by the volatility of the asset price.
If the price goes above the upper band, the asset is overbought.
If the price goes above the lower band, the asset is oversold.
Trend length - BASE = 20, step = 1
Standard Deviation - Multiplier = 2, step = 0.2
These 2 indicators are used for all types of assets: FOREX, CRYPT, CFD's, ETC.
6X Bollinger Bands + MA + VWAP Dingue V56X Bollinger Bands Dingue V5 - This is the updated version for Pine Script 5
This indicator lets you quickly see all the intricacies of the Bollinger Bands; it simplifies its usage and maximizes the results.
Color-coded if the price is above or under the middle and based on direction.
Color-coded for expansion and contraction of the bands.
Option to plot ‘Squeezed bands’. It will show above the bands when they become smaller than the setting chosen. This helps identify build-up that might explode one way or another.
- 6x independent Bands can be adjusted as you want. It gives you possibilities in how you see variance, trends, support and resistance.
You can also select the MA type: SMA EMA WMA VWAM FRAMA … to explore new ways to see the Bollinger bands.
New in this version, you can now add a separate ‘Long MA’ that you can select independently from the Bands. Ex. Plot 200 SMA This helps in building a strategy with the trend and the bands.
Like the MA above, you can also plot 2 different VWAP independently from the Bands. This also helps knowing where the price stands compared to the bigger time frame VWAP’s price.
'Tool tips' explain other settings, if you have any questions, feel free to ask in the comments below.
Thank you for the feedback and check all my ‘Dingue’ indicators.
EMA/MA Cross + BB + Alerts Short hand notes - I made this for friend and I. Unsure how to share it with him so made it public.
u/ tmyerskerry for the math on slope and look back period (look back period isn't perfect for slope calculation as 200ma is slow moving so some signals are goign to be strong instead of weak and visa versa. If you know a better way than i'm all ears!
Can set mutliple EMA's and MA's.
Default BB built in. Couldn't figure out how to set default shadow transparency so you will have to turn it down.
Added red and green lines that indicate when price has gone above and below the BB shadow.
Added arrows for when EMA1 crosses EMA2. Right now set for 9 + 32. And depending on MA200 color changes if its with the trend or against.
Alerts in the works. (please don't ask for them as i'm doing this part time and don't know pinescript)
RedK Smooth And Lazy Moving Average (SALMA)Here's a quick and simple script that produces yet another Smooth and Lazy Moving Average - SALMA - that helps hide noise caused by extreme price fluctuations to enable better trend visualization and tracking
Concept:
===========
SALMA is based on a simple concept - we calculate a standard deviation channel of a user-selected width - then correct the price value so that it is restricted within the boundaries of the SD channel - effectively adjusting against high-volatility, sudden price moves - which acts as a pre-smoothing of the price values - then we calculate our moving average and apply extra smoothing as needed.
Since only "persistent" price moves will have an effect on the direction of this MA, it will be suitable to use as an additional trend guide with other indicators, and to consider only long positions when the price is above the SALMA, and short positions only when the price is below
Notes:
========
- for the time being, i'm using Weighted Moving Average (WMA) for the calculation of the base price MA and the SD channel - we can add other MA types as options in a future versions based on feedback
- will add alerts in a future update
- SALMA can be used with any timeframe. can also be set to a higher timeframe against a lower timeframe chart
i have also added couple of standard moving average lines (choose between SMA, EMA and WMA) of selectable lengths - to enable utilizing this in a Moving Average cross-over setup - or to simply monitor other common MA's that other traders are using.
here's how the settings look like when you add SALMA to your chart
Please feel free to play around with SALMA and share feedback :)
Volatility Funnel v2Using the contracting phase of what are basically bollinger bands and some fancy coloring, this indicator draws funnels to which show tightening ranges and doesn't take up too much screen space unless you want it to.
There is a smoothing option if you're into that.
Enjoy!!!
Chimpanzee V2.5 part A by joylay83Hi everyone, I am an amateur pinecoder. I would like to share my script which is coded with the intention of generating signals to send to 3commas webhook. It is still in development and revision.
This collection of indicators use:
Chart: 15m.
Inverse Fisher Transformation of the RSI to detect dips in the 15m timeframe.
Bollinger band (4H) to filter out false signals.
Triple EMA 21: to mimic price action for easier coding alerts. Currently not involved in generating signals. will be incorporated in the future.
StochRSI: As a visual filter. Currently not involved in generating signals. will be incorporated in the future.
Background will be green if stochRSI is low and red if stockRSI is high.
Candlesticks will be marked with a flag is TEMA breached BB.
One would need to play around with timeframes, BB settings and IFTRSI threshold for different signals.
There are 2 Signal Modes (with regards to IFTRSI):
Threshold: When price action falls below BB and IFTRSI hits buy threshold, a buy/sell signal is generated. Eg if IFTRSI buy threshold is set to -0.9, the buy signal will remain continuously positive as long as IFTRSI is < 0.9.
Cross: When price action falls below BB and IFTRSI hits threshold, nothing happens. It will wait until the IFTRSI cross back over the threshold before firing a signal.
There is another identical set of indicators running on a higher time frame (IFTRSI: 4H, BB: D or 3D, TEMA 21 4H) but on the same chart. This tend to generate less signals but are more reliable. A usage example would be to send a larger buy order if the signal comes from this higher time frame, or execute a sell order after multiple buys from the lower time frame.
It comes in 2 parts:
Part A: Contains overlay display. This displays BB, Triple EMA, buy/sell and StochRSI in labels. the labels are self explanatory.
Part B (please search for it): which is actually the same code but contain non-overlay display. You may also put part B overlay=true but scale to LEFT. The advantage of using overlay=true is that you can move the signal right over the candlesticks (mainly for troubleshooting/debugging). This part contains Inverse Fisher RSI, %B, Signal Line. %B is supposedly idential to Bollinger Bands in Part A.
By default, when there is a buy/sell signal:
lower time frame 15m: Signal Line in Part B will turn blue with a value 1 or -1 which corresponds to a buy or sell label in Part A
higher time frame 4H: Signal Line in Part B will turn red with a value 2 or -2 which corresponds to a HTF buy or sell label in Part A
Part A or B may be used to send signal to the webhook. You have to make sure that the settings of Part A and B are identical.
You may choose to un-display some items to reduce clutter.
Current problems:
1. Still too many buy signals
Although many times it will generate excellent buy signal at many swing lows, but there are many buy signals prior to a major swing low. This can be observed in the picture above. It also generate a couple of buy signals prior to the swing lows. I am currently experimenting with 20m and hourly timeframe to address this issue. More filters are needed eg an oscillator or detecting candlestick patterns.
2. Premature sell signals.
The sell signal is often generated at the beginning of a major bull run. My idea to solve this problem is to move to a higher timeframe and sell only when TEMA crossunder the upper bollinger band.
3. Lack of a backtester that can test multiple concurrent deals.
Buy -> Buy (average down) -> Buy (average down) -> Buy (average down) -> Sell
4. Lack of the ability to calculate average purchase price
Probably have to code it as a strategy
5. Display lag
As the browser is running 2 copies of the idential script, it tends to lag when you drag your chart around. So far there are no timeouts or delay in firing alerts to 3commas.
I do welcome any suggestion for improvement and constructive criticism. tqvm.
Credits : Thank you for doing an awesome job. I learnt a lot from your codes and tutorials.
Credits not listed in any order. If your code is used here and did not receive due credit, kindly drop me a note. tq.
Blessing 3 by JTA Today
@ZenAndTheArtOfTrading (extremely-easy-to-understand tutorials eg fixing repainting)
@LazyBear (various codes)
@Galactus-B Argo I
@TheTradingParrot (Inverse Fisher RSI and Gavin's backtester)
@zendog123 (backtester and various codes)
@ydeniz2000 (Bollinger Bands)
TradingView built-in scripts
Creentrend Pressure SignalsThe hull moving average is my favorite moving average, as well as slower (55ma Bollinger Bands dev@(1.618)) is my favorite standard deviation indicator. Lets combine the two to evaluate overbought, oversold, and pressure.
Use for all time frames- I PREFER daily.
Bollinger band MA at 55
Hull ma at 55
The Hull is more reactive and faster than any band on the BB (both at 55)
When HULL closes BELOW LOWER BAND- it will print a buy signal, remember- over sold and overbought in VOLATILITY could be dangerous on low time frames, as swift moves typically have short term reversals but return to the main trend eventually, this is why i reccomend daily candles.
When PRICE closes ABOVE UPPER BOLLINGER BAND- it will print a green ^ signal under candle indicating upward pressure.
When HULL closes ABOVE UPPER BOLLINGER BAND- it will print a red resistance line. Complex tops happen a lot with bitcoin so take a 1-5% stop above it if shorting.
Contrarian Scalping Counter Trend Bb Envelope Adx and StochasticContrarian Scalping is an trading strategy designed to take advanted of a counter-trend.
The advantage of these strrategies types is that they have a good profitability but with do not great gain (in relation at the time frame).
Indicators used:
Bollinger
Envelope
ADX
Stochastic
Rules for entry
For short: close of the price is above upper band from bb and envelope, adx is below 30 and stochastic is above 50
For long: close of the price is below lower band from bb and envelope, adx is below 30 and stochastic is below 50
Rules for exit
For short: either close of the candle is below lower band of bb or enveloper or stochastic is below 50
For long: either close o the candle is above upper band of bb or envelope or stochastic is above 50
If there are any questions let me know !