Compression support&resistance [LM]Hello traders,
I would like to present you Compression support&resistance script. The idea behind is to look for areas of price compression(inside bar candles). Basically the S/R lines are created after three candles that are formed in certain pattern and volume conditions. First candle of pattern is usually the most volatile and fist inside bar after volatile candle high and low creates S/R lines in order to look for breakouts or for future bounces of the S/R line. Also by default volume has to be decreasing from candle to candle, although this condition can be controlled by setting.
It has various settings as my other S/R scripts for multi timeframe analysis. The current timeframe uses line API but for multi timeframe I use plot lines. There are two filters. Volume filter for declining volume of the pattern candles and volatility filter which renders line only in case that pattern occurs after some % change has happened within some lookback period.
Credit also for this indicator goes to @berkek as he took time to explain it to me.
Hope you will enjoy it,
Lukas
Индикатор Inside Bar
4 SMAs & Inside Bar (Colored)SMAs and Inside Bar strategy is very common as far as Technical analysis is concern. This script is a combination of 10-20-50-200 SMA and Inside Bar Candle Identification.
SMA Crossover:
4 SMAs (10, 20, 50 & 200) are combined here in one single indicator.
Crossover signal for Buy as "B" will be shown in the chart if SMA 10 is above 20 & 50 and SMA 20 is above 50.
Crossover signal for Sell as "S" will be shown in the chart if SMA 10 is below 20 & 50 and SMA 20 is below 50.
Inside Bar Identification:
This is to simply identify if there is a inside bar candle. The logic is very simple - High of the previous candle should be higher than current candle and low of the previous candle should be lower than the current candle.
If the previous candle is red, the following candle would be Yellow - which may give some bullish view in most of the cases but not always
If the previous candle is green, the following candle would be Black - which may give some bearish view in most of the cases but not always
Be Cautious when you see alternate yellow and black candle, it may give move on the both side
Please comment if you have any interesting ideas to improve this indicator.
Price Action: Inside Bar BoxesThis script automatically draws rectangles around bars inside IB pattern.
Note :: because Pinescript does not allow changes to already drawn charts on historical bars, checkbox "show only last box" doesn't work for arrows
Narrow Range (NR) IndicatorNarrow Range (NR) trading strategy is a breakout-based method that assumes that the price of security trends up or down after a brief consolidation in a narrow range. This indicator can plot:
1. Narrow Range (NR) 4, 7, and 21
2. Narrow Range (NR) 4, 7, and 21 + Inside Bars (IB)
NR 4/NR 7/NR 21 day acts as a confirming factor on where the price will move further. Breakout of NR 4/NR 7/NR 21 candle with high volumes indicates bullishness, while the breakdown candle indicates bearishness.
MY BOX by GustavoThis box contains two strategies, several moving averages and Bollinger Bands.
PFR or "Reversal closing price" is a simple and effective strategy, widespread by the Brazilian trader Stormer.
The purpose is to make the candles generate the input signal more clearly.
Description:
When the sales PFR candle appears colored, watch out for the next candle. If he breaks the closing of the PFR sell candle, SALE!
Your stop should be at the maximum of the PFR candle and your target projected at 1.618 in the fibonacci extension.
When the buy PFR candle appears colored, watch out for the next candle. If it breaks the closing of the buy PFR candle, BUY!
Your stop should be at the low of the PFR candle and your target projected at 1.618 in the fibonacci extension.
Inside Bar: The candle has its maximum less than the maximum of the previous candle and its minimum greater than the minimum of the previous candle.
Settings:
You can edit the colors in the indicator settings and select the measurements you want to use.
You can also choose to use the Stocastico Lento filter on over-purchase and over-sale.
You can also activate the Inside bar, it will appear in red on the graph.
There is also the possibility to activate in the settings, the Bollinger Bands.
--------------------------
Este box contém duas estratégias, diversas médias móveis e Bandas de Bollinger.
PFR ou "Preço de fechamento de reversão" é uma estratégia simples e eficaz, bastante difundida pelo trader brasileiro Stormer.
O intuito é tornar os candles de geram o sinal de entrada mais claro.
Descrição:
Quando o candle PFR de venda aparecer colorido, fique atento ao próximo candle. Se ele romper o fechamento do candle PFR de venda, VENDA!
Seu stop deverá ser na maxima do candle PFR e seu alvo projetado em 1,618 na extenção de fibonacci.
Quando o candle PFR de compra aparecer colorido, fique atento ao próximo candle. Se ele romper o fechamento do candle PFR de compra, COMPRE!
Seu stop deverá ser na mínima do candle PFR e seu alvo projetado em 1,618 na extenção de fibonacci.
Inside Bar: O candle tem sua máxima menor que a máxima do candle anterior e sua mínima maior que a minima do candle anterior.
Configuração:
Você pode editar as cores nas configurações do indicador e selecione as medias que deseja usar.
Também pode escolher usar o filtro do Stocastico Lento em sobre compra e sobre venda.
Você também pode ativar o Inside bar, ele aparecerá em vermelho no gráfico.
Há também a possibilidade de ativar nas configurações, as Bandas de bollinger.
EMA Cross 9,21,50,80,200 + Inside barEste script faz o seguinte:
1. Plota 5 EMAs (9,21,50,80,200)
2. Faz crossover da 9x21 e 21x50
3. Colore inside bar em amarelo (é possível ainda colorir diferentemente bullish e bearish inside bar)
CSPDMost Advanced & Accurate CandleStick Pattern Detector
Looking All Over of All Markets for All Important Powerful Reversal | Corrective Patterns (25 type)
Filtering the Results with Optional Features like Oscillator, Bollinger Bands, Volume Confirmation, Prior and Following Candles Confirmation which are Fully Customizable.
With this you can detect:
Hammer | Shooting star
Inverted Hammer | Hanging
Long legged Doji | Dragonfly Doji | Gravestone Doji
Bullish tweezers | Bearish tweezers
Bullish inside bar | Bearish inside bar
Bullish three line strike | Bearish three line strike
Bullish engulfing | Bearish engulfing
Piercing line | Dark cloud cover
Bullish abandoned baby | Bearish abandoned baby
Morning star | Evening star
Three white soldiers | Three black crows
*Bullish kayo | *Bearish kayo
Features:
Prior and Following candles Confirmation
You can set prior and following candle as basic prerequisites for marking candles as pattern to make sure you are at the top or bottom of the trend.
Volume confirmation
You can active volume increasing confirmation for some of pattern with adjustable increase % relative to prior candle | candles.
Oscillator Confirmation
Active oscillator confirmation. Select your approved oscillator from list (Stochastic, RSI, StochRSI, MFI, StochMFI) then enter desired value for marking candles as bullish | bearish pattern.
Bollinger Bands Confirmation
Active BB confirmation. Configure your Bollinger Bands. Now only see the patterns which reached or crossed from Bands. Also you can enable BB clod to have your BB indicator at the same time.
Adjustable Flexibility and Precision
You can set tolerance% for Osc and BB Confirmation - each one separately - for more control.
Self-adaptability
The properties of markets change over time, for example the amplitude of fluctuations and the intensity of movements. The script is designed in such a way that you can examine the price history as a benchmark for changes in market properties to adopt determinants. Also you can control those manually.
Self-regulatory
The user has the ability to change input factors depending on their point of view.
Behind the pattern recognition algorithms, there are relationships and similarities in their appearance that cause them to be influenced by each other. Simultaneously with changing the determining factors of each pattern by you, script automatically adjusts other details in accordance with your changes.
Alerts
You can set for type of pattern or each one of pattern have been detected.
Fully Costumizable
All of these options can be change and adjust.
Note 1.
The patterns are based on extensive study of reference and famous sources and the experience of me and my friends in trading and analysis with price action methods.
Note 2.
Due to the Pine limitations in the number of outputs | plots for each script, our attempt has been made to select the best and most important patterns.
Note 3.
So far, many scripts have been written in this field, but our experience with all of them and even the build in version was not satisfactory, and this was the initial motivation for making the script.
We strive to improve progress and elimination of shortcomings and we will continue to make this better.
Note 4.
Through personal experience and based on the principles of market and candlestick psychology, we discovered a new type of pattern and named it as Kayo.
kayo is a two candle pattern which formed when:
1.We have a pivot point with prior candles as left bars and following candles as right bar. Pivot candle called as second candle.
2.In a bullish kayo, first candle must closed descending and second candle must closed as ascending. For bearish kayo vise versa.
3.In a bullish kayo, second candle's lower wick must be longer then upper wick.
4. A pattern marked as kayo when its conditions do not correspond to any of the other patterns(include the confirmation that user added), ie it has the last naming priority over the other patterns.
Note 5.
When you active confirmation options for patterns like hammer, engulf and etc which they conditions are like kayo in some extent, if they can't pass the confirmation steps, they can be marked as kayo pattern.
Note 6.
If you active volume confirmation for Three white soldiers | Three black crows, the confirmation get passed if the volume of forth or third candle increased as value as entered relative to volume EMA3 of 3 candles.
Note 7.
In a bullish pattern all highs of following candles MUST be higher than prior highs and all lows of following candles MUST be higher than prior lows. For bearish patterns vise versa.
This type of confirmation depends on High and Low NOT close!
Gift to price action lovers!
Support us with your like and comments. let us know your experience, points and idea to make this better together.
Coloring an inside barThis script colors the candles covered in the previous candle. The candle is colored. You can make many adjustments yourself.
Two Fractals TrendlinesThis study draws a trend line for the last two Bill Williams up-fractals and down-fractals.
Trend line break signals and alerts can optionally be added.
Hikkake PatternLifted description from web:
Hikkake means to trap, trick, or ensnare. Primarily, this price pattern seeks to identify inside bar breakouts and profit from their failures.
An inside bar is a price bar that is entirely within the range of the preceding price bar. Inside bars are typical on price charts of most timeframes.
While you’ll often find inside bars in congested markets, they also offer a low-risk entry point for price action traders. The contracted range of an inside bar offers a natural tight stop-loss.
Hence, inside bar breakouts seem attractive. However, if you are patient and focus on identifying false breakouts, you might be able to find more reliable trading setups in the form of Hikkakes.
In a nutshell, the Hikkake pattern offers a systematic approach to trading false inside bar breakouts.
As a filter I incorporated VWAP into the code to only trigger Bullish / Bearish signals when price is Above/Below VWAP respectively. The ATR is used to create a Stop buffer (red cross) for the Entry signal ( green dot ). The R1 and R2 (orange squares) are two possible profit targets that are customizable to different Risk multiples based upon the difference between Entry and Stop.
NR4 / NR7 + Inside BarIndicator Script for identifying Narrow Range 4 / 7 + Inside Bar
It also helps to check whether NR4 / NR7 breakout trading has been profitable or not in the past in a particular instrument.
It has helped me to select profitable scripts and avoid losing ones. Can be used for anytime frame.
SIGNAL
NR4 == Narrowest range of 4 periods + signal day is an inside bar
NR4 & NR7 == Narrowest range of 7 periods + signal day is an inside bar
SIGNAL "PROFIT" -
Prior day was NR4 / NR7 and next day price broke out of prior day range in 1 direction and closed in the direction of breakout away from breakout price, resulting in a profit trade.
SIGNAL "LOSS" -
Prior day was NR4 / NR7 and next day price broke out of prior day range and returned back to close inside the narrow zone OR went in opposite direction after the initial breakout, resulting in a loss trade.
Inside Bar Visualizer PineV4I didn't find a study for Inside bar as I wanted. Therefore I wrote a one with PineV4. This may help you to see inside bars.
It can recalculate and works with either (opens-closes) or (highs-lows)
Cheers! :)
ZigZag Plus [xdecow]A ZigZag Like based on candle close.
A lot of options that can be hide in options.
Triangle/bright - reversal confirmation candle
Circle/dark - higher/lower candle breakout
Square/light - Insidebar
Inside Bar and Outside Bar Simple indicator, to show outside bars and inside bars
inside sellbar = "I" in red color
inside buybar = "I" in green color
Outside sellbar = "O" in red color
Outside buybar = "O" in green color
----------//---------------
PT-BR
Indicador simples, para mostrar outside bars e inside bars
inside sellbar = "I" na cor vermelha
inside buybar = "I" na cor verde
Outside sellbar = "O" na cor vermelha
Outside buybar = "O" na cor verde
Inside BarsMark Inside Bars with a triangle above the calendar. This indicator supports having different colors and alerts for 1, 2 or 3 consecutive inside bars.
Three-Bar Inside Bar PaternAuthor: Johnan Prathap TASC March 2011
The typical inside bar two-bar view indicates minimal activity in a market. It is defined as a bar (or series of bars) that is completely within the range of the preceding bar; that is, it has a higher low and lower high than the bar immediately before it. Some traders consider a bar an inside bar if the high and low are equal to the previous bar or where there are several consecutive bars within the range of a previous bar.
Many analysts tend to view inside bars as an indication of declining market activity, or possibly a prelude to a large movement in either direction.
Inside Bar FailureYou can check edge profitability by adjusting the forward looking input, eg. how profitable is this signal after X bars.
Flying Buddha Inside Bars Indicator v1 by JustUncleLDescription:
=============
This indicator plots MAs and paints Triggered Alert Arrows base on Flying Buddha candle patterns.
The “Flying Buddha” Pattern is defined as:
---------------------------------------------
A candlestick chart with two moving averages: the 5 period exponential moving average (fast EMA) and the 10 period simple moving average (slow SMA), both applied to the closing price. The default “Flying Buddha” pattern is any candlestick which:
1. Has a LOW above the fast EMA, when the fast EMA is above the slow SMA (a bearish “Flying Buddha”); or
2. Has a HIGH below the fast EMA, when the fast EMA is below the slow SMA (a bullish “Flying Buddha”).
Alert Trigger:
---------------
A Flying Buddha Alert is triggered on the first candle that is a non-flying Buddha candle after a Flying Buddha Pattern candle sequence. Flying Buddhas can optionally be filtered by InsideBars and PinBars.
The Alert Trigger is optionally filtered by the Directional MA (default=EMA 89), and/or by Minimum Sequence length of Flying Buddhas.
Moving Averages:
------------------
You can select between 11 different types of moving averages, for each MA line in Flying Buddha MAs (fastMA and slowMA) and the Directional Filter MA:
SMA = Simple Moving Average.
EMA = Exponential Moving Average.
WMA = Weighted Moving Average
VWMA = Volume Weighted Moving Average
SMMA = Smoothed Simple Moving Average.
DEMA = Double Exponential Moving Average
TEMA = Triple Exponential Moving Average.
HullMA = Hull Moving Average
SSMA = Ehlers Super Smoother Moving average
ZEMA = Near Zero Lag Exponential Moving Average.
TMA = Triangular (smoothed) Simple Moving Average.
NOTE: This is a concept indicator, I also intend to release a trading BOT suitable for Autoview, based on this concept indicator.
MACD (Moving Average Convergence/Divergence) + Inside BarMACD (Moving Average Convergence/Divergence) + Inside Bar so that free users can have two things in same indicator.
Script is open for everyone.
Check and test the code of Inside Bar and let me know if it is correct.
Feel feel to share.
Babypips: Inside Bar Momentum StrategyThe strategy contained in this post comes courtesy of babypips (.com), an excellent resource for all thing forex related. If you are new to trading, the site is definitely worth checking out!
Code commentary and an introduction to Inside Bars are available for this post on the Backtest-Rookies (.com) website.
Note: If you are interested in custom development services, please check out our services page on the Backtest-Rookies site.
Strategy Overview
Inside Bar Momentum Strategy.
Inside Bar Detection
Position sizing based on stoploss distance ( Note: Based on equity and assumes that the account currency is the counter currency.
Stop buys for entries
Takeprofit / Stoplosses for exits
Control Stopbuy, Takeprofit and Stoploss targets with inputs
Control Backtest start/end dates