Gap Filling Strategy Gaps are market prices structures that appear frequently in the stock market, and can be detected when the opening price is different from the previous closing price, this is why gaps are also called "opening price jumps". While gaps can occur frequently, some of them are more significant than others, and can be observed when looking at a long term chart.
The following strategy is based on the exploitation of significant gaps occurring during a new session, and posses various options that can return a wide variety of results.
Type Of Gaps And Occurence
I'am not a professional when it comes to gaps, but as you know the stock market close for the day, however it is still possible to place orders, your broker will hold them until the market open back. Once the market reopen the broker execute the pending orders, and when many orders where pending the market register really high volume and the price might differ from the precedent close.
Gaps are generally broken down into four types:
Common : Gaps occurring within a certain price range, mostly occurs during ranging markets.
Break Away : Gaps breaking a support and resistance, making a new higher high/lower low.
Runaway : Gaps occurring within a trend, followed by a continuation of the trend.
Exhaustion : Gaps occurring at the end of a trend, followed by a reversal.
As said before, some gaps are more significant than others, the significance of a gap can be determined by comparing the opening price with the previous high/low price and by looking at volume. Significant up gaps will have an opening price greater than the previous high, while significant down gap will have an opening price lower than the previous low with both high volume accompanying them.
After a gap, when the price go back to the point previous to the gap we say that it has been "filled", this characteristic is what will be exploited in this strategy.
Strategy Rules & Logic
In this strategy, the significance of a gap is determined by the position of the opening price relative to the previous high/low and make sure the bar following the gap don't fill it.
When the setting invert is set to false the strategy interpret the detected gaps as being exhaustion gaps, therefore when an up gap occur a short position is opened, when a down gap occur a long position is opened. When invert is set to true gaps are considered to be runaway or break away gaps, therefore the contrary positions are opened. Positions are exited when the gap has been filled, which in the chart is show'n when the price cross the red level who act as either a take profit (invert = false) or as a stop loss (invert = true).
There are various closing conditions available that the user can select from the "close when" setting.
New Session : This option close all previous positions when the market is in a new session.
New Gap : This option close all previous position when a new gap has been detected.
Reverse Position : This option close all previous position when a contrary position to the current one is opened. This option would reduce the number of trades.
Testing On Some Stocks
The analysis will be tested in different tech stocks with a main TF of 15 minutes with no spread and commissions applied. Default settings will be used. We'll be making our first analysis using AMD, who has recently formed a full reverse HS pattern, where the neckline has been crossed by the price. (by the way i have a bad feeling about it, hey ! feeling filling ! Lame jokes!)
Profit: $ -12.22
Trades: 272
Profitability: 65.07 %
We can see negative results, with an heavily decreasing balance. Using invert would return positive results.
We will now test the strategy on NVDA, the company is one of the biggest when it comes to the Gpu market.
Profit: $ -215.54
Trades: 297
Profitability: 60.27 %
Not better, using invert would of course create better results. Like AMD the balance is heavily decreasing.
Finally we will test the strategy on Seagate technology, a company mostly known for their mechanical hard drives.
Profit: $ -4.32
Trades: 261
Profitability: 65.9 %
Here the balance does not appear so heavily decreasing and even managed to reach back the initial balance before going down again.
Summary
A strategy based on gap filling has been briefly introduced and tested with 3 tech stocks. The results show that using invert option might be better. The advantage of this strategy against ones using technical indicators is that this one does not heavily depend on user settings, which make it way more efficient, this a big advantage of patterns based strategies.
Thx to LucF for helping with the "process_orders_on_close" element, since i had to use closing price i had to remove it tho, was afraid results would differ even more from a more realistic backtest. And thx for those who continuously support me, more cool stuff is coming up.
Thx for reading and i hope you'll have learned something new today !
Gap
Trendbar IM This script show me iniciative move. It it based on 3, 4 or 5 candles thats contains pivot low/high and hidden gap. I use that with volume profile to confirm that the gap is really made with "big players". It shows me momentum in the market. For intraday i am using that on 1h chart and swing 4h and daily chart.
GAPS CheckerUsing this indicator allows you to indentify large GAPS directly in your stock chart at first glance.
It uses two different sorts for large GAPS (e.g. larger than 3%) and for very large GAPS (e.g. larger than 6%). These values can be changed in the indicator settings.
Hope this helps many of you to be more efficient in your chart analysis - have fun!
TeoTrading 27 - GAP DetectorThis Indicator Detects different Types of GAPs.
You can configure:
PercentThreshold: minimum percent value to consider in the GAP detection.
Date from.
Date To.
Ignore End Date.
Over the last candle, prints the values of the different type of GAPs found.
CME Gap Finder - BitcoinOnly for Bitcoin!
This indicator locates weekly gaps created by the CME Futures market for Bitcoin.
As you can see, Bitcoin tends to close the weekly gaps created in the futures market so I thought this could be a very useful tool.
Instead of having to look between multiple charts, this simply overlays the past weeks open and close should a gap appear.
I hope you find this indicator useful!
Cheers!
GAPS Checker v2 PROUsing this indicator allows you to indentify large GAPS directly in your stock chart at first glance. The algorithm of the indicator *Gaps Checker v2* was optimized in this new indicator as well as it using the new pine script version v4. For backwards compatibility reasons this indicator is published.
This indicator is available in two versions ‘Lite’ and ‘PRO’. The difference is the calculated precision and the percent inputs in integer numbers or more granular in float values.
It uses two different sorts for large GAPS (yellow, e.g. larger than 2%) and for very large GAPS (red, e.g. larger than 4%). These values can be changed in the indicator settings.
Hope this helps many of you to be more efficient in your chart analysis - have fun!
GAPS Checker v2 LiteUsing this indicator allows you to indentify large GAPS directly in your stock chart at first glance. The algorithm of the indicator *Gaps Checker v2* was optimized in this new indicator as well as it using the new pine script version v4. For backwards compatibility reasons this indicator is published.
This indicator is available in two versions ‘Lite’ and ‘PRO’. The difference is the calculated precision and the percent inputs in integer numbers or more granular in float values.
It uses two different sorts for large GAPS (yellow, e.g. larger than 2%) and for very large GAPS (red, e.g. larger than 4%). These values can be changed in the indicator settings.
Hope this helps many of you to be more efficient in your chart analysis - have fun!
Gap Finder v1.0 by Nimit ChomnawangThis indicator shows locations of price gaps (or candle stick discontinuities). It prints out the labels "Gap" under the price bars where gaps occur. Asterisk " * " is used to pin point the bars with gaps.
GapGap
I've seen many trade decisions based on the CME Bitcoin Futures gap, so this indicator will let you know if that strategy is good or not, so use it as another confirmation 👍🏻.
- Shows when a gap is created, when it is filled and if not filled if a new gap is created.
- You can also use another security as a reference.
- Multi Timeframe , by default it will search the daily gaps.
GAP DETECTORGAP DETECTOR is an indicator displaying price gaps that have never been completely filled (only gaps >= 5 pips are considered).
Each gap is defined by two lines (the lower and upper bound of the gap), and a label giving information on its price range
#Parameters:
length: the number of candles being considered in the indicator (max is 3000).
width: the width of the gap lines.
My Closed Gap [-W-]Eng.
Updated version of the my Closed Gap indicator.
Starts drawing a horizontal line - the level of opening the gap, when the gap appears and finishes drawing the line when the gap closes.
You can set the minimum gap value at which the line will be drawn.
To do this, first select the appropriate operating mode, and then enter the required value in the corresponding field.
There are also other interesting modes of operation, the default is - without micro gaps.
The length is the number of candles, starting from the current one, in which gaps will be searched. The maximum value is 4990.
Rus .
Обновлённая версия индикатора My Closed Gap.
Начинает рисовать горизонтальную линию - уровень открытия гэпа, когда гэп появляется и заканчивает рисовать линию, когда гэп закрывается.
Можно задать минимальную величину гэпа при которой будет нарисована линия.
Для этого сначала нужно выбрать соответствующий режим работы, а затем ввести в соответствующее поле необходимое значение.
Так же имеются другие интересные режимы работы, по умолчанию стоит - без микро гэпов.
Длина - это количество свечей, начиная с текущей, в которых будут искаться гэпы. Максимальное значение - 4990.
CME Bitcoin Gap Finder Orderblock Support ResistanceCME Bitcoin Gap Finder Orderblock Support Resistance
Intro
I had a backlog of scripts to release, and so everyone is getting some Christmas gifts early!
I have been watching CME gaps and how they relate to BTC for over a year now. I find they make good orderblock support/resistance areas.
Description
There is a limitation to how many lines I can draw with the new pine script functions. So for instance if you want to see the gaps from 2018 I have included a date range selector (similar to how a backtest works). This way you can only display the gaps from the dates ranges you want to see.
There's also the ability to check for gaps on the daily, 12h, 4h, and 1h charts. I recommend using 12H. But know that depending on what period you choose it will effect the size of the gaps, so experiment and see what works for you.
Lastly I included the ability to have background highlights whenever CME is closed on the weekend, just for visual reference.
You can use this indicator on any BTC ticker, and it will show you where the CME gaps are (without having to switch/reference the CME chart).
👍 We hope you enjoyed this indicator and find it useful! We post free crypto analysis, strategies and indicators regularly. This is our 74th script on Tradingview!
💬Check my Signature for other information
Simple CME GAP displayAn indicator that displays the CME bitcoin rate gap in a simple manner.
One recent gap can be displayed.
CMEのビットコインレートの窓を簡易表示するインジケーターです。
最近の窓を1つ表示できます。
Gap Automatic Retrocess LevelsThis Script detects Bearish / Bullish GAP at market opening 09:30 am NY and automatically traces backward levels, of which 2 are configurable at your discretion.
[AN] GapierA colored gap finder.
It colors a gap until it gets closed. It displays an info for the current opened gaps (range).
Allows to change the gap timeframe
Allows you to overlay gaps of other symbol on the current one
There are some assets that really like to fill the gaps. Using this indicator you can have a better understanding on where the price is heading (on the current trend).
Gap Up and Gap DownIdentify gap ups and downs by percentage and amount.
Set alerts for:
Gap up/down by %
Gap up/down by $
Piercing Line Pattern Trading Setupthis study is the first one of a series of scripts based on the candlesticks pattern which will be published over time. There are several such scripts out there that can be found on TradingView but they seem to be inaccurate with a lot of noises and messy hard to understand code. In this script, I've tried to have a clean and easy to get
of the pattern itself and the method for detecting it with enough parameters to filter out the noises.
Piercing Pattern
A piercing pattern is a technical trading signal that is formed by a closing down day with a good-sized trading range, followed by a trading gap lower the following day with a bullish candlestick that covers at least half of the upward length of the previous day's bearish candlestick body, finishing with a close higher for the day. A piercing pattern often signals the end of a small to moderate downward trend. A piercing pattern can serve as a potential indicator for a bullish reversal. This pattern is formed by two consecutive candlestick marks. The first candlestick is bearish signifying a down day and the second is bullish signifying an up day. When a trader is watching for a bullish reversal any red candlestick followed by a green candlestick could be an alert. There are a few things that set a piercing pattern apart from a general red candlestick green candlestick pattern. In a piercing pattern, a green candlestick follows a red one with a significant gap in the red candlestick close and green candlestick open. On the second-day green candlestick, the candlestick’s body must also lengthen to cover at least half of the previous day’s red candlestick . Generally, the gap down and substantial increase to the closing price are good signs for a reversal. In a piercing pattern, the second-day green candlestick will close at or above the midpoint of the previous day’s red candlestick.
please provide me with your valuable comments,
thanks for your attention,
Gap Up Stats - Gap Strategie für Aktien! Was passiert eigentlich nach einem X% Gap? Diese Frage lässt sich nun einfach beantworten! Ändere die % und die Anzahl der Jahre, welche Du testen möchtest mit nur einem Klick. Die unterschiedlichen Werte zeigen Dir dann direkt, ob sich Deine Handelsthese mit den Statistiken der Aktie deckt.
In diesem Fall sehen wir, dass die Aktie über das letzte Jahr in allen Fällen unter dem Eröffnungspreis geschlossen hat. Der durchschnittliche Spike lag bei 16%. Damit ist ein Short die richtige Wahl und die potentiellen Level der Aktie können mit der Statistik vereint werden.
Bei Interesse ist dieses Skript bei uns erhältlich.
Viele Grüße
WirmachenTrader®
2nd Day Stats / BACKTESTING TOOL//English version below
## Deutsche Version
Was passiert am 2. Tag, nachdem wir X % am ersten Tag zurückgelegt haben? Genau dies lässt sich sehr gut backtesten und die Erkenntnisse im Markt anwenden. Dieses Tool eignet sich besonders für kleinere Aktien (Small-Caps) oder Aktien, die am Tag der Quartalszahlen große Bewegungen zurückgelegt haben. Backtesting war selten so einfach.
## English version
What happens after a strong day 1 move? Use the custom input to test, what happened after a 10% move on day one. Change the day 1 move % and the number of years to backtest. It's that simple. The tool is especially helpful for small-cap traders and for stocks after earnings.
Wirmchen 2nd Day StatsThis is a stats script for calculating gaps and opportunities to trade them in the market
requested by user felhvbn
WhiplashClimax setup looking for a reversal the next day after a gap, this works best if the signal is triggered after a prolonged move in one direction. Enter the position at the close of the day when you get a signal and exit for a loss the next day if not profitable, otherwise, trail a stop to lock profits.