OPEN-SOURCE SCRIPT
Updated

Gap Day Stats Table

786
Description:

This Pine Script helps you analyze gap up and gap down days using a user-defined gap percentage threshold. It generates a real-time statistics table that tracks:

📈 Number of Gap Up Days

🔻 How many of those days closed lower (Open > Close)

🧮 Total points lost on such gap up days (Open - Close)

📉 Number of Gap Down Days

🔺 How many of those days closed higher (Close > Open)

🧮 Total points gained on such gap down days (Close - Open)

🔧 Customization:
Gap threshold is adjustable via input

Automatically updates stats daily

Ideal for spotting behavioral edge in gaps

This tool is useful for traders building gap trading systems, mean reversion models, or studying post-gap behavior in equities and indices.
Release Notes
Description:

This Pine Script helps you analyze gap up and gap down days using a user-defined gap percentage threshold. It generates a real-time statistics table that tracks:

📈 Number of Gap Up Days

🔻 How many of those days closed lower (Open > Close)

🧮 Total points lost on such gap up days (Open - Close)

📉 Number of Gap Down Days

🔺 How many of those days closed higher (Close > Open)

🧮 Total points gained on such gap down days (Close - Open)

🔧 Customization:
Gap threshold is adjustable via input

Automatically updates stats daily

Ideal for spotting behavioral edge in gaps

This tool is useful for traders building gap trading systems, mean reversion models, or studying post-gap behavior in equities and indices.

Disclaimer

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.