OPEN-SOURCE SCRIPT
EMA20 Pullback Target Finder

The EMA Touch Price Predictor is designed to estimate the exact price level where the market will intersect with the EMA in real time. Because the Exponential Moving Average continuously adjusts as price moves, the actual price that will touch the EMA is not always obvious while the market is moving.
This indicator solves that problem by calculating the dynamic price level at which the current price would equal the EMA, based on the EMA’s recursive formula. It then displays this level directly on the chart as a horizontal line and label, allowing traders to clearly see where a real-time EMA touch is likely to occur.
Instead of waiting for price to visually reach the moving average, traders can anticipate the interaction in advance and position entries or exits more precisely.
Key Features
1. Real-time EMA touch prediction based on the EMA calculation formula
2. Displays the projected price where the current bar will intersect with EMA
3. Draws a horizontal line marking the predicted touch level directly on the chart
4. Optional label showing EMA value, touch price, and distance from current price
5. Customizable line style, width, and colors
6. Works on any timeframe and any EMA length
How It Works
The indicator calculates the EMA normally, but also determines the price level required for the current price to equal the EMA at that moment. This level effectively represents the true dynamic target where price and the EMA will meet if price continues moving in the current bar.
This tool is especially useful for traders who rely on EMA-based strategies, helping them anticipate interactions with the moving average instead of reacting after the fact.
This indicator solves that problem by calculating the dynamic price level at which the current price would equal the EMA, based on the EMA’s recursive formula. It then displays this level directly on the chart as a horizontal line and label, allowing traders to clearly see where a real-time EMA touch is likely to occur.
Instead of waiting for price to visually reach the moving average, traders can anticipate the interaction in advance and position entries or exits more precisely.
Key Features
1. Real-time EMA touch prediction based on the EMA calculation formula
2. Displays the projected price where the current bar will intersect with EMA
3. Draws a horizontal line marking the predicted touch level directly on the chart
4. Optional label showing EMA value, touch price, and distance from current price
5. Customizable line style, width, and colors
6. Works on any timeframe and any EMA length
How It Works
The indicator calculates the EMA normally, but also determines the price level required for the current price to equal the EMA at that moment. This level effectively represents the true dynamic target where price and the EMA will meet if price continues moving in the current bar.
This tool is especially useful for traders who rely on EMA-based strategies, helping them anticipate interactions with the moving average instead of reacting after the fact.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.