Auto Trend Lines + Signals detects pivot highs and lows based on configurable left and right bar inputs, drawing support and resistance lines from candle wicks or bodies. The indicator generates buy and sell signal labels based on trendline breaks and Supertrend alignment. Settings allow users to customize lookback periods, extension lengths, line styles, and filter conditions. Because pivot detection requires right-side confirmation bars, trendline connections repaint past historical bars upon confirmation.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
═══════════ Macro Trend ═══════════
bool
true
macro_on
Length: Left
int
10
macro_lft
Right
int
5
macro_rgt
Extension
int
10
macro_ext
Draw lines from wicks (uncheck for bodies)
bool
true
macro_wick
Display only falling High and rising Low trendlines
bool
true
macro_filt
Log scale?
bool
true
macro_log
Colors
color
color.new(color.green, 0)
macro_cbull
macro_cbear
color
color.new(color.red, 0)
macro_cbear
Style
string
Solid
macro_sty
Width
int
1
macro_wid
═══════════ Micro Trend ═══════════
bool
true
micro_on
Show all 36 settings
Setting
Type
Default
Variable
Length: Left
int
4
micro_lft
Right
int
2
micro_rgt
Extension
int
4
micro_ext
Draw lines from wicks (uncheck for bodies)
bool
true
micro_wick
Display only falling High and rising Low trendlines
bool
true
micro_filt
Log scale?
bool
true
micro_log
Colors
color
color.new(color.green, 0)
micro_cbull
micro_cbear
color
color.new(color.red, 0)
micro_cbear
Style
string
Dotted
micro_sty
Width
int
1
micro_wid
Show Signals
bool
true
sig_on
Strong Buy
color
color.new(#00E5FF, 0)
sig_sbuy_col
Strong Sell
color
color.new(#FF1744, 0)
sig_ssell_col
Weak Buy
color
color.new(#69F0AE, 0)
sig_wbuy_col
Weak Sell
color
color.new(#FF6D00, 0)
sig_wsell_col
═══════════ Supertrend ═══════════
bool
true
st_on
ATR Period
int
10
st_atr
Multiplier
float
3.0
st_mult
Bull / Bear
color
color.new(#00E5FF, 0)
st_bull_col
st_bear_col
color
color.new(#FF1744, 0)
st_bear_col
Width
int
2
st_wid
Show Supertrend flip signals
bool
true
st_signals
ST Buy
color
color.new(#00E5FF, 0)
st_buy_col
ST Sell
color
color.new(#FF1744, 0)
st_sell_col
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
This indicator detects equal highs and lows by comparing prices within user-defined left and right bars using a tolerance percentage. It plots horizontal lines on the price chart for equal highs in one color and lows in another. A screener allows input of mult
Calculates swing highs and swing lows on the price chart using pivot high and pivot low detection over a specified length. It places labels above pivot highs and below pivot lows to highlight key structural swing points. The indicator measures and displays the
This indicator fits a linear regression through stored pivot highs and lows and draws the resulting channel on the price chart. A function returns predicted values, maximum and minimum deviations, and the average absolute deviation. Confirmed two-bar pivots up
AI Trend is an indicator that plots pivot points, trend lines, and support and resistance levels directly on the price chart. It marks high and low pivots based on user-defined length, draws trend lines that check for violations at specified points, and identi
Dynamic Linear Regression calculates and plots linear regression trendlines and standard deviation channels directly on the price chart over a user-selected time period. Traders can configure static channels locked at the end time, dynamic channels that contin
This indicator plots Ichimoku Cloud elements on the price chart, including Tenkan-sen, Kijun-sen, Senkou Span A and B lines with optional Chikou Span. It signals trend changes via Tenkan-sen and Kijun-sen crosses and places arrows at Kijun-sen direction shifts