Indicator · Pine Script v6 · On the chart

Luo Sheng Indicator

by Chovy-King

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.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code977
Settings40inputs
LicenceNone stated
Last update6 months ago30 Apr 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 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.

Details

Published by

Chovy-King on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Support & resistance, Trend, Breakout

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
短期均线 EMA 周期(默认 20)int20maFastLen
中期均线 EMA 周期(默认 60)int60maMidLen
长期均线 EMA 周期(默认 144)int144maSlowLen
均线类型(EMA 反应快 / SMA 更平滑)stringEMAuseEMAorSMA
波段点左侧K线数(越大越严格)int3swingLeft
波段点右侧K线数(越大越严格)int3swingRight
关键水平聚合容差(%),合并靠近的波段点float0.25clusterTolPct
保留最近波段点数量(内部计算用)int40maxSwings
关键水平最少触碰次数(触碰越多越强)int2minTouches
屏幕最多展示关键水平线条数int6maxLevels
关键水平仅回看最近N根K线int200levelLookback
① 顺势突破入场(强趋势棒突破摆动高/低)booltrueenBreakout
Show all 40 settings
SettingTypeDefaultVariable
② 顺势回撤入场(MA+PA+关键水平,作者最青睐)booltrueenPullback
③ 关键水平假突破(穿透后回落)booltrueenFalseBreak
④ 区间边缘交易(区间上下沿反转)booltrueenRange
⑤ 突破回调入场(支阻互换)booltrueenRetest
⑥ 双顶/双底反转booltrueenDoubleTB
⑦ 强趋势弱回撤延续booltrueenStrongWeak
⑧ 趋势尖峰反转(高潮后反转)boolfalseenClimaxRev
⑨ 动能衰竭/三推反转boolfalseenExhaustion
⑩ 失败反转顺势再入场booltrueenFailedRev
⑪ 均值回归(价格偏离 MA144 后回归)boolfalseenMeanRev
启用 HTF 共振过滤(只做与高周期趋势同向的信号)boolfalseenHTF
高周期(HTF)timeframe240htfTF
止损在摆动点外再扩 N 倍 ATR(抗毛刺)float0.3slBufferATR
ATR 周期(量化波动用)int14atrLen
止盈1 = N 倍风险 R(默认 2R)float2.0rr1
止盈2 = N 倍风险 R(默认 3R)float3.0rr2
同根 K 线同时触及 SL/TP 时按 SL 优先(保守统计)booltruetieBreakSL
单笔信号最长等待 N 根 K 线(超时未触及 SL/TP 则标未知)int100maxHoldBars
显示 3 条均线booltrueshowMA
显示波段点 H/L 标签(默认关闭减少噪声)boolfalseshowSwings
显示关键水平线booltrueshowLevels
显示三角箭头 BUY/SELL(悬停可看信号依据)booltrueshowSignals
最多保留最近 N 个三角箭头(其余自动隐藏)int20maxRecentTriangles
显示 SL/TP 水平线(止损/止盈)booltrueshowSLTP
保留最近 N 笔信号的 SL/TP 水平线(老的自动擦除)int3maxRecentSLTP
SL/TP 线向右延伸 N 根 K 线int15sltpRightBars
显示右上角信息面板booltrueshowPanel
面板显示历史胜率统计(成功/失败/进行中)booltrueshowStats
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.

Similar Pine Scripts

Sideway Zones Live

by dearvn
257 stars

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

Indicator v5 TrendSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of Sideway Zones Live
56 stars

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

Indicator v5 TrendSupport & resistance Repaints
Updated 2 months ago · None stated GitHub repository of Trendlines With Breaks [LUX]

Reversal Breakout System

by TamaraKGreen
46 stars

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

Indicator v6 Candlestick patternsBreakout
Updated 7 weeks ago · None stated GitHub repository of Reversal Breakout System
24 stars

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

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 11 days ago · Custom licence GitHub repository of Smart Money Concepts [LuxAlgo] Test B

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,

Indicator v6 TrendVolatility & bands
Updated 2 days ago · MIT GitHub repository of Market Tradability Engine [WavesUnchained]

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

Indicator v4 TrendBreakout
Updated 4 years ago · None stated GitHub repository of Accurate Swing Trading System

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers