OPEN-SOURCE SCRIPT

fmfm12

886
chosen chart timeframe. It monitors the price to determine:

Whether resistance has been broken → BUY signal

Or support has been broken → SELL signal

After a breakout or breakdown, the indicator automatically draws price targets (T1 / T2 / T3) as percentages from the breakout point, and also displays FVG (Fair Value Gaps) zones that indicate imbalances between supply and demand.

⚙️ Main Components

Support and Resistance Levels (Key Levels)

Automatically calculated from the 4-hour timeframe (180 minutes).

Draws lines:

Green = Resistance

Red = Support

Option to display a midline (blue).

Line style (solid / dashed / dotted), thickness, and label size are customizable.

Trading Signals (Signals)

When resistance is broken upward → BUY signal (green).

When support is broken downward → SELL signal (red).

Signal size is adjustable (small / large, etc.).

Price Targets (Targets)

After confirming a breakout or breakdown, the indicator draws:

T1 / T2 / T3 as horizontal lines in the breakout direction.

Target percentages are adjustable (default: 0.5%, 1%, 1.5%).

Different colors for bullish and bearish targets.

Fair Value Gaps (FVG)

Detects bullish and bearish gaps within a set number of candles (default: 10).

Draws transparent colored zones:

Light Green = Bullish Gap

Light Red = Bearish Gap

📊 Practical Usage

Add the indicator to TradingView (paste the code into the Pine Editor, save, and add it to the chart).
When the price approaches a support or resistance line, observe:

Wyłączenie odpowiedzialności

Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.