INVITE-ONLY SCRIPT

ST – Soothing areas 2TF [Soothing Trades]

54
Short Description
ST – Soothing areas 2TF runs two Soothing Areas engines at once (e.g. 15m + Daily).
It finds bullish/bearish zones from Heikin Ashi body gaps on each higher timeframe, filters them per symbol and per timeframe, and tracks mitigation with optional same-day border outlines. HTF1 and HTF2 areas have their own colors, labels, and behavior, so you can see intraday and higher-timeframe structure together on one chart.

Full Description
This is the dual-timeframe version of Soothing Areas: two independent higher-timeframe engines, one chart.
Core logic
You choose two higher timeframes: HTF1 (e.g. 15m, 30m, 1h) and HTF2 (e.g. 4h, 1D, 1W).
For each HTF, the script:
• Uses the Heikin Ashi version of your symbol.
• Detects body gaps between past Heikin Ashi candles, which often mark strong directional moves.
• Classifies valid gaps: Bullish area (demand/support) or Bearish area (supply/resistance).
• Applies a per-symbol, per-timeframe minimum area height filter so only significant gaps become areas.
• Anchors the box at the previous HTF open time using xloc=bar_time to keep geometry stable across chart timeframes.
• Extends the right edge forward while the area is active (if the "extend while active" option is enabled).
Mitigation logic
Each HTF has its own mitigation penetration setting (0–1):
• 1.00 = the HTF body must penetrate essentially the full height of the area.
• Lower values = shallower penetration required to count as mitigated.
For each area, on every bar, the indicator:
• Recomputes the HTF Heikin Ashi body (H/L) projected to the chart timeframe.
• Checks if the HTF body overlaps the area's vertical range.
• Checks if penetration meets or exceeds the specified fraction of the box height.
• If both conditions are true, the area flips from active → mitigated.
Mitigation styles & same-day outline persistence
For each HTF, there are two modes after mitigation:
Standard mitigated styling (outline persistence OFF):
• The box switches to your mitigated colors (bull/bear) and separate fill/border opacity + width.
• The area is visually de-emphasised vs active zones but still visible.
Same-day outline persistence (outline persistence ON):
• On mitigation, the box becomes border-only (no fill) using dedicated outline colors, width, and style (solid/dashed/dotted).
• The outline continues to extend right for the rest of the current day.
• Next day, it stops extending and is flagged as no longer persistent.
• This lets you keep a visual memory of "where the move happened and was mitigated today" without covering your chart in solid boxes.
Visibility & labeling
• HTF1 & HTF2 can be toggled independently (show/hide boxes).
• Active boxes can have labels with separate toggles for HTF1 and HTF2.
• Custom text, for example "HTF1" and "HTF2".
• Separate text colors for each engine.
• Position: Top-Right of the box, or Middle-Right (vertically centered).
• Labels are dynamically updated as the box extends so they stay at the current right edge.
Per-symbol per-timeframe thresholds
• Up to four symbol slots (e.g. NQ, GC, YM, ES).
• For each symbol you can define: Minimum area height for HTF1 and Minimum area height for HTF2.
• Any symbol that isn't matched falls back to Default – HTF1 / Default – HTF2.
• This way, an NQ 15m area doesn't have to follow the same threshold as an ES Daily area.
How traders use it
• Map intraday Soothing Areas (HTF1) together with higher-timeframe Soothing Areas (HTF2) to see where local setups align with bigger structure.
• Identify which intraday zones sit inside daily/weekly zones.
• Distinguish which areas are fresh vs mitigated vs only remaining as outlines that day.
• Use HTF2 for major bias and HTF1 for more precise execution.
• Watch border-only outlines to understand where the market has already satisfied liquidity during the current day.
Visual features
• Dual-timeframe Heikin Ashi body gap detection
• Independent colors for HTF1 and HTF2 (bullish/bearish)
• Active vs mitigated states with customizable styling
• Optional same-day border-only outline persistence
• Per-symbol, per-timeframe minimum gap filtering
• Optional labels on active boxes with custom text and positioning
• Time-anchored geometry for stable display across chart timeframes
Notes & disclaimer
• Works across most symbols supported by TradingView Pine Script v6.
• Best on instruments where higher-timeframe Heikin Ashi structure is informative (indices, futures, FX majors, liquid crypto, etc.).
• Provided for educational purposes only and is not financial advice.
Always test any approach on demo and manage your own risk.

Aviso legal

As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.