OPEN-SOURCE SCRIPT

Seasonality Overnight Gaps - Tabular Form

Updated
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
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.
BANKNIFTYDAX IndexgapsNIFTYnseSPX (S&P 500 Index)Trend Analysis

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?


Also on:

Disclaimer