Bollinger Band BreakoutThis strategy buys when price crosses above an upper Bollinger Band and sells when the lower band is breached. What makes this strategy different than others:
Long only with filtering for only showing strong tickers
Filter out trades below a moving average on both the current timeframe and a longer period timeframe to keep you out of bear markets
Optional ability to set a tighter initial stop level to increase exposure and decrease downside risk on freshly opened trades while you wait for the lower Bollinger Band trailing stop to catch up
Take entries/exits on wicks/stops or wait for candle closes before entry
Select which dates to backtest
Customize Bollinger Band parameters including the ability to have different values for the upper and lower band standard deviation
Jalur dan Saluran
Weighted Bollinger Band (+ Logarithmic)ENG)
Weighted BB is more responsive to price changes than original Bollinger Bands.
the calculation formula uses a weighted method based on the current price.
Instead of using a standard deviation, I used a weighted standard deviation that weights the current price, and instead of a simple moving average, I used a weighted moving average.
Also included is a formula to log the Bollinger Bands for users who view charts on a logarithmic scale.
KOR)
원본 볼밴보다 가격변화에 대한 반응성이 높습니다.
계산식에는 현재가격에 가중을 주는 방식을 사용하였습니다.
표준편차를 사용하는 대신 저는 현재가격에 가중을 두는 가중표준편차를 사용하였고, 단순이동평균 대신 가중이동평균을 사용하였습니다.
또한 로그스케일로 차트를 보는 유저를 위해 볼린저밴드를 log화 하는 수식도 포함하였습니다.
TCG AI ToolsIntroduction:
This script is a result of an AI recommended created trading strategy that is design to offer new traders’ easy access to trend information and oversold/overbought conditions. Here we have combined commonly used indicators into a single unique visualization that quickly identifies trend changes and both RSI and Bollinger Band based overbought and oversold conditions, and allows all three indicators to be used simultaneously while taking up limited space on the chart.
The value in combining these three indicators is found in the harmony and clarity they are able to provide new traders. Trend changes can be difficult to identify based solely on candlestick analysis, therefore using the moving averages allows the trader to simplify the process of establishing bullish or bearish trends. Once a trend is established it can be very attractive for new traders to establish entries at the wrong time. For this reason, it is useful to include two different overbought and oversold indicators. The Bollinger Bands are included as one of the methods for establishing extreme prices that often result in reversals, and the relative strength index is similarly utilized as a second means to warn traders of extreme conditions.
Using the Indicator
1. MA10 MA20 Trend Indicator
The large red/green horizontal bar located at the 0 line on the X axis is the trend direction indicator. This visualization compares the 10 and 20 period moving averages to establish trend. When the MA10 is above the MA20 the trend is considered bullish and supportive of long positions and indicates such by changing the color of the horizontal bar to green. When the MA10 is below MA20 the trend is considered bearish and indicates such by changing the color of the horizontal bar to red. Color changes occur at the moment of a MA crossover/under.
2. Relative Strength Index.
The vertical red and green bars that make up the background of the panel indicate conditions wherein the RSI is considered overbought or oversold. When the vertical bar is red it indicates that RSI is below 30 suggesting that current conditions are oversold and supportive of long entries. When the vertical bar is green it suggests that the current conditions are overbought and are supportive of short entries.
3. Bollinger Band Extremes
Within the horizontal red/green bar there are red and green arrows. These arrows represent periods where the price is exceeding the upper or lower Bollinger bands and indicate overbought/oversold conditions. When a green arrow appears, it indicates that the price has crossed below the lower BB and is supportive of long entries. If a red arrow appears it indicates that the price has crossed above the upper Bollinger band and conditions are supportive of short entries.
Dynamic Reactor [CHE]This simple Pine script is an implementation of the Dynamic Reactor indicator. The indicator is designed to dynamically adjust to market conditions and identify trend reversals.
The indicator takes one input parameter: the length of the Dynamic Reactor. The script calculates the high, low, and midpoint values of the Dynamic Reactor using a simple moving average (SMA) function. The plot colors are determined by the current price in relation to the high and low values. If the price is above the high value, the plot is colored green. If the price is below the low value, the plot is colored red. Otherwise, the plot is colored gray. The area between the high and low values is filled with a transparent color to help visualize the range of the indicator.
VWAP Supply and Demand ZonesThis is my 1st indicator enjoy.
Description of the VWAP Supply and Demand Zones indicator:
This indicator uses the Volume Weighted Average Price (VWAP) to identify potential supply and demand zones in the market. The VWAP is a popular indicator that shows the average price of a security weighted by volume over a specified period of time. It can be used as a benchmark to measure the efficiency of trading and to identify trends and price levels.
The indicator plots the VWAP as a blue line on the chart, and also plots two other lines above and below it, which represent the upper and lower bounds of the supply and demand zones. The width of these zones can be adjusted by changing the “Zone Width” input parameter.
The indicator also plots shapes on the chart to mark when a supply or demand zone is formed. A supply zone is formed when the price crosses above the VWAP and then falls back below it, indicating that there is more selling pressure than buying pressure at that level. A red triangle is plotted above the bar where this happens, and a red zone is drawn between the previous close and previous VWAP values.
A demand zone is formed when the price crosses below the VWAP and then rises back above it, indicating that there is more buying pressure than selling pressure at that level. A green triangle is plotted below the bar where this happens, and a green zone is drawn between the previous close and previous VWAP values.
The supply and demand zones can be used as potential areas of support and resistance, where traders can look for reversal or continuation signals. For example, if the price enters a supply zone from below, it may indicate that sellers are willing to sell at higher prices, which could lead to a bearish reversal. Conversely, if the price enters a demand zone from above, it may indicate that buyers are willing to buy at lower prices, which could lead to a bullish reversal.
The indicator can be applied to any timeframe or market, but it may work better on higher timeframes where volume data is more reliable. It can also be combined with other indicators or tools to confirm or filter signals.
Keltner Channels Bands (RMA)Keltner Channel Bands
These normally consist of:
Keltner Channel Upper Band = EMA + Multiplier ∗ ATR
Keltner Channel Lower Band = EMA − Multiplier ∗ ATR
However instead of using ATR we are using RMA
This gives us a much smoother take of the KCB
We are also using 2 sets of bands built on 1 Moving average, this is a common set up for mean reversion strategies.
This can often be paired with RSI for lower timeframe divergences
Divergence
This is using the RSI to calculate when price sets new lows/highs whilst the RSI movement is in the opposite direction.
The way this is calculated is slightly different to traditional divergence scripts. instead of looking for pivot highs/lows in the RSI we are logging the RSI value when price makes it pivot highs/lows.
Gradient Bands
The Gradient Colouring on the bands is measuring how long price has been either side of the MA.
As Keltner bands are commonly used as a mean reversion strategy, I thought it would be useful to see how long price has been trending in a certain direction, the stronger the colours get,
the longer price has been trending that direction which could suggest we are looking for a retrace soon.
Alerts
Alerts included let you choose whether you want to receive an alert for the inside, outside or both band touches.
To set up these alerts, simply toggle them on in the settings, then click on the 3 dots next to the indicators name, from there you click 'Add Alert'.
From there you can customise the alert settings but make sure to leave the 2 top boxes which control the alert conditions. They will be default selected onto your correct settings, the rest you may want to change.
Once you create the alert, it will then trigger as soon as price touches your chosen inside/outside band.
Suggestions
Please feel free to offer any suggestions which you think could improve the script
Disclaimer
The default settings/parameters were shared by Jimtalbott, feel free to play about with the and use this code to make your own strategies.
Range ( Adjustable ) HLLSfor range of the price ( Adjustable )
This indicator shows you in what price range it may move.
This indicator is adjustable. You must set your installation to the past of its chart. (depends on timeframe)
Pay attention to adapt it in different time frames and with your strategy.
The function of this indicator is simple.
Based on the first factor (the number of previous candles), you can adjust average range channel with the second factor for height of the channel.
MA Band Distance Monitor'MA Band Distance Monitor' indicator is a simple tool for traders who rely on moving averages to make trading decisions. This indicator plots two moving averages of your choice (you can select the type of the moving average), and fills the space between them, creating a "band".
The indicator also generates a table that displays the current price distance from both the fast and slow moving averages, as well as the average of the two. This allows you to quickly assess the strength of the trend and potential entry or exit points.
In addition, the table also shows the average price distance from one to another MA and also the current distance between them, allowing you to compare the current price action to the historical average. This information can help you identify potential trend reversals and assess the overall health of the market.
*** Slow length input must be greater than fast length input, otherwise indicator will produce faulty results
Waddah Attar Explosion with TDI First of all, a big shoutout to @shayankm, @LazyBear, @Bromley, @Goldminds and @LuxAlgo, the ones that made this script possible.
This is a version of Waddah Attar Explosion with Traders Dynamic Index.
WAE provides volume and volatility information. Also, WAE calculation was changed to a full-on MACD, to provide the momentum: the idea is to "assess" which MACD bars have significant momentum (i.e. crossover the Explosion Line)
TDI provides momentum, divergences as well as overbought and oversold areas. There is also a RSI on a different timeframe, for convergence.
Almost everything is editable:
- All moving averages are customizable, including the TRAMA, from @LuxAlgo
Waddah Attar Explosion_
- Three different crossing signals: histogram crossing contracting Explosion Line, expanding Explosion Line and ascending Explosion Line while both Bolling Bands are expanding; Explosion Line shows different color when expanding.
- Explosion line signals: Below DeadZone line and Exhaustion (highest value in a given lookback period). You can set a predefined EPL slope to filter out some noise.
- Deadzone signal : Deadzone squeeze ( lowst value in a given lookback period)
TDI:
- Overbought an Oversold signals. The OB and OS shapes have two colors, in order to display extreme signals on current timeframe or extreme signals on current and different time frame.
- Visual display of RSI outside the Bollinger Bands, and crossing of RSI Moving Average crossing of zero line.
I believe this combination is great for so many reasons!
Like the idea of TTM Squeeze? You can tune the Deadzone and Explosion lines to look for a volatility breakout
Like trading divergences or want to filter out extreme areas? The RSI is great for that
You like the using the MACD strategy but don't like the amount of false signals given? this WAE version filters some of them out.
If you are a Bollinger bands fan, you can customize both indicators to trade breakouts and/or mean reversion strategies, and filter out exhaustion of the bands expansion
This is my first publication, so give it a go and provide feedback if possible.
Gamification IndicatorDo you want your charts to look like a video game? Look no further! Would you rather be an alien racing through a lava tube, a surfer with great white sharks, an airplane flying through the clouds, or some other custom emoji setup of your choice? Traders can choose their own custom player emoji, trend indicator, obstacle emoji, and celestial emoji. This indicator is just for fun and is not intended to be used when making trading decisions. Enjoy!
This indicator also contains a live sun/moon emoji that should accurately reflect day/night and can give information about the current moon phases.
Shoutout to @citlacom for the public Moon Ephemeris and calculations. Building this indicator was a useful & fun introduction to financial astrology in Pinescript.
[blackcat] L1 Adaptive Choppiness IndexLevel: 1
Background
I have been working with choppiness index type indicator for long. However, there are several problems in tradintional one.
Function
One of the issue of conventional choppiness index is the noise or ripple is too obvious. I was wondering several ways to smooth it. As you may know, choppiness index is "one line" indicator. There is little room of freedom to change it too much. Then, I introduced adaptation algorithm to make "length" parameter adaptive, which can smooth choppiness index indicator to some degree. Meanwhile, I use ALMA to smooth the output again.
Remarks
I used my published dc_ta lib, which collects several dominant cycle algorithm from Elhers to make many indicator adaptive possible.
Feedbacks are appreciated.
Faytterro Bandswhat is Faytterro Bands?
it is a channel indicator like "Bollinger Bands".
what it does?
creates a channel using standard deviations and means. thus giving users an idea about the expensive and cheap zones. It uses a special weighted moving average different from standard bollinger bands, it also averages not only price but also deviations.
how it does it?
it uses this formulas:
how to use it?
its usage is the same as "bollinger band".
length represents the number of candles to be taken into account, source represents the source of those candles and stdev represents the coefficient of the standard deviation.
you can use it with other indicators:
Urika Confirmation IndicatorThe Urika Confirmation (UC) Indicator helps a user make a better decision about areas to enter the market for a trade. The indicated incorporates the highs and the lows of the price for a specific period. The information is depicted on this two-line indicator to show the direction of the price. The gap between the two lines is a cloud for determining the current position of the trade and staying in a trend.
The two lines in the indicator are a signal line and a slow line: the price is likely bullish if the signal line crosses above the slow line while likely bearish if the signal line crosses below the slow line. One can enter a trade if the price is above the cloud while the signal line crosses above the slow line, This is an indication that the commodity or stock is bullish and vice versa for bearish. One can avoid trading when the price is in the cloud.
UC Calculations:
The signal line is the average high and low of the prices using the fast-length input.
The slow length is the average of the past previous high and low prices using the slow-length input.
Ways to Use the UC Indicator:
It is convenient to use the indicator with Relative Strength Indicator. If the signal line crosses above the slow line -->> Bullish possibility (buy if RSI >= 55). It is a false buy/long signal if the cross occurs while RSI is below 55.
If the slow line crosses above the signal line -->> Bearish possibility (short if RSI <= 45). It is a false short signal if the cross occurs while RSI is above 45.
The indicator can be used at all timeframes. The user can use different settings to suit their way of trading.
The indicator uses the concept of the Ichimoku Indicator to provide users with
Bollinger Bands SignalsDescription:
This indicator works well in trendy markets on long runs and in mean-reverting markets, at almost any timeframe.
That said, higher timeframes are much preferred for their intrinsic ability to cut out noise. The example chart is in 3H TF.
Be mindful, the script shows somewhat erratic jigsaw-like behaviour during consolidation periods when the price
jumps up and down in indecision which way to go. Fortunately, there are scripts out there that detect such periods.
You can choose between 4 Moving Averages, Vidya being the default. Period, Deviation and Bands Width parameters
all of them affect the signal generation.
For the Pine Script coder this script is pretty obvious.
It uses a standard technical analysis indicator - Bollinger Bands - and appends it with a 'width' parameter and
a signal generation procedure.
The signal generation procedure is the heart of this script that keeps the script pumping signals.
The BB width is used as a filter.
You can use this procedure in your own scripts and it will continue generate signals according to your rules.
Trend crossierHello there!
I would like to share my script.
This is S/R levels indicator based on custom range for each step used for computing minimum/maximum of the range.
For example - we predefined step with 50 candles as one, after we have got the minimum and maximum of it - we come to the next 50 candles and do the same to it.
Finaly - we have got 20 lines for 10 steps.
After that - we set the ( SMA * mult) to have step between lines and if N of lines in range of step from eachother(if a+step > b and b+step > c ...) we call it a strong level.
It is not my idea(but my code), so I do not claim the uniqueness of this idea (the customer asked me to code it, but I also read about this method in open sources before).
The second thing - vectors of current trend direction on different timeframes.
For this task I took the same ranges, but ema () of each range. After first step it has an array with N values.
The next thing it does is take out "chain" one by one on each iteration. How does it do that? We take new AVG with neighbor values.
If we have 10 length at start - after iteration it becomes 9. So it repeats computing till length is 2.
After we have 2 points left - we can plot the line using indexes.
This way we can see the trend direction on different timeframes.
Feel free to use, change, put into another scripts. You can even never use it!
The right to publish this particular code was issued by the customer.
Have fun!
Global Net Liquidity - SPX Fair ValueThis is similar to the SPX Fair Value Bands indicator.
It currently only displays the fair value.
The original SPX Fair Value formula only includes the Fed balance sheet data.
This indicator incorporates the following central bank assets:
Fed
Japan
China
UK
ECB
This is currently experimental. Feel free to explore using different formula constants.
[blackcat] L3 Super Best Cost LineLevel: 3
Background
As suggested by @hedan1, he made a suggestion: this indicator can be further optimized to develop a dull line to filter the overall direction, and then use the sensitive line as a confirmation signal to enter.
One of my favourite tool to see fast trends which is simple but powerful. It runs under below market logic.
Function
With @hedan1's idea, the 1st thing i come up with is a two-layer structure: the inner sensitive part is the best cost line indicator, the outer layer is a supertrend indicator to control the overall trend direction.
Best cost line is a tool to model the people's mood and preference in the market. I define a typical price as wcx, when wcx is above the best cost line, which means traders are willing to use higher price to buy, then if you long, you are following the trend and make profit. On the other hand, if wcx is below the best cost line, which means traders are NOT willing to pursue higher price (maybe due to continous stop loss or sth other), then you should at least not long or if you are agressive in style, you may consider short.
That is it. Do you think it is simple and powerful enough?
Remarks
L: long entry, yellow
XL: close long, fuchsia
S: short entry, green
XS: close short, red
inner bullish: yellow color
inner bearish: fuchsia color
outer bullish: green color
outer bearish: red color
inner indicator : the best cost line
outer indicator : supertrend
also, i improved the display fucntinon remove some blur lines with linebr feature.
Feedbacks are appreciated.
Setup Max e Min Larry WilliansLarry Williams used this system to win the trading championship
Hello friends, I bring a script with a trading strategy to be used in futures such as Index, Forex and Commodities. Developed by famous trader Larry Williams.
In them we use two 3-period Simple Moving Averages (Arithmetic) (one with the high price, the other with the low price), and a 21-period Moving Average (Arithmetic) to determine the trend. This will form an average channel with the prices of the maximums and minimums of the last three candles.
Best time charts use the strategy: from 5 minutes to 60 minutes.
This strategy is quite simple. The 21 Moving Average will color according to the trend (Green for bullish, Red for bearish and Gray for transitions). The Script will signal the entry according to the trend by the colors of the candles and also by the signal:
When green, the buy will be on the crossing of the lower Moving Average crossing the candlestick, and the exit will be on the crossing of the candlestick on the next Upper Moving Average.
When red, the sell will be at the crossing of the Upper Moving Average crossing the candlestick, and the exit will be at the crossing of the candlestick on the next Lower Moving Average.
When the Script signals the candle with a purple X, it means that the trend is changing and the entire open operation must be closed.
This system has no Stop, so be careful when using it.
Na linguagem do autor:
Larry Williams usou esse sistema ganhar campeonato de trade
Olá amigos, trago um script com uma estratégia de trade pra ser usada em futuros como Índice, Forex e Commodities. Desenvolvido pelo famoso trader Larry Willians.
Neles usamos duas Médias Móveis Simples (Aritmética) de 3 períodos (uma com o preço da máxima, outra com o preço da mínima), e uma Média Móvel (Aritmética) de 21 períodos para determinar a tendência. Nisso vai formar uma canal de médias com os preços das máximas e mínimas dos últimos três candles.
Melhores tempos gráficos usar a estratégia: de 5 minutos até 60 minutos.
Essa estratégia é bem simples. A Média Móvel de 21 irá colorir de acordo com a tendência (Green pra alta, Red para baixa e Gray para transições). O Script irá sinalizar a entrada de acordo com a tendência pela cores dos candles e também pela sinalização:
Quando green, a compra será no cruzamento da Média Móvel inferior cruzando o candle, e a saida será no cruzamento do candle na Média Móvel Superior seguinte.
Quando red, a venda será no cruzamento da Média Móvel Superior cruzando o candle, e a saida será no cruzamento do candle na Média Móvel Inferior seguinte.
Quando o Script sinaliza o candle com X purple, significa que a tendência está em mudança e deve ser fechada toda a operação em aberto.
Este sistema não possui Stop, portando cuidado quanto a seu uso.
Triangular Trend Channel ATRTTCATR: Triangular Trend Channel ATR is a script to dynamically create a trend channel. It uses Moving Average & the Average True Range function to calculate support and resistance levels automatically.
The MA choices available are:
SMA = simple moving average
EMA = exponentially weighted moving average
RMA = moving average used in RSI
WMA = weighted moving average
VWMA = volume weighted moving average
VWAP = volume weighted average price
HMA = Hull moving average
SWMA = symmetrically weighted moving average
ALMA = Arnaud Legoux moving average
The default setting inputs are:
source = OHLC4
MA length = 20
MA signal = 10
ATR Multiply = 3
ALMA offset = 0.89
ALMA sigma = 5
Moving average type = VWMA
Level 1 ATR = 1.236
Level 2 ATR = 2.382
Level 3 ATR = 3.5
Level 4 ATR = 4.618
Level 5 ATR = 5.786
The default setting colors are:
Top = gray
R4 = white
R3 = green
R2 = orange
R1 = blue
pivot = white
(track pivot line = bullish is green, bearish is red)
S1 = purple
S2 = yellow
S3 = red
S4 = white
Bottom = gray
* This script uses altered pieces of code from my @Options360 TTC: Triangular Trend Channel and @TradingView "Intrabar Efficiency Ratio indicator". *
LNL Keltner CandlesLNL Keltner Candles
This indicator plots mean reversion (reversal) arrows with custom painted candles based on the price touch or close above or below keltner channel limits (upper & lower bands). This study was created primarily for swing trading & higher time frames such as daily and weekly. Lower time frames might result in more false signals.
Mean Reversal Arrows:
1. Reversal Arrow Up - If the price drops below the lower band extremes, reversal up is the trigger for a bullish mean reversion.
2. Reversal Arrow Down - Once the price reach the higher band extremes, reversal down is the trigger for a bearish mean reversion.
The Concept of Mean Reversion:
There are just two types of moves in any market: The market is either expanding from the mean or retracing back to the mean. These reversions & epxansions are happening across all types of markets. The goal of this study is to catch the powerful mean reversion from extremes back to the mean. Once the candles light up green / red, it is time to look for the reversal (purple) arrow which triggers the mean reversion setup. Mean reversion is not about catching the next big swing turn to new highs or lows. It is all about the base hits = the mean. So the target here is always the average price. The idea here is to catch the average market ebbs & flows, not the next home run.
What Do I Mean by Mean?
Mean is usually the average price from the last 20-30 bars. Basically something like a 20 MA or Keltner Channel or Bollinger Band midline are really good visual representators of the mean (average price).
Hope it helps.
XYZ Super Fibonacci Channel Cluster
Simple setups
Just input two different ema, X and Y.
Multiple = input Phi factor (ex: 0.38 , 0.618 , 1.618 , 3.14)
Usage
Grouping movements into channels to identify trend acceleration and deceleration
Example usability in the BTC/USD trading pair (timeframe = 1D) =>
Input Setups
Source = hlc3
Multiplier = 2
X Ema = 13
Y Ema = 21
How to identify acceleration and deceleration?
H_1 to H_2 => Bullish but no acceleration (because at same top level border).
H_2 to H_3 => Bullish with acceleration (go up to another top level border).
H_3 to H_4 / H_4 to H_5 => Bullish deceleration (because drop to another top level border).
L_1 to L_2 => Bearish signal (because fall below EMA-super and touch the bottom border of Super Channel).
L_2 to L_3 => Bearish acceleration (drop to another bottom level border).
L_3 to L_4 => Bearish deceleration (go up to another bottom level border).
Fibonacci Breakout Target LevelsFibonacci Extension
Fibonacci Extension is a powerful technical analysis tool that traders use to predict where the market might find support and resistance. It is based on the Fibonacci sequence and uses levels that are found by extending the 23.6%, 38.2%, 50%, 61.8%, and 100% Fibonacci ratios from a swing high or low. These levels can be used to find possible areas of support and resistance, and traders often use them to figure out when to get into or get out of a trade.
What does this indicator do?
This indicator gets five levels of the Fibonacci Extension and uses it for both the low and the high. The default lookback period is 10 days, and it checks for the highest and lowest price in that period. Then it calculates the extension levels and plots them, and it also adds a line that shows you the current breakout target levels.
How to use?
The primary use intended for this indicator is to be used to determine possible breakout target levels. Let's say you are trading a range and a breakout happens. You can use this indicator to determine possible take-profit zones and possible support and resistance zones.
Features:
Change the lookback period for the Fibonacci Extension levels.
Disable the Fibonacci Bands if you just want to see the FIB levels.
You can also change the 5 levels and add different Fibonacci numbers.
In this image, you can see how you can use this indicator to determine take-profit levels. The Fibonacci Extensions will determine potential support and resistance levels, which could be good places to exit your long or short positions.
VWAP 3x Session Reset- This VWAP aims to be used with futures and forex.
- The VWAP is reset at the beginning of each session.
- 3 different sessions can be specified.
- The lines are not drawn when there is no active session.
- The upper and lower bands with standard deviation 2 are also drawn.
Info: The time zone of the picture is Europe/Berlin