OPEN-SOURCE SCRIPT

Gap Removal Indicator

This gap indicator shows the price of your chosen instrument as if no gaps had occurred overnight. It can be especially useful on highly-volatile exchange-listed instruments that track other 24/7 assets, because the normal candlestick chart of these instruments will create a large amount of noise that may decrease the accuracy of your indicators or make the trend harder to see.

Gaps are determined with the following code:


Whereas the gap value is determined by taking the overnight difference in prices:


The gap changes are cumulatively added and subtracted from the initial closing price to create the gap-adjusted price. The price will depend on how many bars your subscription allows, so pay more attention to the relative differences and/or trend than the cumulative gap-adjusted price itself.

The gap indicator comes pre-built with normal candlestick and Heikin-Ashi candle types, and four indicators (two EMAs, Bollinger bands, and a supertrend). All elements are configurable.
gapgapfilltrendtradingVolatilityvolatilty

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


FAQ: I am gradually phasing out my Patreon because of the time it takes to maintain.

BTC: 35PdMMMXFCvPjXKwn8wsRFNwMEPgStaKUJ

Test my strategies on CryptoRobotics: cryptorobotics.co/?trade=f23b09

Disclaimer