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
Release Notes
Changed DOW Logic to use time_close as some US instruments trade Sunday night and DOW is not reflected properly for those instruments.
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.
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.