PROTECTED SOURCE SCRIPT

Range Trend Channels with Flip Signals 0.1.0

75
Range Trend Channels with Flip Signals 0.1.0


Purpose:
- Detects "range trend" patterns on the chart using
4-bar structures.
- Draws main channel lines, parallel lines, and "third lines"
on valid hard closes above/below.
- Generates BUY/SELL signals based on candle interaction
with the third lines.

Features:
• Configurable number of recent patterns to keep.
• Adjustable hard-close buffer in ticks.
• Adjustable line width and style.
• Separate colors for bullish (green) and bearish (black) ranges.
• Extra third line colors for each type.
• Option to enable/disable hard-close detection per side.
• Signal system with:
– Strict next-bar or window-based mode
– Candle color filtering
– Minimum body size requirement
– Optional momentum filter
• Alerts for BUY/SELL signals.

Usage Tips:
- Use on your preferred timeframe for spotting
structure-based continuation/reversal points.
- "Hard-close buffer" helps prevent false triggers
from small overlaps.
- In strict mode, signals fire on the very next bar
after the third line is created.
- In window mode, signals can trigger within a
specified number of bars after third line creation.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.