OPEN-SOURCE SCRIPT
מעודכן MACD Area on Chart w/ Divergence

MACD Area & Divergence Suite
This is an all-in-one MACD analysis tool that overlays key information directly onto your price chart, helping you visualize momentum and potential trend changes.
Instead of looking at a separate indicator pane, this script brings all the critical data to your main chart.
Features
MACD Histogram Area: The script calculates the cumulative value (the "area") of the MACD histogram for each cycle (from one signal line cross to the next).
Cycle Boxes: It draws a border around the price bars that correspond to each positive (green) and negative (red) MACD histogram cycle.
Area Labels: Displays the calculated area value in the center of each box.
MACD Zero-Line Cross: Automatically draws a vertical dashed line when the main MACD line (not the histogram) crosses the zero line, signaling a major momentum shift.
Full Divergence Detection: This is the core feature. The script automatically finds, draws, and labels both types of divergence:
Regular Divergence: Signals a potential trend reversal.
Hidden Divergence: Signals a potential trend continuation.
Advanced Filtering: Includes a powerful option to validate divergences, ensuring they do not cross the MACD zero line. This helps filter for higher-quality signals.
Highly Customizable: Every feature can be turned on or off in the settings, including a "Divergence Only" mode for a cleaner chart. All colors and transparency are fully adjustable.
This is an all-in-one MACD analysis tool that overlays key information directly onto your price chart, helping you visualize momentum and potential trend changes.
Instead of looking at a separate indicator pane, this script brings all the critical data to your main chart.
Features
MACD Histogram Area: The script calculates the cumulative value (the "area") of the MACD histogram for each cycle (from one signal line cross to the next).
Cycle Boxes: It draws a border around the price bars that correspond to each positive (green) and negative (red) MACD histogram cycle.
Area Labels: Displays the calculated area value in the center of each box.
MACD Zero-Line Cross: Automatically draws a vertical dashed line when the main MACD line (not the histogram) crosses the zero line, signaling a major momentum shift.
Full Divergence Detection: This is the core feature. The script automatically finds, draws, and labels both types of divergence:
Regular Divergence: Signals a potential trend reversal.
Hidden Divergence: Signals a potential trend continuation.
Advanced Filtering: Includes a powerful option to validate divergences, ensuring they do not cross the MACD zero line. This helps filter for higher-quality signals.
Highly Customizable: Every feature can be turned on or off in the settings, including a "Divergence Only" mode for a cleaner chart. All colors and transparency are fully adjustable.
הערות שחרור
UPDATEסקריפט קוד פתוח
ברוח TradingView אמיתית, היוצר של הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יכולים לבדוק ולאמת את הפונקציונליות שלו. כל הכבוד למחבר! למרות שאתה יכול להשתמש בו בחינם, זכור שפרסום מחדש של הקוד כפוף לכללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.
סקריפט קוד פתוח
ברוח TradingView אמיתית, היוצר של הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יכולים לבדוק ולאמת את הפונקציונליות שלו. כל הכבוד למחבר! למרות שאתה יכול להשתמש בו בחינם, זכור שפרסום מחדש של הקוד כפוף לכללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.