An overlay that detects up to eleven price-action entry setups, each with its own switch: trend breakout, trend pullback, false breakout of a key level, range edge, breakout retest, double top or bottom, and others.
1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.
Source Code
The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.
Overview
Luo Sheng Indicator builds key levels by clustering swing points and uses 20, 60 and 144 EMAs. Signals show stop and two target levels at risk multiples, and tooltips plus a panel track what happened after each signal. An optional higher-timeframe filter is available.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
短期均线 EMA 周期(默认 20)
int
20
maFastLen
中期均线 EMA 周期(默认 60)
int
60
maMidLen
长期均线 EMA 周期(默认 144)
int
144
maSlowLen
均线类型(EMA 反应快 / SMA 更平滑)
string
EMA
useEMAorSMA
波段点左侧K线数(越大越严格)
int
3
swingLeft
波段点右侧K线数(越大越严格)
int
3
swingRight
关键水平聚合容差(%),合并靠近的波段点
float
0.25
clusterTolPct
保留最近波段点数量(内部计算用)
int
40
maxSwings
关键水平最少触碰次数(触碰越多越强)
int
2
minTouches
屏幕最多展示关键水平线条数
int
6
maxLevels
关键水平仅回看最近N根K线
int
200
levelLookback
① 顺势突破入场(强趋势棒突破摆动高/低)
bool
true
enBreakout
Show all 40 settings
Setting
Type
Default
Variable
② 顺势回撤入场(MA+PA+关键水平,作者最青睐)
bool
true
enPullback
③ 关键水平假突破(穿透后回落)
bool
true
enFalseBreak
④ 区间边缘交易(区间上下沿反转)
bool
true
enRange
⑤ 突破回调入场(支阻互换)
bool
true
enRetest
⑥ 双顶/双底反转
bool
true
enDoubleTB
⑦ 强趋势弱回撤延续
bool
true
enStrongWeak
⑧ 趋势尖峰反转(高潮后反转)
bool
false
enClimaxRev
⑨ 动能衰竭/三推反转
bool
false
enExhaustion
⑩ 失败反转顺势再入场
bool
true
enFailedRev
⑪ 均值回归(价格偏离 MA144 后回归)
bool
false
enMeanRev
启用 HTF 共振过滤(只做与高周期趋势同向的信号)
bool
false
enHTF
高周期(HTF)
timeframe
240
htfTF
止损在摆动点外再扩 N 倍 ATR(抗毛刺)
float
0.3
slBufferATR
ATR 周期(量化波动用)
int
14
atrLen
止盈1 = N 倍风险 R(默认 2R)
float
2.0
rr1
止盈2 = N 倍风险 R(默认 3R)
float
3.0
rr2
同根 K 线同时触及 SL/TP 时按 SL 优先(保守统计)
bool
true
tieBreakSL
单笔信号最长等待 N 根 K 线(超时未触及 SL/TP 则标未知)
int
100
maxHoldBars
显示 3 条均线
bool
true
showMA
显示波段点 H/L 标签(默认关闭减少噪声)
bool
false
showSwings
显示关键水平线
bool
true
showLevels
显示三角箭头 BUY/SELL(悬停可看信号依据)
bool
true
showSignals
最多保留最近 N 个三角箭头(其余自动隐藏)
int
20
maxRecentTriangles
显示 SL/TP 水平线(止损/止盈)
bool
true
showSLTP
保留最近 N 笔信号的 SL/TP 水平线(老的自动擦除)
int
3
maxRecentSLTP
SL/TP 线向右延伸 N 根 K 线
int
15
sltpRightBars
显示右上角信息面板
bool
true
showPanel
面板显示历史胜率统计(成功/失败/进行中)
bool
true
showStats
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.
Sideway Zones Live is an overlay indicator that estimates inner and outer sideways bands from recent highs and lows with a rational quadratic kernel. It tracks swing pivots over a loopback period and counts bars that remain between the outer high and low. Afte
This indicator calculates dynamic upper and lower trendlines from pivot highs and pivot lows across a specified bar length. Trendline slopes are derived using ATR, standard deviation, or linear regression methods. It plots trendlines and breakout signal labels
This indicator detects inside candles inside larger parent candles on the price chart. It plots colored boxes around inside and parent candles, fills them with user-adjustable transparency, draws Fibonacci retracement lines and mother candle range lines, and d
This indicator maps Smart Money Concepts (SMC) market structure directly onto the price chart. It detects internal and swing structure breaks (BOS and CHoCH), tracks bullish and bearish order blocks, identifies fair value gaps (FVG), highlights equal highs and
The Market Tradability Engine calculates multi-factor tradability, balance, compression, and direction scores to evaluate market regime quality. It classifies market conditions into eight distinct states, including Balance, Compression, Ready, Breakout, Trend,
This indicator tracks swing highs and swing lows to generate trend-following trailing stop levels on the price chart. When the closing price breaks above the previous swing high, the system establishes a bullish state using the recent swing low as a trailing s