NSDT Daily Gap RangeSimple script that plots the range between the previous day close and the current day open. This makes it easier to reference the gap up or gap down zone throughout the day.
Gapfill
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 Finder - Aitch-TGap finder finds the following types of gaps:
- Full Gap Up (open price is higher than the previous day's high)
- Partial Gap Up (open price is higher than the previous day's close)
- Full Gap Down (open price is lower than the previous day's low)
- Partial Gap Down (open price is lower that the previous day's close)
The script is fully customizable and can be applied to Forex, futures, stocks and crypto.
How to use it:
Once you have added the script to your chart, go to the script's settings and type in the size of the gap, then move to the style tab and check the types of gaps that you want the script to find. If you wish, you can also edit the rest of the settings to your liking.
Hit the Ok button when your done.
Green and red squares will appear on top and bottom of the indicator pointing out the location of the sharp move.
By default, full gap signals appear on top of the indicator while partial gap signals appear on the bottom of the indicator.
Defaul gap size is 1%.
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.
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 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.
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!
Gap Trader
Plot the most recent 20 gaps based on custom session info.
The session can be customized with a start time and an end time.
The previous open, high, low, close are only from the price during the session specified.
A gap line will stop printing the moment the gap is filled.
For CME futures, the session must be offset by one hour for Central time. I use the official cash close of 16:15 EST (yes, not 16:00) as this is the TRUE close when options go offline. Every day CME futures take a break between 16:15 - 16:30 EST for settlement, and then again from 17:00 - 18:00 EST.
To offset CME futures you must subtract an hour, the official NYSE hours for futures: 0830-1515, this translates to 9:30 AM EST - 4:15 PM EST.
For information about the probability of a previous day's gap being filled by the NYSE close: www.investiquant.com
MondayOpen Gap strategyThis strategy open orders on first bar of the week if there is a gap with Friday close price.
First bar could be on Sunday or on Monday, it depends on broker time.
Adjust starting hour with broker time. Use arrows to help finding correct broker time.
Also you should adjust gap size and exit hour.
Do not place on Daily charts.
Please use comment section for any feedback.
Next improvement (only to whom is interested to this script and follows me): study with alerts on multiple tickers all at one. Leave a comment if you want to have access to study.
********************************** IMPORTANT*******************************
I have developed an expert advisor for metatrader4 (MT4) and for jforex platform: results of expert advisor form 2015-01-01 to 2018-11-25 are very good with low drawdown and good profit.
********************************************************************************
Khaos-Hidden-Gaps
This is an indicator that shows Hidden Gaps. It will assist when looking for support and resistance levels, as well as help in understanding trend, thereby improving trading performance.
LEGAL STUFF:
Risk Disclosure
Futures , forex, stock, crypto and derivative trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing ones’ financial security or life style. Only risk capital should be used for trading and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results
Hypothetical Performance Disclosure
Hypothetical performance results have many inherent limitations, some of which are described below. no representation is being made that any account will or is likely to achieve profits or losses similar to those shown; in fact, there are frequently sharp differences between hypothetical performance results and the actual results subsequently achieved by any particular trading program. One of the limitations of hypothetical performance results is that they are generally prepared with the benefit of hindsight. In addition, hypothetical trading does not involve financial risk, and no hypothetical trading record can completely account for the impact of financial risk of actual trading. for example, the ability to withstand losses or to adhere to a particular trading program in spite of trading losses are material points which can also adversely affect actual trading results. There are numerous other factors related to the markets in general or to the implementation of any specific trading program which cannot be fully accounted for in the preparation of hypothetical performance results and all which can adversely affect trading results
Gappers - Closed gaps analysis
Hey all,
trading the week-end gap on monday is a well known trading technique, praised by most and ignored by others
With my script you can easily see where there have been monday gaps and see where these gaps has been closed on monday
If a gap is present the script shows a WHITE SQUARE
if a gap is present and is filled on monday candle it shows WHITE SQUARE + "GAP CLOSED"
You can also set the threshold for the gap (first parameter)
and set the threshold of how near last candle close your TP is
Defaults are 1.001 for gap and 1.001 for closed TP (for gap 1.0019 takes in account only big gaps)
Enjoy and tell me what you think
Cheers!
Lorenzo