업데이트됨
[blackcat] L1 Fibonacci MA Band

The true charm of the Fibonacci moving average band lies not only in its predictive ability. Its essence is that it combines the beauty of mathematics with the practicality of market analysis, providing traders with a powerful tool to optimize trading strategies. It's not a simple number game, but a wisdom that sees into the deeper structure of the market.
Next, we will delve into the core technical indicators of the Fibonacci moving average band - WHALES, RESOLINE, STICKLINE functions, and TRENDLINE, as well as their clever applications. The WHALES indicator, with its 12-period exponential moving average, captures short-term market trends; the RESOLINE indicator, through the 120-period EMA, reveals mid-term market movements; the STICKLINE function, distinguishes the relationship between WHALES and RESOLINE with colors, providing clear visual aids; while TRENDLINE, combining price slope with EMA, depicts more detailed market changes for traders.
The integrated application of these indicators has built a multi-dimensional market analysis framework for traders. They help traders examine the market from different angles, judge the market status more accurately, and make wiser decisions in the ever-changing market environment. The Fibonacci moving average band indicator is like a lighthouse, emitting guiding light in the ocean of trader's navigation.
1. `xsl(src, len)` function: This function calculates a value called the linear regression slope. Len defines the length of the linear regression. Then, this function normalizes the difference between the current value of the linear regression and the previous value. The formula is `(lrc - lrprev) / timeframe.multiplier`.
2. `whales`, `resoline`, and `trendline` are Exponential Moving Averages (EMA) calculated in different ways. "whales" is the 13-period closing price EMA, "resoline" is the 144-period closing price EMA, and "trendline" is a more complicated EMA. It is the 50-period EMA calculated by the 21-period closing price slope multiplied by 23 plus the closing price.
3. The `plotcandle` function draws two sets of candlestick charts. One set shows in blue when "whales" is greater than "resoline", and the other set shows in green when "whales" is less than "resoline".
4. The `plot` function draws three lines: "whales", "resoline", and "trendline". "whales" is displayed in orange with a line thickness of 2. "resoline" is displayed in yellow with a line thickness of 1. "trendline" is displayed in red with a line thickness of 3.
5. The last line draws a conditional line. When the closing price is less than the "trendline", the green "trendline" is drawn, otherwise, it is not drawn. This is a logical judgment, the drawing operation is only executed when the condition is met.
Next, we will delve into the core technical indicators of the Fibonacci moving average band - WHALES, RESOLINE, STICKLINE functions, and TRENDLINE, as well as their clever applications. The WHALES indicator, with its 12-period exponential moving average, captures short-term market trends; the RESOLINE indicator, through the 120-period EMA, reveals mid-term market movements; the STICKLINE function, distinguishes the relationship between WHALES and RESOLINE with colors, providing clear visual aids; while TRENDLINE, combining price slope with EMA, depicts more detailed market changes for traders.
The integrated application of these indicators has built a multi-dimensional market analysis framework for traders. They help traders examine the market from different angles, judge the market status more accurately, and make wiser decisions in the ever-changing market environment. The Fibonacci moving average band indicator is like a lighthouse, emitting guiding light in the ocean of trader's navigation.
1. `xsl(src, len)` function: This function calculates a value called the linear regression slope. Len defines the length of the linear regression. Then, this function normalizes the difference between the current value of the linear regression and the previous value. The formula is `(lrc - lrprev) / timeframe.multiplier`.
2. `whales`, `resoline`, and `trendline` are Exponential Moving Averages (EMA) calculated in different ways. "whales" is the 13-period closing price EMA, "resoline" is the 144-period closing price EMA, and "trendline" is a more complicated EMA. It is the 50-period EMA calculated by the 21-period closing price slope multiplied by 23 plus the closing price.
3. The `plotcandle` function draws two sets of candlestick charts. One set shows in blue when "whales" is greater than "resoline", and the other set shows in green when "whales" is less than "resoline".
4. The `plot` function draws three lines: "whales", "resoline", and "trendline". "whales" is displayed in orange with a line thickness of 2. "resoline" is displayed in yellow with a line thickness of 1. "trendline" is displayed in red with a line thickness of 3.
5. The last line draws a conditional line. When the closing price is less than the "trendline", the green "trendline" is drawn, otherwise, it is not drawn. This is a logical judgment, the drawing operation is only executed when the condition is met.
릴리즈 노트
OVERVIEWThe [blackcat] L1 Fibonacci MA Band indicator combines Moving Averages (MA) and Fibonacci principles to provide traders with a comprehensive view of market trends and potential reversal points. This script calculates three key moving averages: Whale, Resistance, and Trendline, which are then plotted on the chart along with conditional candlesticks and labels. It also generates alerts for buy and sell signals, helping traders make informed decisions 📈💹.
FEATURES
Calculates and plots three main moving averages:
Whale Moving Average: Short-term Exponential Moving Average (EMA).
Resistance Moving Average: Longer-term EMA.
Trendline Moving Average: Slope-based EMA indicating trend direction.
Displays conditional candlesticks based on the relationship between Whale and Resistance MAs:
Blue candlesticks when Whale MA is above Resistance MA.
Green candlesticks when Whale MA is below Resistance MA.
Plots distinct lines for each moving average with customizable colors and styles 🎨
Adds buy ('BUY') and sell ('SELL') labels on the chart for quick identification 🏷️
Generates alerts based on crossover events between the close price and Whale MA 🔔
HOW TO USE
Add the indicator to your TradingView chart by selecting it from the indicators list.
Monitor the chart for blue and green candlesticks indicating the current trend.
Observe the plotted moving averages for additional context on market momentum.
Look for buy and sell labels to identify potential trade opportunities.
Set up alerts based on the generated signals to receive notifications when conditions are met 📲.
LIMITATIONS
The indicator relies heavily on moving averages, which might lag behind rapid price movements 🌪️.
False signals can occur in highly volatile or ranging markets.
Users should always confirm signals with other forms of analysis before making trading decisions.
NOTES
Ensure that you have sufficient historical data available for accurate calculations.
Test the indicator thoroughly on demo accounts before applying it to live trading 🔍.
Customize the appearance and parameters as needed to fit your trading strategy.
릴리즈 노트
█ OVERVIEWblackcat L1 Fibonacci MA Band (FMAB) is a trend-following overlay that frames the market with a fast "whale" EMA, a long Fibonacci-period resistance EMA and a slope-projected trendline. It plots a dynamic trend band, BUY/SELL labels with position-state governance, ATR-based take-profit and stop-loss reference levels, and ships with four built-in alerts.
█ CONCEPTS
The script blends three moving-average engines into one visual trend framework:
• Whale MA — a fast EMA (default 13) tracking short-term price momentum.
• Resistance MA — a slow EMA set to 144, a classic Fibonacci number, working as dynamic support/resistance.
• Trendline MA — an EMA (default 50) of price shifted by a linear-regression slope projection, leaning into the direction of travel.
• The shaded area between the Whale and Resistance MAs forms the band: blue candles while the fast MA holds above the slow MA, green candles while it sits below.
• Signals are governed by a position state machine: entries only fire from a flat or opposite state, opposite crosses close an open position, and a configurable cooldown suppresses whipsaw clusters.
█ HOW TO USE
1 — Add the indicator to your chart; all defaults reproduce the classic FMAB behavior.
2 — Tune the MA lengths in the "Moving Averages" group if your symbol needs a faster or slower frame.
3 — Read BUY/SELL labels as entry points, XL/XS crosses as exits, and use the plotted TP/SL lines as risk reference; set alerts from the FMAB conditions in the alert dialog.
Input Parameters
• Whale MA Length (13) — period of the fast EMA driving entry signals.
• Resistance MA Length (144) — period of the slow Fibonacci EMA.
• Slope Regression Length (21) — lookback of the slope projection.
• Slope Multiplier (23) — how aggressively the trendline leans along the slope.
• Trendline EMA Length (50) — smoothing of the projected trendline.
• ATR Length (14) — volatility lookback for TP/SL distances.
• Same-bar Entry/Exit Exclusivity (on) — resolves conflicting signals on one bar.
• Cooldown Bars (3) — minimum spacing between signals; 0 disables it.
• Show TP/SL Levels (on) — toggle the ATR-based reference lines.
• Stop Loss / Take Profit (xATR) — multipliers (2.0 / 3.0) setting the risk distances.
• Show Dashboard / Position Background / Signal Labels — visual toggles.
█ FEATURES
• Dual-sided signals: BUY and SELL labels plus XL/XS exit crosses, all state-machine governed.
• ATR-adaptive take-profit and stop-loss lines that rescale with market volatility.
• Position background tinting (green for long, red for short) for instant state reading.
• A compact dashboard showing position, Whale MA, ATR and active TP/SL values.
• Four alertcondition hooks plus dynamic alert() messages confirmed on bar close.
█ SIGNALS
Visual Elements
• BUY label (green, below bar): close crossed above the Whale MA from a non-long state.
• SELL label (red, above bar): close crossed below the Whale MA from a non-short state.
• XL / XS crosses (orange): an open long/short position is closed by the opposite cross.
• Red trendline turning green: price trading below the trendline flips its color.
• Teal and red step lines: take-profit and stop-loss references while a position is open.
█ IMPLEMENTATION NOTES
• Built-ins used: ta.ema, ta.linreg, ta.atr, ta.crossover / ta.crossunder.
• Alerts fire with alert.freq_once_per_bar_close, so signals are confirmed at bar close and do not repaint intrabar.
• No request.security calls — everything computes on the chart timeframe.
█ LIMITATIONS
• Best suited for trending markets; ranging conditions can produce whipsaw entries (raise the cooldown to filter).
• Moving averages lag by construction; the slope projection reduces but cannot remove lag.
• TP/SL lines are visual references, not orders — this is an indicator, not a strategy.
█ NOTES
• Based on the original blackcat L1 Fibonacci MA Band by blackcat1402; V2 adds full parameterization, signal governance, risk references and alerts.
• Source is open under the Mozilla Public License 2.0 — feel free to study and adapt it.
════════════════════════════════════════════════════════════════════════
For questions or feedback, please use the comments section below.
Feel free to use and modify — attribution appreciated.
Don't miss out! The first and most important thing to do is to join my Discord chat now! Click here to start your adventure: discord.com/invite/ZTGpQJq My new github for more pine development soon: github.com/wxt-coder
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
Don't miss out! The first and most important thing to do is to join my Discord chat now! Click here to start your adventure: discord.com/invite/ZTGpQJq My new github for more pine development soon: github.com/wxt-coder
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.