NSDT Fair Value GapThis script is our version of the "Fair Value Gap".
A Fair Value Gap is nothing more than a series of 3 candles with a gap between a candle high/low and a candle high/low two candles prior.
For example:
A Gap Up - the Low of a candle is higher than the High of two candles back.
A Gap Down - the High of a candle is lower than the Low of two candles back.
Typically, on a Gap Up, the trader would wait for the price to re-enter the Gap, and take a Long position.
Typically, on a Gap Down, the trader would wait for the price to re-enter the Gap, and take a Short position.
We found that simply trading through the Gaps (fill the gap) produced a better result. So we reversed the procedure and the colors to show our suggested direction.
We have added inputs so the trader can determine the size of the Gaps to be plotted on the chart. A minimum and maximum can be set.
The number of Gaps to be displayed can be adjusted.
There is a option to remove Gaps that had been filled, to help keep a clean chart.
Gaps
Gaps [Kioseff Trading]Hello!
This script "Gaps" is a continuation and improvement on a subset indicator included in the "Quartile Volume; Volume Aggregation; US Range Bars; Gaps)" script!
As advised by @thebearfib, the "Gaps" indicator is now standalone!
Features
Stat: Avg. Bars to Fill Up Gap
Stat: Avg. Bars to Fill Down Gap
Stat: Cumulative Up Gap % Increase
Stat: Cumulative Down Gap % Increase
Stat: Avg Up Gap % Increase
Stat: Avg Down Gap % Decrease
Nearest Unfilled Up Gaps and Down Gaps Displayed in Table
% Price Move Requirement, Including Dollar Amount, for Nearest Unfilled Gaps to Fill
Gaps Marked on Chart, Including Partially Filled Gaps and The % Amount a Partially Filled Gap Has Been Violated
Gaps Chart
The image above shows the data tables included in the indicator!
Settings
The image above shows various settings for the indicator!
The image above shows how partially filled gaps are marked using the default settings.
Exceeded price areas are shaded darker; however, by selecting the "No Partially Filled Gaps" option, the indicator will treat partially filled gaps differently.
The image above shows alternative behavior! Instead of the gap changing color it narrows in size.
The image above shows the indicator's behavior when selecting to show gap data in labels.
Therefore, when a gap is small and the box text is imperceptible, you can select to show the data in a label.
Additionally, you can select to display a "Gaps Chart".
The image above shows this feature enabled. The gaps chart shows the sequence of price gaps for the asset as candlesticks.
Thank you for checking this out; if you'd like other features included please let me know!
Regular vs Electronic Trading hours Gap (RTH vs ETH); 4pm-9:30am-Shows the gap between 4pm close and 9:30am open; the Regular trading hours Vs Electronic trading hours Gap (RTH vs ETH).
-Displays this as a box starting at 9:30am, whose bottom is the 9:30am open; top is previous day's 4pm close.
-Displays when chart is toggled to either of ETH or RTH.
-Useful reminder of area above/below opening bell price that price often has a tendency to want to fill in, partially or fully
--(all times here refer to America/New_York timezone)
//Options:
~Number of past boxes to show
~Extend boxes fully to the right
~Box background color, border color, and opacities
//Limitations:
-works only on timeframes 30mins or lower (works on 1,2,5,10,15,30minutes)
-will not work on non-typical low timeframes (like 4min or 7min) since they are not divisible into 30
ICT NWOG/NDOG GapsThis indicator reveals the new week opening gaps (NWOG) and new day opening gaps (NDOG) as well as the most recent Regular Trading Hour (RTH) Gap. The NWOG is the gap between Friday's closing price and Sunday's opening price. The NDOG is the gap between the opening price and closing price of the previous day. These gaps can be draws on liquidity as well as general reference points of where the market is and has been.
The RTH gap is the difference between the NY Open price at 9:30AM EST and the previous day's closing price during Regular Trading Hours. This gap can also give you an idea of where the market is headed.
Seasonality Overnight Gaps - Tabular Form Use this indicator on Daily Timeframe
This script calculates the overnight gaps above a specific threshold (that can be set through input parameters) and displays the data in a tabular form with Year in the rows and the day of the week in the columns.
Also a summary row is displayed at the bottom for day of the week.
Detailed Gap info is displayed as tooltip for the cell data
Gap - Open should be outside the previous day's Open and Close
Gap % - open/prev. close - 1 if Gap is there
Gap ZonesSharing a simple gap zone identifier, simply detects gap up/down areas and plots them for visual reference. Calculation uses new candle open compared to previous candle close and draws the zone, a mid point is plotted also as far too often it's significance is proven effective.
Works on any timeframe and market though I recommend utilizing timeframes such as weekly or daily for viewing at lower timeframes such as 5, 15 or 30 minutes.
Often price is observed reaching towards zone high/mid/low before rejection/bouncing. These gap zones can give quantitative basis for trade management.
Future features may include alerts based on price crossing up/down gap low, mid and highs. Feel free to message with any other suggestions.
Crypto BTC Correlation Scalper Gaps StrategyThis strategy is based on the gaps theory.
In this case we have the BTC futures from CME, which acts in a way similar to stocks, and we can have gaps present between close/open session, and also sometimes between same candle due to huge movements intra candle.
At the same time I have combined this with a daily moving average, to help out a bit with the trend, since we are looking at small timeframe like 1-15/30min .
On top of that we have a reverse option, where long = short and viceversa, which can be used with against BTC pairs .
Rule are simple:
For long, we have a long gap and the close of the correlated candle is above daily sma
For short, we have a short gap and the close of the correlated candle is below daily sma
For exit:
For exit, we take the highest highest values for short entry TP, meaning we get the different from the HH and rest the current open candle distance, and use that distance as a TP.
At the same time for long entry, we take the lowest low value and rest current close of the candle to that value, and we get the TP.
Can also be applied this logic for SL aswell but from the test I have found out that exiting based on a reverse condition(when tp is not being hit), gives better results/dd overall.
If you have any questions, please let me know !
Intraday Accumulator [close-open]This script plots close-open cumulative from the beginning of the chart. It is made for use on equities with overnight sessions to view the intraday performance vs the candlestick chart.
GAP HunterThis indicator shows the GAPs that are formed according to whether the opening price is above or below the rate specified in the selection box. An alarm can be set on these conditions.
NSDT Gap FinderThis script plots gaps between candles.
It uses the "round_to_mintick" feature in the Pinescript code, so it works on any instrument out to 3 decimal places.
If there is a Gap Up (open of current candle is greater than the close of previous candle) it will plot a green arrow under the current candle and plot a label above the current candle to show the Gap Amount.
If there is a Gap Down (open of current candle is less than the close of previous candle) it will plot a red arrow over the current candle and plot a label below the current candle to show the Gap Amount.
You can turn the label and/or the arrow on and off.
I created this indicator to more easily identify gaps in the market. The probability of a gap being filled is extremely high. Some are right away (intraday candle to candle), some take a while (gap from previous day close to current day open), and some make take a long time (close at end of previous week to open at beginning of current week).
This is published free to use and open source code.
Please see my other similar Gap Indicators.
Daily Gap Range
USA Session - Previous Day Close Gap to Current Day Open
Mark FVGsMark FVGs is marking FVG (stands for Fair Value Gap, other name is Imbalance or IMB) on your chart so that you can instantly detect them
It supports:
- marking bullish and bearish partly filled or unfilled FVGs of the current timeframe
- marking bullish and bearish already filled FVGs of the current timeframe
- marking bullish and bearish FVGs of the any 4 timeframes on your current timeframe
technically it re-builds them on the last bar or as soon as new realtime bar is updated. it looks with 1k bars back to find the nearest specific number of FGVs
Adjustments:
- changing the maximum number of FVGs to display.
- changing the color of FVG area
- displaying already filled FVG of the current time frame
- changing the mode of displaying area it can either extended or fixed width
- displaying labels of other time frame FVGs
TT Multibands MTFThis Multi Moving Average Indicator is for a long list of Moving Averages:
- Simple Moving Average (SMA)
- Exponential Moving Average (EMA)
- Weighted Moving Average (WMA)
- Hull Moving Average (HMA)
- Double Exponential Moving Average (DEMA)
- Triple Exponential Moving Average (TEMA)
- Volume Weighted Moving Average (VWMA)
- Kaufman's Adaptive Moving Average (KAMA)
- Relative Moving Average (RMA)
- Arnaud Legoux’s Moving Average (ALMA)
Advantages:
- Auto Plotting the Lable: < TIMEFRAME + BAND TYPE + LENGTH >
- Multi TimeFrame (MTF)
- Usable with Custom Time Frames: You can choose any Time Frame out of your Custom Time Frame List
- "No Repainting"
- "No Gaps" on lower Chart Time Frames (HD, no "Stairs")
"No Repainting" and "No Gaps" TRUE
"No Gaps" FALSE
Extreme Bars"Extreme Bars" is a simple but useful indicator that marks overbought and oversold candles. This indicator paints candles that fall far above the average red, and the candles that rise above the average green. Of course, they can change these colors if they want. "Extreme Bars" can be interpreted in many different ways. The starting points of colored candles can often be good support or resistance. In addition, it would be wise to close the positions opposite the colored candles and to maintain the positions compatible with the colored candles. It is also possible that the gaps formed by the colored candles will be closed in the future. The sensitivity of the indicator can be changed in the settings section.
PT FVG ImbalancesVersion 1.0 of the PT FVG Gaps & Flat Opens was developed to visually identify any imbalances in price. This indicator can be used on all timeframes.
Fair Value Gaps are a key component when trading price action. They are derived from zones in liquidity where price moved quickly in a certain direction leaving gaps behind. These areas tend to act as magnets to price throughout the trading session of that timeframe.
PT FVG Features:
-Gaps that have been partially filled will shade darker to show price has already attempted to fill that gap before (Toggle Highlight Gap Fill).
-Gaps that have been partially filled will remove a portion of the background zone to indicate how much gap is left to fill in the full zone (Toggle Highlight Remaining Gap).
Flat Open Candles are derived from candles that open without a wick (wickless candles). Price more often than not tends to gravitate towards these areas in the near future to fill the wickless candle before continuing on with the trend. Can be used on all timeframes, but the higher the timeframe holds more weight.
PT Flat Open Features:
-Flat open sensitivity would recommend keeping it around 30-50. If scalping keep it sub 30. This feature determines how many flat opens you want on your chat at one time.
-Delete flat open line allows us to delete the line once price has filled the wickless candle.
Video with strategy will be uploaded shortly! It is included as part of the library. Just message us for access!
Oxy CandlestickOxymoronic (oxy) candlesticks often appear at significant levels in a chart and can indicate increased probabilities of directional moves.
Typically, green candles are hollow and red candles are filled. An oxymoronic candle is colored bullishly but filled bearishly (solid green) or vice versa (hollow red).
Oxy flags occur when:
1) Price gaps up and closes lower than the open but above the last close. A solid green (or black) candle is bearish.
2) Price gaps down and closes higher than the open but below the last close. A hollow red candle is bullish.
An oxy candle indicates one of three things:
1) Price is going up (bullish oxy)
2) Price is going down (bearish oxy)
3) Price will return to this level (either)
#1 and #2 are the default meaning. If those don't play out then look for #3.
As is the case with most indicators, it is best not to use this indicator in isolation, but to combine it with other forms of analysis to increase your probabilities and to identify significant levels.
Fractal Break Imbalance / Fair Value Gap (FVG) / Liquidity VoidFractal Break Imbalance / Fair Value Gap (FVG) / Liquidity Void
Order imbalances in either direction, either excess buy or sell orders, reduce liquidity. The market will seek to fill gaps sooner or later. The script marks an imbalance / FVG after a fractal break. It also marks any other imbalance.
Default Colours:
Green - Imbalance after fractal break to the upside
Red - Imbalance after fractal break to the downside
Yellow - Other imbalances
How To Use:
Gaps can be used to determine possible entries and targets. Those familiar with liquidity raids, supply and demand, and ICT concepts may realise it's potential.
Indicator in use:
Unfilled GapsThis indicator displays gaps which have not been filled.
Notes:
- It shows only the unfilled gaps.
- You can edit the style and color of the gap lines.
- It will not work on charts with huge number of candles or gaps.
- It's based on someone else script which is mentioned in the code comments.
Overnight Gap AnalysisThere is a wide range of opinion on holding positions overnight due to gap risk. So, out of curiosity, I coded this analysis as a strategy to see what the result of only holding a position overnight on an asset would be. The results really surprised me. The script backtests 10+ years, and here are the findings:
Holding a position for 1 hour bar overnight on QQQ since January 2010 results in a 545% return. QQQ's entire return holding through the same period is 643%
The max equity drawdown on holding that position overnight is lower then the buy/hold drawdown on the underlying asset.
It doesn't matter if the last bar of the day is green or red, the results are similar.
It doesn't matter if it is a bull or bear market. Filtering the script to only trade when the price is above the 200-day moving average actually reduces its return from 545% to 301%, though it does also reduce drawdown.
I see similar patterns when applying the script to other index ETFs. Applying it to leveraged index ETFs can end up beating buy/hold of the underlying index.
Since this script holds through the 1st bar of the day, this could also speak to a day-opening price pattern
The default inputs are for the script to be applied to 1 hour charts only that have 7 bars on the chart per day. You can apply it to other chart types, but must follow the instructions below for it to work properly.
What the script is doing :
This script is buying the close of the last bar of the day and closing the trade at the close of the next bar. So, all trades are being held for 1 bar. By default, the script is setup for use on a 1hr chart that has 7 bars per day. If you try to apply it to a different timeframe, you will need to adjust the count of the last bar of the day with the script input. I.e. There are 7 bars per day on an hour chart on US Stocks/ETFs, so the input is set to 7 by default.
Other ways this script can be used :
This script can also test the result of holding a position over any 1 bar in the day using that same input. For instance, on an hour chart you can input 6 on the script input, and it will model buying the close of the 6th bar of the day while selling on the close of the next bar. I used this out of curiosity to model what only holding the last bar of the day would result in. On average, you lose money on the last bar every day.
The irony here is that the root cause of this last bar of the day losing may be people selling their positions at the end of day so that they aren't exposed to overnight gap risk.
Disclaimer: This is not financial advice. Open-source scripts I publish in the community are largely meant to spark ideas that can be used as building blocks for part of a more robust trade management strategy. If you would like to implement a version of any script, I would recommend making significant additions/modifications to the strategy & risk management functions. If you don’t know how to program in Pine, then hire a Pine-coder. We can help!
Gap FinderThis indicator finds gaps based on User specified input % threshold in the indicator settings. Histogram plot shows gaps as vertical lines for easy detection. Enjoy!
Customizable Gap Finder++█ OVERVIEW
Customizable Gap Finder by ProfessorZoom with a partial close of a gap
█ CONCEPTS
1 — Gaps bullish or bearish
2 — Gaps can be filled
3 — Gaps can be partially close
4 — Some display options
█ OTHER SECTIONS
Thanks to The rational investor for teaching me this and ProfessorZoom because he writes 99% of the script.
Did you know the percentage of gaps filled ? If not, I recommand you to follow his courses, and I have no conflicts of interest.
GSI (Gap Size Indicator)The purpose of this indicator is to give a quick view of a gap size between two candles, and to detect any gap bigger than the trigger setting.
Options
Mode: Select the display mode (% or Value)
Variation Trigger: Defines the minimum gap size to give a signal, for both positive and negative sides. This option depends on the Mode setting
Show trigger lines: Enable/Disable the display of the Variation Trigger setting lines
Color signals only: When enabled, bars crossing the trigger value are still colored, but other are gray
Show signals only: When enabled, will only show bars corresponding to gaps crossing the trigger value
Notes
Basic alerts on Bullish , Bearish and All gaps are available.
Feel free to suggest any improvement.
Customizable Gap FinderThis is a fully customizable gap finder. You can change the color of just about anything, on top of hiding filled/old gaps. This is so you can spot those tiny gaps on something such as futures. Be sure to play around with the settings.
No gaps candlesThis indicator repaints the candles so that every candle's open price is the previous candle's close price. This helps visualize stocks and ETFs that have big gaps, usually between trading days.
You should hide visibility of the ticker for this to be displayed properly.