OPEN-SOURCE SCRIPT
Gap Reversal

Gap Reversal (1m Gap Fade Screener + Entries)
Gap Reversal is a 1-minute, opening-drive indicator designed to spot early gap-fade opportunities using price action + Stochastic alignment, while also providing a quick “screener” table for liquidity and premarket context.
Indicator Parts
1) Screener Table (top corner)
* Gap %: Previous day close → today open (green when within the configured gap window, default 4%–20%; red otherwise)
* Market Cap (USD): Green if > $2B, red otherwise (estimated from shares outstanding × price, converted to USD when applicable)
* Average Daily Volume: Green if ≥ 1M, red otherwise (default 20-day average)
* Premarket Volume: Green if ≥ 200K, red otherwise (accumulated during the configured premarket session)
2) Entry Signals (computed on true 1-minute data)
Signals are always evaluated on 1m, and will display on any chart timeframe via lower-TF aggregation.
* Long (Gap Up Fade)
* Day opens above prior regular-session close (gap up), and gap size is within the configured range
* Signal occurs in the first N minutes (default 12 1m bars)
* Candle closes in the top third of its range
* Price is not below 1/3 of the gap size from the open (protects against over-extension)
* At least one red candle occurred before the signal (within the lookback window)
* Stochastic (5,3,3): %K > %D
* Short (Gap Down Fade)
* Day opens below prior regular-session close (gap down), and gap size is within the configured range
* Signal occurs in the first N minutes (default 12 1m bars)
* Candle closes in the bottom third of its range
* Price is not above 1/3 of the gap size from the open
* At least one green candle occurred before the signal (within the lookback window)
* Stochastic (5,3,3): %D > %K
Visuals
* Green up arrow + “Enter Long” when long conditions trigger
* Red down arrow + “Enter Short” when short conditions trigger
* Reference lines for prior day close, today open, and the 1/3 gap levels
Inputs you can customize
* Gap % min/max, opening window length, prior candle lookback windows
* Stochastic parameters (K length, K smoothing, D smoothing) and Low/High thresholds (thresholds are configurable for your workflow)
Alerts
Includes built-in alert conditions:
* Gap Reversal Enter Long
* Gap Reversal Enter Short
Note: This indicator is intended for screening and signal marking. Always validate signals with your ticker’s liquidity, spread, and your execution rules.
Happy Trading!
Yuval.
Gap Reversal is a 1-minute, opening-drive indicator designed to spot early gap-fade opportunities using price action + Stochastic alignment, while also providing a quick “screener” table for liquidity and premarket context.
Indicator Parts
1) Screener Table (top corner)
* Gap %: Previous day close → today open (green when within the configured gap window, default 4%–20%; red otherwise)
* Market Cap (USD): Green if > $2B, red otherwise (estimated from shares outstanding × price, converted to USD when applicable)
* Average Daily Volume: Green if ≥ 1M, red otherwise (default 20-day average)
* Premarket Volume: Green if ≥ 200K, red otherwise (accumulated during the configured premarket session)
2) Entry Signals (computed on true 1-minute data)
Signals are always evaluated on 1m, and will display on any chart timeframe via lower-TF aggregation.
* Long (Gap Up Fade)
* Day opens above prior regular-session close (gap up), and gap size is within the configured range
* Signal occurs in the first N minutes (default 12 1m bars)
* Candle closes in the top third of its range
* Price is not below 1/3 of the gap size from the open (protects against over-extension)
* At least one red candle occurred before the signal (within the lookback window)
* Stochastic (5,3,3): %K > %D
* Short (Gap Down Fade)
* Day opens below prior regular-session close (gap down), and gap size is within the configured range
* Signal occurs in the first N minutes (default 12 1m bars)
* Candle closes in the bottom third of its range
* Price is not above 1/3 of the gap size from the open
* At least one green candle occurred before the signal (within the lookback window)
* Stochastic (5,3,3): %D > %K
Visuals
* Green up arrow + “Enter Long” when long conditions trigger
* Red down arrow + “Enter Short” when short conditions trigger
* Reference lines for prior day close, today open, and the 1/3 gap levels
Inputs you can customize
* Gap % min/max, opening window length, prior candle lookback windows
* Stochastic parameters (K length, K smoothing, D smoothing) and Low/High thresholds (thresholds are configurable for your workflow)
Alerts
Includes built-in alert conditions:
* Gap Reversal Enter Long
* Gap Reversal Enter Short
Note: This indicator is intended for screening and signal marking. Always validate signals with your ticker’s liquidity, spread, and your execution rules.
Happy Trading!
Yuval.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.