OPEN-SOURCE SCRIPT
fmfm12

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:
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:
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.