← All Scripts
EMATRENDATR
EMA Trend Flow
Parameters:
Short EMA Length (shortLength): 55 periods.
Long EMA Length (longLength): 200 periods.
Calculations:
Short EMA: Calculated using the close prices for the last 55 periods.
Long EMA: Calculated using the close prices for the last 200 periods.
ATR: The Average True Range (ATR) is calculated for the last 14 periods.
Color Conditions:
Green background: When the short EMA is greater than the long EMA, and the close price is above the short EMA.
Red background: When the long EMA is greater than the short EMA, and the close price is below the short EMA.
White background: This condition checks if the close price is within one ATR from both the short and long EMAs, meaning the price is in a range bound by the ATR from both EMAs.
Gray background: Default condition when none of the above are met.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by GoCharting. Read more in the Terms of Use.
↗ Related Scripts
Comments (0)
Loading comments…
