OPEN-SOURCE SCRIPT

Price vs 10/50DMA (%) — single label

38
This TradingView script shows how far the current price is from its 10-day and 50-day moving averages (DMAs), expressed as percentages, and displays both values as a single label near the latest candle — for example, “+3% vs 10DMA | +8% vs 50DMA.” You can switch between simple and exponential moving averages using the “Use EMA” checkbox, and adjust the period lengths in the input panel. To use it, simply copy the code into TradingView’s Pine Editor, click Add to chart, and you’ll see one live label updating each bar along with the plotted 10- and 50-day average lines.

Отказ от ответственности

Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.