OPEN-SOURCE SCRIPT
Telah dikemas kini

ATR Lines from EMA and SMA

184
Lines for scaling out at 2xATR from the 21ema and 5xATR from the 50sma.
Nota Keluaran
New Features:

Horizontal lines instead of plotted lines that follow the price action
Editable line width (1-10 pixels)
Customizable colors for each line (EMA upper/lower, SMA upper/lower)
Lines extend to the right and update with each new bar
All parameters are now input-configurable

How it works:

The script calculates ATR levels (of your choosing)
Instead of plotting curves, it creates horizontal lines
The lines are deleted and recreated on each bar to show current levels
Lines extend to the right or can be limited to a certain width

Customization options:

Line width (1-10 pixels)
Individual colors for each of the 4 lines
All the original parameters (EMA/SMA lengths, ATR length, multipliers)

The horizontal lines will now show the current ATR-based support/resistance levels and move dynamically as the EMAs, SMA, and ATR values change with new price data.
Nota Keluaran
Updated to allow a settings option to hide the ATR lines after price crosses them.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.