OPEN-SOURCE SCRIPT
מעודכן AG Pro EMA 200 Reclaim Map [AGPro Series]

AG Pro EMA 200 Reclaim Map [AGPro Series]
Overview / What it does
AG Pro EMA 200 Reclaim Map is a chart overlay built to organize price behavior around the 200 EMA into a clearer workflow. Instead of treating the 200 EMA as a simple above/below filter, this script tracks how price interacts with that reference during reclaim attempts, acceptance phases, retests, and loss-of-level events. The goal is not to predict future price movement. The goal is to make the structure around a widely used long-horizon moving average easier to read on the chart.
The script highlights when price reclaims the 200 EMA, whether that reclaim is holding with acceptance, whether a retest develops after the move, and whether the reclaim later fails. A compact panel summarizes the current state so the chart can be read more quickly without reducing everything to a single binary signal.
This is designed as a decision-support overlay for traders who already use the 200 EMA as a contextual reference and want a more structured view of how price behaves around that level. It can be used on crypto, stocks, indices, forex, and other liquid markets, but outputs should always be interpreted in the context of the instrument, timeframe, volatility profile, and overall market structure.
Unique Edge
The main objective here is not to create another generic moving-average cross script. The distinctive part of this tool is that it treats the 200 EMA as a behavioral map rather than a yes/no trigger.
In many scripts, the 200 EMA is used only as a directional filter: price above equals bullish context, price below equals bearish context. That can be useful, but it does not say much about the quality of the interaction itself. A reclaim that is accepted cleanly after a controlled retest is different from a reclaim that briefly crosses the line and immediately loses it. Both may appear similar in a simple cross-based tool, but they do not carry the same structural meaning.
This script is built to separate those cases. It tracks whether a reclaim occurred, whether price is holding on the reclaimed side, whether a retest happened, how strong that retest appears relative to the script’s scoring rules, and whether the move later failed. In that sense, the script focuses on reclaim lifecycle mapping rather than raw cross detection.
Methodology
The core reference is the 200-period exponential moving average. From there, the script evaluates several conditions around that line.
1) Reclaim detection
A bullish reclaim occurs when price moves from below the 200 EMA to above it. A bearish reclaim occurs when price moves from above the 200 EMA to below it. These events define the initial transition point, but they are not treated as sufficient on their own.
2) Acceptance / hold logic
After a reclaim, the script tracks whether price remains on the reclaimed side for a defined window. This is used to separate fresh reclaim attempts from accepted holds and weaker continuation states. The panel reflects this with state language rather than presenting the move as an unconditional signal.
3) Retest tracking
After a reclaim, price may revisit the EMA zone. The script evaluates these retest behaviors and can classify them through an internal quality framework. This is intended to distinguish cleaner, more orderly interactions from weaker or less stable ones.
4) Stretch context
The script also measures how extended price is relative to the 200 EMA using an ATR-based context layer. This does not declare a reversal by itself. It simply adds information about whether price is relatively balanced or stretched around the reclaim structure.
5) Failure mapping
If a reclaim is later lost, the script can mark that condition as a failed reclaim. This helps separate accepted transitions from ones that could not maintain structure around the 200 EMA.
The map band around the EMA is only a visual aid. It is there to make the interaction corridor easier to recognize on the chart. It should not be interpreted as an independent support/resistance zone outside the script’s own framework.
States / Signals
This script is best read as a state-mapping overlay, not as a standalone trade engine.
Typical outputs include:
- Bias context relative to the 200 EMA
- Reclaim status
- Acceptance or weak-hold state
- Retest direction and latest retest quality
- Stretch condition relative to the 200 EMA
- Failed reclaim markers when the structure is lost
Depending on settings and chart history, you may see labels such as Bull Reclaim, Bear Reclaim, and retest quality annotations. These labels are visual markers for structural events detected by the script. They are not guarantees of continuation, reversal, or trade outcome.
Alerts
The script includes deterministic alert conditions tied to its event logic. These are designed to support workflow automation for users who want notification when a reclaim or failure condition is detected.
Because alerts are based on chart data and script logic, their usefulness will depend on the selected timeframe, the instrument traded, and the user’s own confirmation process. Alerts should be used as prompts for review, not as standalone execution instructions.
Key Inputs
The exact input list may evolve with future updates, but the script is centered around the following configuration areas:
- EMA length and source settings
- Acceptance / hold window controls
- Retest logic and retest label filtering
- Stretch context based on ATR
- Label visibility, spacing, and display density
- Map / zone display controls
- Panel visibility and panel styling options
These settings allow the script to be adapted for cleaner presentation or more event visibility depending on chart preference. A lower-noise layout may be more suitable for publishing or higher-timeframe review, while a denser layout may be more useful for inspection and testing.
Limitations & Transparency
This script does not forecast price. It does not know future direction, and it does not identify all valid trend continuations or reversals. It is a context tool built around a widely observed moving-average reference.
A reclaim above the 200 EMA does not always lead to continuation. A reclaim below the 200 EMA does not always lead to downside expansion. Retests can succeed or fail. Accepted states can break. Stretch conditions can persist longer than expected. False transitions can occur, especially in choppy or news-driven environments.
Like any moving-average-based framework, this script is also sensitive to timeframe selection. A chart that appears constructive on one timeframe may remain weak on a higher timeframe, or vice versa. Users should interpret the output within their own multi-timeframe and risk-management process.
Label placement, retest visibility, and apparent event density can also vary by volatility regime, zoom level, and chart compression. For that reason, the visual output should be treated as a structured reading aid rather than a complete market model.
This tool should not be viewed as a substitute for market structure analysis, liquidity awareness, execution discipline, or position management.
Risk Disclosure
This script is for chart analysis and educational use. It does not provide investment advice, financial advice, trading advice, or portfolio advice.
Trading and investing involve risk. Markets can move quickly, and losses can occur. No indicator, overlay, or alert system can eliminate that risk. Always use independent judgment, confirm conditions with your own process, and apply risk management appropriate to your market and strategy.
If you use this script in live markets, it is your responsibility to evaluate whether the instrument, timeframe, liquidity, volatility, and execution environment are suitable for your own decisions.
Overview / What it does
AG Pro EMA 200 Reclaim Map is a chart overlay built to organize price behavior around the 200 EMA into a clearer workflow. Instead of treating the 200 EMA as a simple above/below filter, this script tracks how price interacts with that reference during reclaim attempts, acceptance phases, retests, and loss-of-level events. The goal is not to predict future price movement. The goal is to make the structure around a widely used long-horizon moving average easier to read on the chart.
The script highlights when price reclaims the 200 EMA, whether that reclaim is holding with acceptance, whether a retest develops after the move, and whether the reclaim later fails. A compact panel summarizes the current state so the chart can be read more quickly without reducing everything to a single binary signal.
This is designed as a decision-support overlay for traders who already use the 200 EMA as a contextual reference and want a more structured view of how price behaves around that level. It can be used on crypto, stocks, indices, forex, and other liquid markets, but outputs should always be interpreted in the context of the instrument, timeframe, volatility profile, and overall market structure.
Unique Edge
The main objective here is not to create another generic moving-average cross script. The distinctive part of this tool is that it treats the 200 EMA as a behavioral map rather than a yes/no trigger.
In many scripts, the 200 EMA is used only as a directional filter: price above equals bullish context, price below equals bearish context. That can be useful, but it does not say much about the quality of the interaction itself. A reclaim that is accepted cleanly after a controlled retest is different from a reclaim that briefly crosses the line and immediately loses it. Both may appear similar in a simple cross-based tool, but they do not carry the same structural meaning.
This script is built to separate those cases. It tracks whether a reclaim occurred, whether price is holding on the reclaimed side, whether a retest happened, how strong that retest appears relative to the script’s scoring rules, and whether the move later failed. In that sense, the script focuses on reclaim lifecycle mapping rather than raw cross detection.
Methodology
The core reference is the 200-period exponential moving average. From there, the script evaluates several conditions around that line.
1) Reclaim detection
A bullish reclaim occurs when price moves from below the 200 EMA to above it. A bearish reclaim occurs when price moves from above the 200 EMA to below it. These events define the initial transition point, but they are not treated as sufficient on their own.
2) Acceptance / hold logic
After a reclaim, the script tracks whether price remains on the reclaimed side for a defined window. This is used to separate fresh reclaim attempts from accepted holds and weaker continuation states. The panel reflects this with state language rather than presenting the move as an unconditional signal.
3) Retest tracking
After a reclaim, price may revisit the EMA zone. The script evaluates these retest behaviors and can classify them through an internal quality framework. This is intended to distinguish cleaner, more orderly interactions from weaker or less stable ones.
4) Stretch context
The script also measures how extended price is relative to the 200 EMA using an ATR-based context layer. This does not declare a reversal by itself. It simply adds information about whether price is relatively balanced or stretched around the reclaim structure.
5) Failure mapping
If a reclaim is later lost, the script can mark that condition as a failed reclaim. This helps separate accepted transitions from ones that could not maintain structure around the 200 EMA.
The map band around the EMA is only a visual aid. It is there to make the interaction corridor easier to recognize on the chart. It should not be interpreted as an independent support/resistance zone outside the script’s own framework.
States / Signals
This script is best read as a state-mapping overlay, not as a standalone trade engine.
Typical outputs include:
- Bias context relative to the 200 EMA
- Reclaim status
- Acceptance or weak-hold state
- Retest direction and latest retest quality
- Stretch condition relative to the 200 EMA
- Failed reclaim markers when the structure is lost
Depending on settings and chart history, you may see labels such as Bull Reclaim, Bear Reclaim, and retest quality annotations. These labels are visual markers for structural events detected by the script. They are not guarantees of continuation, reversal, or trade outcome.
Alerts
The script includes deterministic alert conditions tied to its event logic. These are designed to support workflow automation for users who want notification when a reclaim or failure condition is detected.
Because alerts are based on chart data and script logic, their usefulness will depend on the selected timeframe, the instrument traded, and the user’s own confirmation process. Alerts should be used as prompts for review, not as standalone execution instructions.
Key Inputs
The exact input list may evolve with future updates, but the script is centered around the following configuration areas:
- EMA length and source settings
- Acceptance / hold window controls
- Retest logic and retest label filtering
- Stretch context based on ATR
- Label visibility, spacing, and display density
- Map / zone display controls
- Panel visibility and panel styling options
These settings allow the script to be adapted for cleaner presentation or more event visibility depending on chart preference. A lower-noise layout may be more suitable for publishing or higher-timeframe review, while a denser layout may be more useful for inspection and testing.
Limitations & Transparency
This script does not forecast price. It does not know future direction, and it does not identify all valid trend continuations or reversals. It is a context tool built around a widely observed moving-average reference.
A reclaim above the 200 EMA does not always lead to continuation. A reclaim below the 200 EMA does not always lead to downside expansion. Retests can succeed or fail. Accepted states can break. Stretch conditions can persist longer than expected. False transitions can occur, especially in choppy or news-driven environments.
Like any moving-average-based framework, this script is also sensitive to timeframe selection. A chart that appears constructive on one timeframe may remain weak on a higher timeframe, or vice versa. Users should interpret the output within their own multi-timeframe and risk-management process.
Label placement, retest visibility, and apparent event density can also vary by volatility regime, zoom level, and chart compression. For that reason, the visual output should be treated as a structured reading aid rather than a complete market model.
This tool should not be viewed as a substitute for market structure analysis, liquidity awareness, execution discipline, or position management.
Risk Disclosure
This script is for chart analysis and educational use. It does not provide investment advice, financial advice, trading advice, or portfolio advice.
Trading and investing involve risk. Markets can move quickly, and losses can occur. No indicator, overlay, or alert system can eliminate that risk. Always use independent judgment, confirm conditions with your own process, and apply risk management appropriate to your market and strategy.
If you use this script in live markets, it is your responsibility to evaluate whether the instrument, timeframe, liquidity, volatility, and execution environment are suitable for your own decisions.
הערות שחרור
UPDATE NOTES - V1.1This update focuses on chart presentation, readability, and state visibility around the EMA 200.
The core logic of the script remains the same. The reclaim, retest, acceptance, failure, quality, and alert framework were not redesigned into a different methodology. Instead, this update improves how the existing information is displayed so the map is easier to read at a glance and more visually coherent on the chart.
What changed in this update:
• Refined EMA 200 visual presentation
The EMA 200 line was adjusted to stand out more clearly as the structural reference of the script. The goal was to make the main anchor of the map more visible without making the chart feel heavy or cluttered.
• Improved reclaim-zone continuity
After an accepted reclaim, the chart now keeps a softer contextual presence around the EMA instead of fading too abruptly. This helps users maintain visual awareness of the reclaim area even after the initial event has passed.
• Better visual connection between panel state and chart state
The chart presentation was refined so the information shown in the panel feels more consistent with what the user sees directly on price. This makes the map easier to interpret during accepted-above / accepted-below conditions.
• Cleaner EMA line tag presentation
The EMA 200 line tag was refined for better visual fit with the rest of the script. This helps the chart look more polished while keeping the reference label easy to identify.
• Added lightweight retest event visibility
Retest activity now leaves a more readable visual footprint on the chart. The purpose is not to overload the screen, but to make recent retest information easier to notice when reviewing the map structure.
• General chart polish
Minor visual adjustments were made to improve balance, chart feel, and overall readability. The result is a cleaner presentation that preserves the original intent of the script while making it easier to follow in live use.
What did not change:
• The script still centers on EMA 200 reclaim context.
• The reclaim / failure structure was not converted into a different signal model.
• Retest quality logic remains aligned with the existing framework.
• The update does not reframe the script as a prediction engine.
• The documented alert structure remains consistent with the established methodology.
In practical terms, this is a presentation-focused update designed to make the map more readable, more visually stable, and more intuitive without changing the core purpose of the script.
הערות שחרור
Update Notes - V1.3This update focuses on visual cleanup and chart readability while keeping the core EMA 200 reclaim logic intact.
What changed
- Reduced chart clutter by filtering repeated reclaim labels more aggressively.
- Cleaned up the EMA context visuals so price remains easier to read.
- Simplified the default event display for a more selective presentation.
- Refined reclaim spacing to reduce crowded label clusters in choppy areas.
- Improved the general balance between the EMA line, context band, labels, and panel.
- Polished the panel presentation for a cleaner and more consistent look.
Notes
- This update is primarily visual and presentation-oriented.
- The script still tracks EMA 200 reclaim context, acceptance behavior, stretch conditions, retest information, and window status.
- Signals and labels should still be interpreted within broader market structure and trend context.
- This script is for chart analysis and alerting purposes only. It is not a prediction engine, an execution system, or financial advice.
הערות שחרור
Update Notes - Version 2.0- Refined the EMA 200 reclaim engine to better separate fresh reclaims, accepted holds, weak holds, and failed follow-through.
- Added ATR-scaled reclaim zones with forward projection to make the active reclaim area easier to read on live charts.
- Upgraded the retest model with stronger quality scoring so clean reactions stand out more clearly from low-conviction touches.
- Added Hold Score and Trap Risk logic to help identify whether price is building stable acceptance or drifting into failure conditions.
- Improved chart presentation with cleaner label spacing, better candle clearance, adjustable label sizing, and more balanced event density.
- Reworked the panel with a merged blue title row, theme and position controls, and clearer live readouts for Bias, State, Stretch, Retest, Quality, and active window context.
- Expanded alert coverage for reclaim, acceptance, failure, and high-quality retest conditions.
- Cleaned and optimized the script structure for a faster, more professional publication-ready update while keeping the original script identity intact.
הערות שחרור
UPDATE NOTES - V2.4This update focuses on visual consistency, label readability, and cleaner EMA 200 reclaim presentation.
The core purpose of the script remains unchanged.
This release improves how the existing EMA 200 reclaim logic is presented, organized, and interpreted on the chart.
This script continues to function as an analytical and visualization tool.
It does not attempt to predict price direction or provide guaranteed outcomes.
------------------------
What Changed
------------------------
- Extended the EMA 200 right-side tag offset.
The EMA tag now uses the adjustable EMA Tag Offset Bars input with a wider default, helping it sit farther from the latest candle and nearby event labels.
- Unified visible label sizing.
Chart event labels, centered zone badges, and the EMA 200 tag now use the same Label Font Size control directly.
- Standardized label text contrast.
Visible chart labels, zone badges, and the EMA 200 tag now use white text inside filled color boxes for a more premium and consistent publication view.
- Preserved the core EMA 200 reclaim engine.
The EMA anchor, reclaim detection, hold evaluation, retest scoring, trap-risk context, and alert conditions remain unchanged.
- Kept the AG Pro panel standard.
The panel keeps its single merged blue header, show/hide control, theme control, location control, and font-size control.
------------------------
Visual Improvements
------------------------
- Improved chart readability by keeping all visible label text inside contrast-safe filled backgrounds.
- Refined EMA 200 tag placement so the right-side tag has more breathing room from candles and event labels.
- Kept the centered hold-zone badge readable on dark and light chart themes.
- Maintained a balanced default label story around reclaim, hold, retest, and reset contexts without overcrowding the chart.
------------------------
Interface & Usability
------------------------
- The EMA Tag Offset Bars input now controls the EMA tag projection instead of relying on a fixed internal offset.
- The Label Font Size input now controls chart labels, zone labels, and the EMA tag in sync.
- Panel controls remain available for visibility, theme, location, and font size.
- The two-line review row remains available for compact first-glance interpretation.
------------------------
Behavior Notes
------------------------
This update does not change the core analytical logic of the script.
The goal is to improve clarity and usability, not to introduce new predictive behavior.
Users should interpret outputs the same way as before, but with improved label consistency and cleaner EMA tag placement.
------------------------
Limitations Reminder
------------------------
The script remains a rule-based analytical tool.
Market conditions such as volatility, liquidity, symbol behavior, and timeframe differences may affect how reclaim, retest, hold, and reset states appear.
Outputs should always be interpreted within broader market context.
------------------------
Risk Reminder
------------------------
This script is for educational and analytical purposes only.
It does not provide financial advice or guaranteed trading outcomes.
Users remain responsible for their own decisions.
הערות שחרור
🔧 UPDATE NOTES - v2.6This update focuses on chart readability around the active hold zone.
The core purpose of the script remains unchanged. This release refines how the active zone, its badge, and the EMA 200 tag are positioned so the right edge of the chart stays clean across all timeframes and symbols. It continues to function as an analytical and visualization tool and does not predict price direction or provide guaranteed outcomes.
------------------------
What Changed
------------------------
• Re-centered the active zone badge.
The centered hold-zone badge now sits deeper inside the zone body instead of near its right edge, so it no longer overlaps the EMA 200 tag or the latest reclaim label.
• Pushed the EMA 200 tag further right.
The EMA tag now keeps a larger default clearance from the zone and recent labels, removing the right-edge crowding seen on lower timeframes.
• Faded completed and failed zones further.
Finished zones now render as very subtle color-coded boxes with near-invisible borders, so their edges no longer cut across the active badge.
------------------------
Visual Improvements
------------------------
• Reduced right-edge overlap between the zone badge, EMA tag, and recent labels.
• Made completed zones recede further into the background for a cleaner active focus.
• Preserved the active hold zone and its badge as the primary visual element.
• Kept a clean, capped event-label count for a premium chart.
------------------------
Interface & Usability
------------------------
• Improved first-glance readability of the active reclaim state on the chart.
• Kept all panel readouts, including the Reclaim Hit Rate, unchanged and consistent.
• Adjusted default visual offsets for a more balanced layout across timeframes.
• Enhanced overall user experience without changing the core reclaim logic.
------------------------
Behavior Notes
------------------------
This update does not change the core analytical logic of the script.
The goal is to improve clarity and layout, not to introduce new predictive behavior.
Users should interpret outputs the same way as before, now with a cleaner active-zone presentation.
------------------------
Limitations Reminder
------------------------
The script remains a rule-based analytical tool.
Market conditions such as volatility, liquidity, and timeframe differences may affect how reclaims, holds, and the hit rate appear.
Outputs should always be interpreted within broader market context.
------------------------
Risk Reminder
------------------------
This script is for educational and analytical purposes only.
It does not provide financial advice or guaranteed trading outcomes.
Users remain responsible for their own decisions.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
Public-free scripts + invite-only AGPro workflows for market analysis, liquidity context, risk planning and execution review.
Rules-based. No hype. No guesswork.
Library & access: agprolabs.com/
Telegram: t.me/agprolabs
Rules-based. No hype. No guesswork.
Library & access: agprolabs.com/
Telegram: t.me/agprolabs
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
Public-free scripts + invite-only AGPro workflows for market analysis, liquidity context, risk planning and execution review.
Rules-based. No hype. No guesswork.
Library & access: agprolabs.com/
Telegram: t.me/agprolabs
Rules-based. No hype. No guesswork.
Library & access: agprolabs.com/
Telegram: t.me/agprolabs
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.