OPEN-SOURCE SCRIPT

+25% DMA200

52
+25% DMA200 highlights daily over-extension by printing a ⚠️ marker on every daily candle where price is more than X% above the Daily 200 DMA (200-period SMA calculated on the Daily timeframe). It also plots the Daily DMA200 line on the chart. Recommended usage in GOLD, GLD, etc.

How it works

Computes DMA200 using Daily data

Measures extension: (Close − DMA200) / DMA200

If extension is above the threshold (default 0.25 = 25%), it places a ⚠️ above that candle (one per qualifying daily candle).

Optional alert triggers only when extension crosses above the threshold (entry into the over-extended zone).

Inputs

DMA Length (Daily): Moving average length (default 200).

Threshold: Over-extension level (0.25 = 25%).

Run ONLY on 1D chart: If enabled, marks/alerts only on Daily charts.

Pad above high: Vertical spacing for the marker above the candle’s high.

Keep last N markers: Limits how many markers are kept to avoid chart clutter.

Note

This is not a buy/sell signal—it’s a risk/extension detector to help identify when price is stretched far above its long-term daily mean.

면책사항

해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.