OPEN-SOURCE SCRIPT
Telah dikemas kini

BAFD (Price Action For D.....s)

529
🧠 Overview

This indicator combines multiple Moving Averages (MA) with visual price action elements such as Fair Value Gaps (FVGs) and Swing Points. It provides traders with real-time insight into trend direction, structural breaks, and potential entry zones based on institutional price behavior.


⚙️ Features

1. Multi MA Visualization (SMA & EMA)

- Plots short-, mid-, and long-term moving averages

- Fully customizable: MA type (SMA/EMA) and length per MA

- Dynamic color coding: green for bullish, red for bearish (based on close >/< MA)


2. Fair Value Gaps (FVG) Detection

Detects bullish and bearish imbalances using multiple logic types:

- Same Type: Last 3 candles move in the same direction

- Twin Close: Last 2 candles close in the same direction

- All: Shows all valid FVGs regardless of pattern

Gaps are marked with semi-transparent yellow boxes

Useful for identifying potential liquidity voids and retest zones


3. Swing Highs and Lows

- Automatically identifies major swing points

- Customizable sensitivity (strength setting)

Marked with subtle colored dots for structure identification or support/resistance mapping


📈 Use Cases

- Trend Identification: Visualize momentum on multiple timeframes

- Liquidity Mapping: Spot potential retracement zones using FVGs

- Confluence Building: Combine MA slope, FVG zones, and swing points for refined setups

🛠️ Customizable Settings

- Moving average type and length for each MA

- FVG logic selection and color

- Swing point strength

🔔 Note
This script does not generate buy/sell signals or alerts. It is designed as a visual decision-support tool for discretionary traders who rely on market structure, trend, and price action.
Nota Keluaran
🧠 What does this script do?

This indicator brings together three popular price action tools — Fair Value Gaps, Multi-MAs, and Swing Points — into one cohesive framework. It is designed to support discretionary traders in identifying trend bias, institutional activity zones, and market structure shifts.


🔧 How components work together

🔶 1. Fair Value Gaps (FVGs)
- Highlights potential institutional imbalances between candles
- Used as retracement entries, especially when formed during key market shifts

Use Case: When price breaks through the 50-period MA, the resulting FVG is often retested this is where orders are placed.

📈 2. Multi Moving Averages
- Customizable MAs (SMA/EMA) for short-, mid-, and long-term bias
- Colored dynamically based on price positioning

Use Case:
- Confirm trend direction (e.g., only long above MA200)
- Identify momentum shifts (e.g., MA crossovers)
- Act as dynamic support/resistance — especially the MA50

🌀 3. Swing Highs & Lows
- Detects structure points based on user-defined strength
- Visualizes market structure and potential liquidity zones

Use Case (community-driven): Identifying breakout levels after price consolidates or sweeps prior swing points

📋 How to Use
✅ Primary Setup (FVG + MA50)

Wait for price to break through MA50

Look for a newly formed FVG in that impulse

Set retracement orders at the FVG zone

Filter with overall MA200 trend

See example screenshot: https://www.tradingview.com/x/2X3ho4d6/

✅ Alternative Uses

Use MA crossovers as trend reversal signals

Use swing highs/lows to build breakout or liquidity sweep strategies

Confluence = higher probability (FVG near MA + swing level)

💡 Why it's original
Custom FVG detection logic (not copy-pasted from libraries)

Visually clear: no noise, all components support structure-first trading

Built from a discretionary trader’s perspective — not a fixed strategy bot

Can evolve into multiple use cases (scalping, breakout, retrace entries)

🔔 Use it as a visual toolkit to guide discretionary setups. Works best on lower timeframes (3–15 min) with HTF context (1H–4H).

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.