OPEN-SOURCE SCRIPT
已更新 ScalpMap - EMA Pivot Targets

ScalpMap is a lightweight target-mapping tool designed for NQ scalping. It highlights nearby pivot-derived scalp levels on the correct side of EMA bias.
Asset designed for:
NQ / MNQ futures
Recommended timeframe:
15 seconds to 1 minute, depending on volatility.
In higher volatility conditions, lower timeframes may provide more responsive levels.
In lower volatility conditions, higher timeframes may help reduce noise.
The tool uses EMA34 as the main directional filter. When price is trading above the EMA with sufficient separation, the bias favours long-side setups. When price is trading below the EMA with sufficient separation, the bias favours short-side setups.
The plotted levels are generated from two pivot layers:
Pivot levels are filtered to reduce clutter and avoid plotting multiple levels too close together. Levels can also flip from resistance to support, or support to resistance, after confirmed close-through behaviour. This helps the tool focus on the most relevant levels around current price.
Core trade logic:
Visual guide:
This script is intended as a visual decision-support tool only. It does not provide buy or sell signals and should be used together with your own trade plan and risk management.
Asset designed for:
NQ / MNQ futures
Recommended timeframe:
15 seconds to 1 minute, depending on volatility.
In higher volatility conditions, lower timeframes may provide more responsive levels.
In lower volatility conditions, higher timeframes may help reduce noise.
The tool uses EMA34 as the main directional filter. When price is trading above the EMA with sufficient separation, the bias favours long-side setups. When price is trading below the EMA with sufficient separation, the bias favours short-side setups.
The plotted levels are generated from two pivot layers:
- Tight close-based pivots for local structure.
- Wider wick-based pivots for larger rejection points.
Pivot levels are filtered to reduce clutter and avoid plotting multiple levels too close together. Levels can also flip from resistance to support, or support to resistance, after confirmed close-through behaviour. This helps the tool focus on the most relevant levels around current price.
Core trade logic:
- Take trades only on the correct side of the EMA.
- Avoid entries directly into clustered levels where price is likely to chop producing lower R trades whilst the EMA is rounding.
- Look for cleaner impulse scalp opportunities when price breaks through level and has open space toward the next spread-out target.
Visual guide:
- Blue levels mark upper targets / resistance-side levels.
- Red levels mark lower targets / support-side levels.
- The orange line is the EMA34 bias line.
This script is intended as a visual decision-support tool only. It does not provide buy or sell signals and should be used together with your own trade plan and risk management.
發行說明
Improved how ScalpMap maintains target levels after strong directional moves.Previously, when price cleared or retired existing pivot levels, the script could temporarily lose active upper or lower targets. The target engine now includes fallback extension logic so projected levels continue to populate even when price breaks beyond the existing pivot structure.
- Improved target continuity after strong breakouts.
- Added fallback extension levels when no valid pivot anchor is available.
- Reduced situations where the chart may show no active target levels after price clears nearby structure.
發行說明
Update v0.3 - Synthetic Target Levels- Added synthetic extension targets for ATH conditions.
When price moves beyond known pivot structure, ScalpMap now seeds projected target levels from current price using ATR-based spacing. This helps maintain active upper and lower scalp targets during strong impulse moves when no confirmed pivot levels exist beyond price.
發行說明
V0.4 Update - optimized for faster loading and reduced script overhead.- Removed unused pivot metadata and pivot ageing logic.
- Improved array handling using persistent scratch arrays.
- Reduced repeated pivot scanning with early loop exits.
- Improved level coloring logic so color follows live price position more cleanly.
Note: Stored pivot levels are capped for performance. In some conditions, older valid pivots may drop from the active map and be replaced by ATR-based extension levels. These are useful guide levels, but may be less significant than real historical structure. Check further back on the chart or use a higher timeframe for stronger target context.
發行說明
V0.5- Fixed H/L target classification bug from v0.4.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。