OPEN-SOURCE SCRIPT
Telah dikemas kini Fast Moving Average Period

---
## ## 1. The Core Philosophy: Path-Accuracy
Standard indicators often suffer from "look-ahead bias" in their visual representation. **FMAP** uses a **2D Matrix** to store the historical values of 200 different MA periods simultaneously. It checks if price wicks touched a level *exactly as that level existed at that moment*.
The result? You see the **tightest** possible floor (Support) and ceiling (Resistance) that the price has not violated.
---
## ## 2. Visual Legend: Reading the Chart
The indicator lives in a separate pane (0–200 axis) to keep your main price chart clean while providing a "radar" view of market structure.
### ### Markers & Fills
| Feature | Visual | Meaning |
| --- | --- | --- |
| **Support Period** | Green Crosses ($+$) | The fastest (lowest) period acting as untouched support. |
| **Resistance Period** | Orange Circles ($\circ$) | The fastest (lowest) period acting as untouched resistance. |
| **Pullback Zone** | **Olive Fill** | $S > R$: Price is hugging resistance; support is further away (Bullish trend). |
| **Throwback Zone** | **Maroon Fill** | $R > S$: Price is hugging support; resistance is further away (Bearish trend). |
| **Flipping Zone** | **Blue Fill** | $S$ and $R$ are rapidly swapping places; high indecision. |
### ### Background States (Chaos & Squeezes)
If no MA period (from 2 to 200) is currently respected, the background highlights the "Reason for Chaos":
* **Fuchsia (Chaotic Expansion):** High volatility (
* **Aqua (Slacking Squeeze):** Low volatility. Price is so flat that it's overlapping all averages. **Prepare for a breakout.**
---
## ## 3. The Energy Stretch (Momentum)
The **Green** and **Red** lines represent the "Energy" or "Elasticity" of the current move. They measure the distance from the candle's High/Low to the **previous bar's** fastest MA, scaled by
* **Green Energy Line:** Stretch above the support floor.
* **Red Energy Line:** Stretch below the resistance ceiling.
**Interpretation:** The higher the line, the more "stretched" the market is. If a line hits the top of the pane (near 200), the price is extremely overextended ($2.0+$
---
## ## 4. Reversion Signals (Vertical Highlights)
These are the "Snap-Back" triggers. They identify when a trend has reached a climax and is meeting a wall of opposite-side liquidity.
### ### Bullish Reversion (Green Vertical Bar)
1. **Established Stretch:** Price was already stretched between $1.2$ and $2.5$
2. **Sudden Ceiling:** A new Resistance period suddenly appears.
3. **Momentum Shift:** The new Resistance stretch is $> 1.2$
### ### Bearish Reversion (Red Vertical Bar)
1. **Established Stretch:** Price was stretched between $1.2$ and $2.5$
2. **Sudden Floor:** A new Support period suddenly appears.
3. **Momentum Shift:** The new Support stretch is $> 1.2$
---
## ## 5. Key Parameter Breakdown
To fine-tune the engine, focus on these three inputs:
* **Trailing Lookback Window:** How many bars must be "clean" (untouched) for a period to count?
* *Value 1:* Aggressive, fast-reacting.
* *Value 3-5:* Structural, filtered, more reliable for swing trades.
* **ATR Distance Visual Scale:** Set to **100** by default. This makes an
* **Min Reversion ATR Gap:** The "Filter." A higher value (e.g., $0.8$) ensures signals only appear on violent reversals. A lower value ($0.2$) captures smaller "micro-snaps."
---
## ## 6. Trading Strategies
### **A. The Slacker Breakout**
Wait for an **Aqua background** (market is slacking). Look for the first appearance of an **Olive fill** with a rising **Green Energy line**. This is the signature of a high-momentum trend launch.
### **B. The Climax Fade**
When a trend is extended and you see a **Green or Red Reversion Signal**, look for a price action reversal (like a pin bar or engulfing candle) on the main chart. The signal tells you the "physics" of the market have shifted; the price action confirms the entry.
### **C. The Volatility Filter**
If the background is **Fuchsia**, all trend-following logic is void. These are "stop-run" environments. Wait for the background to clear before trusting the markers again.
---
> **Pro Tip:** Use **EMA** for scalp-heavy, momentum-driven markets (Crypto/Indices) and **SMA** for slower, more structural markets (Forex/Large-cap Stocks).
Nota Keluaran
DEPRECATED — This version is outdated.Nota Keluaran
DEPRECATEDSkrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.