OPEN-SOURCE SCRIPT

MA with Difference GROK3

293
What This Indicator Does

This indicator enhances a simple moving average (SMA) with two key features:
Color-Changing Moving Average:
The moving average line changes color based on whether the current closing price is above or below it.
Green: Price is above the MA (potential bullish signal).
Red: Price is below the MA (potential bearish signal).
Dynamic Percentage Difference Label:
A label appears on the chart near the MA on the last bar, showing the percentage difference between the current closing price and the MA.
Positive percentage (e.g., "Diff: 2.34%"): Price is above the MA.
Negative percentage (e.g., "Diff: -1.87%"): Price is below the MA.

כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.