OPEN-SOURCE SCRIPT
AK MACD BB EMA RSI Scalper Gold Pro

Overview
The AK MACD BB + EMA/RSI Scalper is a high-precision momentum oscillator designed primarily for Gold (XAUUSD) and high-volatility assets. This indicator reimagines the traditional MACD by wrapping it within Bollinger Bands, allowing traders to identify momentum "breakouts" and "exhaustion" points in real-time.
By integrating a multi-layer trend filter (EMA 200) and a momentum oscillator (RSI), this tool is built to capture "Power Scalps" while avoiding the dangerous "chop" of sideways markets.
The Core Strategy (The Triple-Filter Logic)
To ensure high-probability entries, the script uses a confluence of three technical layers:
MACD-Bollinger Breakout: Unlike standard MACD, this script signals an entry when the MACD line breaks outside its own Bollinger Band. This represents a surge in volatility that is statistically significant.
The Trend Shield (EMA 200): Only allows "Buy" signals when the price is above the 200 EMA and "Sell" signals when below. This keeps you on the right side of the institutional trend.
Momentum Confirmation (RSI): Signals are further filtered by the RSI (Relative Strength Index). Buys are only valid when RSI > 50, and Sells when RSI < 50, ensuring the "wind is at your back."
Key Features
Adaptive MACD: The MACD line changes color dynamically (Lime for Bullish Breakout, Red for Bearish Breakout).
Visual Signal Cues: The chart background highlights in Lime for Buys and Red for Sells. Additionally, the bars turn Yellow/Aqua to ensure you never miss a candle close entry.
Fully Customizable: You can toggle the EMA and RSI filters On/Off in the settings to adapt the script for "Contrarian/Reversal" trading or strict "Trend Following."
Gold Optimized: Tuned specifically for the fast-paced movements of XAUUSD.
How to Use
🟢 LONG Entry: Price > 200 EMA + RSI > 50 + MACD crosses above Upper Bollinger Band.
🔴 SHORT Entry: Price < 200 EMA + RSI < 50 + MACD crosses below Lower Bollinger Band.
Recommended Timeframes: M1, M5, and M15 for Scalping. H1 for Day Trading.
Parameters
MACD Lengths: Standard 12/26 (Adjustable).
BB Deviations: Default 1.0 (Tight for scalping). Increase to 1.5 or 2.0 for a more conservative approach.
Filter Toggle: Switch Use EMA & RSI Filters? to False if you want to see every MACD-BB breakout regardless of the main trend.
The AK MACD BB + EMA/RSI Scalper is a high-precision momentum oscillator designed primarily for Gold (XAUUSD) and high-volatility assets. This indicator reimagines the traditional MACD by wrapping it within Bollinger Bands, allowing traders to identify momentum "breakouts" and "exhaustion" points in real-time.
By integrating a multi-layer trend filter (EMA 200) and a momentum oscillator (RSI), this tool is built to capture "Power Scalps" while avoiding the dangerous "chop" of sideways markets.
The Core Strategy (The Triple-Filter Logic)
To ensure high-probability entries, the script uses a confluence of three technical layers:
MACD-Bollinger Breakout: Unlike standard MACD, this script signals an entry when the MACD line breaks outside its own Bollinger Band. This represents a surge in volatility that is statistically significant.
The Trend Shield (EMA 200): Only allows "Buy" signals when the price is above the 200 EMA and "Sell" signals when below. This keeps you on the right side of the institutional trend.
Momentum Confirmation (RSI): Signals are further filtered by the RSI (Relative Strength Index). Buys are only valid when RSI > 50, and Sells when RSI < 50, ensuring the "wind is at your back."
Key Features
Adaptive MACD: The MACD line changes color dynamically (Lime for Bullish Breakout, Red for Bearish Breakout).
Visual Signal Cues: The chart background highlights in Lime for Buys and Red for Sells. Additionally, the bars turn Yellow/Aqua to ensure you never miss a candle close entry.
Fully Customizable: You can toggle the EMA and RSI filters On/Off in the settings to adapt the script for "Contrarian/Reversal" trading or strict "Trend Following."
Gold Optimized: Tuned specifically for the fast-paced movements of XAUUSD.
How to Use
🟢 LONG Entry: Price > 200 EMA + RSI > 50 + MACD crosses above Upper Bollinger Band.
🔴 SHORT Entry: Price < 200 EMA + RSI < 50 + MACD crosses below Lower Bollinger Band.
Recommended Timeframes: M1, M5, and M15 for Scalping. H1 for Day Trading.
Parameters
MACD Lengths: Standard 12/26 (Adjustable).
BB Deviations: Default 1.0 (Tight for scalping). Increase to 1.5 or 2.0 for a more conservative approach.
Filter Toggle: Switch Use EMA & RSI Filters? to False if you want to see every MACD-BB breakout regardless of the main trend.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.