OPEN-SOURCE SCRIPT
Closing Pattern

Closing pattern:
Shows D1 and 12H directional bias in a table, based on the last candle that closed outside the full range (incl. wicks) of the previous candle. Adds a separate, configurable alert (any timeframe, any direction) that fires once, exactly on confirmed candle close, with push-ready...
Improvements over the original S&D Direction:
- Fixed lookback counting: scans actual bars of the target timeframe (D1/12H), not bars of whatever chart timeframe you're viewing from — same signal regardless of chart view.
- Fixed lookahead handling: closed-bar values only, no intrabar flicker on freshly forming candles.
- Added a real alert layer: original script only displayed a table, couldn't trigger notifications at all.
- Alert works correctly whether its timeframe matches the chart's or not (dedicated same-timeframe path avoids the off-by-one marker shift MTF logic caused).
- Simplified from five generic TF slots to the two timeframes actually needed, plus a separately configurable alert timeframe.
All praises to Liqva.
Shows D1 and 12H directional bias in a table, based on the last candle that closed outside the full range (incl. wicks) of the previous candle. Adds a separate, configurable alert (any timeframe, any direction) that fires once, exactly on confirmed candle close, with push-ready...
Improvements over the original S&D Direction:
- Fixed lookback counting: scans actual bars of the target timeframe (D1/12H), not bars of whatever chart timeframe you're viewing from — same signal regardless of chart view.
- Fixed lookahead handling: closed-bar values only, no intrabar flicker on freshly forming candles.
- Added a real alert layer: original script only displayed a table, couldn't trigger notifications at all.
- Alert works correctly whether its timeframe matches the chart's or not (dedicated same-timeframe path avoids the off-by-one marker shift MTF logic caused).
- Simplified from five generic TF slots to the two timeframes actually needed, plus a separately configurable alert timeframe.
All praises to Liqva.
Open-source script
In true PulseWire spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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 PulseWire. Read more in the Terms of Use.
Open-source script
In true PulseWire spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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 PulseWire. Read more in the Terms of Use.
