Pine Script®指標
圖表形態
ninjactor fib (v6, Native Pivots, Non-Repainting)📐 Fibonacci Sequence Framework (Non-Repainting)
This indicator implements a structured Fibonacci sequence framework using confirmed, non-repainting pivots.
It automatically identifies Fibonacci boundaries, plots a precise Fibonacci level set with grouped color logic, and projects targets based on retracement depth.
The script is designed for clarity, accuracy, and object-based plotting, extending Fibonacci levels to the right while active and maintaining a clean chart by default.
🔹 Core Features
Non-Repainting Fractals
Uses confirmed 2-left / 2-right pivots (ta.pivotlow, ta.pivothigh)
Pivot labels are plotted on the correct historical bar
Automatic Fibonacci Boundary Detection
Long spreads:
Boundary 1 = pivot low (100%)
Boundary 2 = first pivot high after (0%)
Short spreads use the inverted logic
Direction can be set to Auto, Long Only, or Short Only
Exact Fibonacci Level Set
Retracements:
0.236 · 0.382 · 0.500 · 0.618 · 0.786 · 0.886
Extensions (targets):
1.127 · 1.272 · 1.618
Negative levels included:
-0.127 · -0.272 · -0.618
Grouped Color Logic
Red: 0.236 / 0.382 / 0.500 / 0.618, 1.618, negative levels
Blue: 0.786, 1.272, boundary lines
Green: 0.886, 1.127
Active target is highlighted with increased line thickness
Strict “Must Touch” Logic
Retracement levels are only considered valid if price actually touches them
Wick-based validation (not close-based)
Target hits must be touched exactly — no partial credit
Target Projection Rules
Retracements ≤ 0.618 → target = 1.618
0.786 retracement → target = 1.272
0.886 retracement → target = 1.127
Clean Object Management
Uses line and label objects (not plots)
Levels extend right while active
By default, only the current active spread is displayed
Optional history toggle to keep previous spreads
⚙️ Customization
Fully customizable color inputs
Adjustable opacity for:
Non-active levels
Active target line
Direction mode selection
History on/off control
📌 Notes
This is an indicator, not a strategy (no trade execution)
Designed for discretionary trading and confluence analysis
Built to be stable, readable, and Pine Script v6 compatible
Pine Script®指標
Institutional Reload Zones //@version=5
indicator("MSS Institutional Reload Zones (HTF + Sweep + Displacement) ", overlay=true, max_boxes_count=20, max_labels_count=50)
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// Inputs
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
pivotLeft = input.int(3, "Pivot Left", minval=1)
pivotRight = input.int(3, "Pivot Right", minval=1)
htfTf = input.timeframe("60", "HTF Timeframe (60=1H, 240=4H)")
emaFastLen = input.int(50, "HTF EMA Fast", minval=1)
emaSlowLen = input.int(200, "HTF EMA Slow", minval=1)
atrLen = input.int(14, "ATR Length", minval=1)
dispMult = input.float(1.2, "Displacement ATR Mult", minval=0.5, step=0.1)
closeTopPct = input.float(0.25, "Close within top %", minval=0.05, maxval=0.5, step=0.05)
sweepLookbackBars = input.int(60, "Sweep lookback (bars)", minval=10, maxval=500)
sweepValidBars = input.int(30, "Sweep active for N bars", minval=5, maxval=200)
cooldownBars = input.int(30, "Signal cooldown (bars)", minval=0, maxval=300)
extendBars = input.int(200, "Extend zones (bars)", minval=20)
showOB = input.bool(true, "Show Pullback OB zone")
showFib = input.bool(true, "Show 50-61.8% zone")
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// HTF trend filter
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
htfClose = request.security(syminfo.tickerid, htfTf, close)
htfEmaFast = request.security(syminfo.tickerid, htfTf, ta.ema(close, emaFastLen))
htfEmaSlow = request.security(syminfo.tickerid, htfTf, ta.ema(close, emaSlowLen))
htfBull = (htfEmaFast > htfEmaSlow) and (htfClose >= htfEmaFast)
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// LTF structure pivots
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
atr = ta.atr(atrLen)
ph = ta.pivothigh(high, pivotLeft, pivotRight)
pl = ta.pivotlow(low, pivotLeft, pivotRight)
var float lastSwingHigh = na
var float lastSwingLow = na
if not na(ph)
lastSwingHigh := ph
if not na(pl)
lastSwingLow := pl
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// Sweep filter (simple + robust)
// “sweep” = breaks below lowest low of last N bars and reclaims (close back above that level)
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
sweepLevel = ta.lowest(low, sweepLookbackBars)
sweepNow = (low < sweepLevel) and (close > sweepLevel)
var int sweepUntil = na
if sweepNow
sweepUntil := bar_index + sweepValidBars
sweepActive = not na(sweepUntil) and (bar_index <= sweepUntil)
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// Displacement filter
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
cRange = high - low
closeTopOk = close >= (high - cRange * closeTopPct)
dispOk = (cRange >= atr * dispMult) and closeTopOk and (close > open)
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// MSS bullish (filtered)
// base MSS: close crosses above last swing high
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
baseMssBull = (not na(lastSwingHigh)) and ta.crossover(close, lastSwingHigh)
var int lastSignalBar = na
cooldownOk = na(lastSignalBar) ? true : (bar_index - lastSignalBar >= cooldownBars)
mssBull = baseMssBull and htfBull and sweepActive and dispOk and cooldownOk
if mssBull
lastSignalBar := bar_index
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// Find last bearish candle before MSS for OB zone
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
f_lastBearish(_lookback) =>
float obH = na
float obL = na
int found = 0
for i = 1 to _lookback
if found == 0 and close < open
obH := high
obL := low
found := 1
= f_lastBearish(30)
// Impulse anchors for fib zone (use lastSwingLow to current high on MSS bar)
impLow = lastSwingLow
impHigh = high
fib50 = (not na(impLow)) ? (impLow + (impHigh - impLow) * 0.50) : na
fib618 = (not na(impLow)) ? (impLow + (impHigh - impLow) * 0.618) : na
fibTop = (not na(fib50) and not na(fib618)) ? math.max(fib50, fib618) : na
fibBot = (not na(fib50) and not na(fib618)) ? math.min(fib50, fib618) : na
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// Boxes (delete previous, draw new) — SINGLE LINE calls only
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
var box obBox = na
var box fibBox = na
if mssBull
if showOB and not na(obHigh) and not na(obLow)
if not na(obBox)
box.delete(obBox)
obBox := box.new(left=bar_index, top=obHigh, right=bar_index + extendBars, bottom=obLow, bgcolor=color.new(color.gray, 82), border_color=color.new(color.gray, 30))
if showFib and not na(fibTop) and not na(fibBot)
if not na(fibBox)
box.delete(fibBox)
fibBox := box.new(left=bar_index, top=fibTop, right=bar_index + extendBars, bottom=fibBot, bgcolor=color.new(color.teal, 85), border_color=color.new(color.teal, 35))
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// Visuals
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
plotshape(mssBull, title="MSS Bull (Filtered)", style=shape.labelup, text="MSS✔", size=size.tiny, color=color.new(color.green, 0), textcolor=color.white, location=location.belowbar)
plot(htfEmaFast, title="HTF EMA Fast", color=color.new(color.orange, 80))
plot(htfEmaSlow, title="HTF EMA Slow", color=color.new(color.purple, 80))
Pine Script®指標
stelaraX - Auto FibonaccistelaraX – Auto Fibonacci
stelaraX – Auto Fibonacci is an automatic Fibonacci plotting indicator that detects recent pivot highs and pivot lows and draws Fibonacci retracement and extension levels across the latest swing range. The script updates dynamically whenever a new pivot is confirmed, providing an always-current Fibonacci map without manual drawing.
For advanced AI-based chart analysis and automated Fibonacci interpretation, visit stelarax.com
Core logic
The indicator detects swing pivots using a user-defined pivot lookback:
* pivot highs are detected using pivot high confirmation
* pivot lows are detected using pivot low confirmation
When a new pivot is confirmed and both a recent high and low are available, the script:
* defines the swing range between the latest pivot high and pivot low
* draws Fibonacci levels across that range
* extends the levels forward by a configurable number of bars
The plotted level set includes retracements and extensions:
* -0.618 and -0.272
* 0.0, 0.236, 0.382, 0.5, 0.618, 0.786, 1.0
* 1.272 and 1.618
Extensions can be enabled or disabled via a dedicated setting.
Visualization
Fibonacci levels are plotted as horizontal lines and labeled with:
* the Fibonacci ratio
* the corresponding price value
Colors are assigned based on level type:
* 0 and 1 levels use a dedicated highlight color
* 0.5 uses a key level color
* standard retracement levels use a base fib color
* extension levels use a separate extension color
When a new pivot forms, the indicator clears the previous Fibonacci drawings and redraws the full set to keep the chart clean and current.
Use case
This indicator is intended for:
* automatic Fibonacci retracement mapping on the latest swing
* identifying potential reaction levels for pullbacks and continuations
* projecting extension targets beyond the current range
* level-based confluence with structure, liquidity, and zones
* multi-timeframe Fibonacci alignment
For a fully automated AI-driven chart analysis solution, additional tools and insights are available at stelarax.com
Disclaimer
This indicator is provided for educational and technical analysis purposes only and does not constitute financial advice or trading recommendations. All trading decisions and risk management remain the responsibility of the user.
Pine Script®指標
RSI(5) on RSI(14)RSI(5) on RSI(14)
This indicator is displayed in a separate pane and works on all timeframes.
It combines a classic RSI with a secondary RSI calculated on the RSI values themselves, allowing deeper analysis of momentum and internal strength.
Indicator Logic
The indicator consists of two components:
RSI (period 14) calculated from price data (default: Close).
RSI (period 5) calculated on the values of RSI(14), equivalent to Previous Indicator’s Data in MetaTrader.
This structure helps to:
identify overbought and oversold zones using the primary RSI,
observe acceleration, deceleration, and momentum shifts inside the RSI itself using the secondary RSI.
Visualization
RSI(14) is plotted as a configurable colored line.
RSI(5) on RSI(14) is plotted as a thin black line on top of the main RSI.
The indicator scale is fixed between 0 and 100.
Levels
20 and 80 — configurable oversold and overbought levels:
adjustable values,
customizable color,
line width,
line style (solid, dashed, dotted).
50 level:
black,
thin,
dashed,
acts as a mid-level equilibrium reference.
Inputs
Users can adjust:
RSI(14) period,
RSI(5) period,
price source for RSI(14),
colors and line widths,
level values and styles for 20 / 80.
Use Cases
This indicator can be used for:
momentum and strength analysis,
detecting internal RSI momentum shifts,
trend confirmation and filtering,
standalone oscillator analysis or as part of a larger trading system.
Pine Script®指標
stelaraX - Supply & Demand ZonesstelaraX – Supply & Demand Zones
stelaraX – Supply & Demand Zones is a price action indicator designed to automatically draw supply and demand zones based on pivot structure and candle confirmation. The script highlights potential institutional reaction areas and extends zones forward for easy planning and level-based analysis.
For advanced AI-based chart analysis and automated zone interpretation, visit stelarax.com
Core logic
The indicator detects zones using pivot logic with a user-defined lookback period.
Supply zones are created when:
* a pivot high is confirmed
* the candle at the pivot reference point is bearish (close below open)
Demand zones are created when:
* a pivot low is confirmed
* the candle at the pivot reference point is bullish (close above open)
Zone boundaries are defined using the pivot candle range:
* supply zone uses the pivot high as the top and the candle body high as the bottom
* demand zone uses the pivot low as the bottom and the candle body low as the top
Visualization
The script draws zones directly on the chart using extended boxes:
* supply zones are displayed in red tones
* demand zones are displayed in green tones
Each zone is extended forward by a configurable number of bars to keep the level visible for future price interaction. Zone colors and border styles are fully customizable.
The indicator maintains a clean chart by limiting the total number of active zones for both supply and demand.
Use case
This indicator is intended for:
* identifying key supply and demand reaction zones
* level-based trading and confluence analysis
* planning entries and exits around structural areas
* mapping potential reversal and continuation locations
* multi-timeframe zone tracking
For a fully automated AI-driven chart analysis solution, additional tools and insights are available at stelarax.com
Disclaimer
This indicator is provided for educational and technical analysis purposes only and does not constitute financial advice or trading recommendations. All trading decisions and risk management remain the responsibility of the user.
Pine Script®指標
Pine Script®指標
15 min orb//@version=5
strategy("15min ORB Retest Strategy", overlay=true, default_qty_type=strategy.fixed, default_qty_value=2, initial_capital=50000, commission_type=strategy.commission.cash_per_contract, commission_value=2.50)
// ========== INPUTS ==========
entryLevel = input.string("Top/Bottom", "Entry Level", options= )
stopPoints = input.float(5.0, "Stop Loss (Points)", minval=0.1)
tpPoints = input.float(10.0, "Take Profit (Points)", minval=0.1)
// ========== TIME SETTINGS (Mountain Time = UTC-7 or UTC-6 depending on DST) ==========
// TradingView uses UTC, so adjust based on your MT offset
// For simplicity, using session strings. Adjust if needed for DST.
orbSession = "0600-0615:1234567" // 6:00-6:15 AM MT (adjust UTC offset as needed)
tradeSession = "0700-0730:1234567" // 7:00-7:30 AM MT
// ========== ORB BOX CALCULATION ==========
var float boxHigh = na
var float boxLow = na
var float boxMid = na
var bool boxSet = false
var bool tradeToday = false
var bool breakoutUp = false
var bool breakoutDown = false
// Detect ORB session (6:00-6:15 AM MT)
inOrbSession = not na(time(timeframe.period, orbSession, "America/Denver"))
if inOrbSession and not boxSet
boxHigh := high
boxLow := low
boxSet := true
else if inOrbSession and boxSet
boxHigh := math.max(boxHigh, high)
boxLow := math.min(boxLow, low)
// Calculate midpoint
if not na(boxHigh) and not na(boxLow)
boxMid := (boxHigh + boxLow) / 2
// Reset daily
if ta.change(time('D'))
boxSet := false
tradeToday := false
breakoutUp := false
breakoutDown := false
boxHigh := na
boxLow := na
boxMid := na
// ========== DRAW BOX ==========
var line topLine = na
var line bottomLine = na
var line midLine = na
if boxSet and not na(boxHigh)
if na(topLine)
topLine := line.new(bar_index, boxHigh, bar_index + 1, boxHigh, color=color.green, width=2)
bottomLine := line.new(bar_index, boxLow, bar_index + 1, boxLow, color=color.red, width=2)
midLine := line.new(bar_index, boxMid, bar_index + 1, boxMid, color=color.gray, width=1, style=line.style_dashed)
else
line.set_x2(topLine, bar_index)
line.set_x2(bottomLine, bar_index)
line.set_x2(midLine, bar_index)
// ========== BREAKOUT DETECTION ==========
inTradeSession = not na(time(timeframe.period, tradeSession, "America/Denver"))
// Breakout = 1m close outside box
if boxSet and not na(boxHigh) and not breakoutUp and not breakoutDown
if close > boxHigh
breakoutUp := true
if close < boxLow
breakoutDown := true
// ========== MIDPOINT INVALIDATION (with re-setup) ==========
if breakoutUp and close < boxMid
breakoutUp := false // Allow re-setup
if breakoutDown and close > boxMid
breakoutDown := false // Allow re-setup
// ========== RETEST & ENTRY LOGIC ==========
longCondition = false
shortCondition = false
if boxSet and inTradeSession and not tradeToday
// LONG: breakout up, retest top or midpoint
if breakoutUp
if entryLevel == "Top/Bottom" and close <= boxHigh and close >= boxHigh - 0.25
longCondition := true
if entryLevel == "Midpoint" and close <= boxMid and close >= boxMid - 0.25
longCondition := true
// SHORT: breakout down, retest bottom or midpoint
if breakoutDown
if entryLevel == "Top/Bottom" and close >= boxLow and close <= boxLow + 0.25
shortCondition := true
if entryLevel == "Midpoint" and close >= boxMid and close <= boxMid + 0.25
shortCondition := true
// ========== EXECUTE TRADES ==========
if longCondition
strategy.entry("Long", strategy.long)
strategy.exit("TP/SL", "Long", stop=close - stopPoints, limit=close + tpPoints)
tradeToday := true
if shortCondition
strategy.entry("Short", strategy.short)
strategy.exit("TP/SL", "Short", stop=close + stopPoints, limit=close - tpPoints)
tradeToday := true
// ========== PLOT SIGNALS ==========
plotshape(longCondition, style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small, title="Long Entry")
plotshape(shortCondition, style=shape.triangledown, location=location.abovebar, color=color.red, size=size.small, title="Short Entry")
Pine Script®策略
[src] [uxo, @envyisntfake] accurate strike -> futures conversioni accidetnally clicked protected script and not open source the script lolololol
no trader should ever fear a tool that they rely on to be hidden unless its a niche concept
check out @envyisntfake discord / github, i used his convertor as a base, i only improved the porting to make this live, and added smoothing to make the conversions better rather than manually inputting it into his calculator
Pine Script®指標
Pine Script®指標
Pine Script®指標
Larry Williams Short-Term Swing (LWS)automated swing trading using larry williams
it identifies swing highs and swing lows while excluding volatility moves like outside or inside bars.
Can be used effectively by combining the indicator on 2 time frames and taking entry on smaller time frame when the signals allign
Pine Script®指標
Order Flow + Mean Reversion + Vol S/R + MTFW mean reversion script i got 100 percent on a new york open
Pine Script®指標
QuantumPips Session Trend StructureQuantumPips Session Trend Structure is an indicator built to help you read session structure and spot higher-quality breakout → retest opportunities when trend and momentum conditions agree.
It does three main things:
Maps sessions (Asia / London / New York) with live High/Low boxes
Adds trend direction using EMA bias (50/200 + optional slope)
Prints BUY/SELL labels only after a clean breakout + retest sequence, optionally filtered by volume, range expansion (ATR), and candle body strength
Educational tool only — not financial advice. Always manage risk.
What you’ll see on the chart
Session boxes (structure)
The indicator draws a box for each session and updates the session High/Low while the session is active.
Default settings (Timezone Europe/London):
Asia: 00:00–09:00
London: 08:00–17:00
New York: 13:00–22:00
Optional: vertical dotted lines at session starts.
EMA bias (direction)
Two EMAs are plotted:
EMA Fast (50)
EMA Slow (200)
Bias is:
Bullish: EMA50 above EMA200 (and optionally EMA50 rising)
Bearish: EMA50 below EMA200 (and optionally EMA50 falling)
This is designed to reduce counter-trend signals.
The core idea (simple)
Each major session often reacts to the previous session’s range.
This script uses that concept by selecting a reference range:
During London, reference = Asia High/Low
During New York, reference = London High/Low
During Asia (optional), reference = New York High/Low
The panel shows Ref Range, which is just:
Ref Range = Reference High − Reference Low
Signal logic: Breakout → Retest (with confluence)
A signal is only considered when you are inside a session you enabled (Asia/London/NY toggles).
BUY (Long)
Trend bias is Bullish
Price closes above the reference High (breakout)
Price returns to retest near the broken High (ATR tolerance)
Optional: retest candle must close back up (confirm-close)
Optional confirmations pass (volume / expansion / body)
SELL (Short)
Trend bias is Bearish
Price closes below the reference Low (breakout)
Price returns to retest near the broken Low (ATR tolerance)
Optional: retest candle must close back down (confirm-close)
Optional confirmations pass (volume / expansion / body)
This approach is meant to avoid “first-touch” entries and focus on structured moves.
Filters (optional, but useful)
Volume Spike Filter
Requires elevated participation:
volume ≥ SMA(volume) × multiplier
(Volume varies by market/data feed; use discretion on symbols where volume is not meaningful.)
Range Expansion Filter (ATR)
Requires a candle with enough “energy” to avoid weak breakouts:
(high − low) ≥ ATR × range multiplier
Strong Body Filter (optional)
Filters wick-heavy candles around key levels:
body % of candle range ≥ threshold
Side Panel (Top Right) — how to read it
Session
Shows the active session: Asia / London / New York / Off
EMA Bias
Shows: Bullish / Bearish / Neutral
Ref Range
Shows the size of the reference session range being used for the current session:
London uses Asia range
NY uses London range
Asia (optional) uses NY range
Volume
Shows status of the volume filter:
High = passes
Normal = fails
Off = filter disabled
Expansion
Shows status of the ATR expansion filter:
Yes = passes
No = fails
Off = filter disabled
Body
Shows status of the strong-body filter:
Yes = passes
No = fails
Off = filter disabled
Confluence Example
Recommended starting settings
If you want fewer, higher-quality setups:
Enable London + New York
Keep EMA bias ON
Volume filter ON (1.2–1.5×)
Expansion ON (0.8–1.0× ATR)
Body filter optional (0.55–0.70)
Confirm-close ON
If you want more signals:
Lower volume multiplier (1.1–1.2×)
Lower expansion (0.6–0.8× ATR)
Body filter OFF
Best timeframes (TF) to use
Best overall: 5m, 15m, 30m
Best Pairs for Sessions: EURUSD, GBPUSD, GBPJPY, USDJPY, XAUUSD
Pine Script®指標
Reversal Patterns ProReversal Patterns Pro tracks Engulfing Candles with Displacement. The price of the following candle does not open at the last close, which is often a signal of a trend reversal or a strong trend continuation accompanied by high delta. It shows Hammer Patterns only when price is overbought/oversold according to RSI Levels. The indicator visualizes strong Wick Rejections when RSI is overbought and oversold, which is historically important in order to trade Supply & Demand.
Pine Script®指標
MA Stack Trend Strategy (No Lookahead) + Trailing StopFirst indicator I did. Inspired by brunoss his indicator: SMA future scalper.
Let me know ur thoughts.
Pine Script®策略
MudHome - HTF Last X Candles (Range + Live Price Label)This indicator provides a live Higher Timeframe (HTF) context overlay on lower-timeframe charts by displaying the most recent HTF candles as a compact inset, alongside a dynamically updating price range.
It plots the last N HTF candles (up to 10), including the currently forming HTF candle, arranged left-to-right in standard chart order. This allows traders to visually track HTF structure, expansion, and volatility in real time while executing on lower timeframes.
Key Features
Displays the most recent HTF candles, including the live, still-forming candle
Candles are drawn to the right of price, preserving chart clarity
Automatically calculates and displays the HTF range high and low across the selected candles
Range labels update dynamically as the current HTF candle expands
Shows a live current-price label, updating tick-by-tick
Clean, minimal presentation — no cluttered OHLC labels
Fully configurable candle spacing, body width, colors, and offsets
Smart Validation
The indicator only renders when the selected timeframe is higher than the chart timeframe
If not, a clear prompt is shown: “Select a higher time frame”
Ideal Use Cases
HTF bias and context on LTF execution charts
Range expansion and contraction analysis
ICT-style dealing range, premium/discount framing
Session and structure awareness without switching timeframes
This tool is designed to act as a live HTF context box, keeping higher-timeframe structure visible at all times while you focus on execution.
Pine Script®指標
3+ Consecutive Inside Candles Detectorlotshape(signal, title="Inside Candle Sequence", style=shape.labeldown,
text="Inside 3+", location=location.abovebar, color=color.new(color.blue, 0), size=size.tiny)
Pine Script®指標
GBPUSD/EURUSD FVG Synchronizationsmt divergence between eurusd and gbpusd. with swing low detection. help traders execute trades with only these pairs
Pine Script®指標
TSX Sector ETF Overlay// --- Plot Data with Standard Colors ---
plot(xiu, title="TSX 60", color=color.white, linewidth=2)
plot(xfn, title="Financials", color=color.blue, linewidth=2)
plot(xeg, title="Energy", color=color.orange, linewidth=2)
plot(xma, title="Materials", color=color.yellow, linewidth=2)
plot(xgd, title="Gold Miners", color=color.yellow, linewidth=1)
plot(xit, title="Tech", color=color.purple, linewidth=2)
plot(xre, title="REITs", color=color.red, linewidth=2)
plot(xut, title="Utilities", color=color.green, linewidth=2)
plot(xst, title="Staples", color=color.teal, linewidth=2)
Pine Script®指標
FVG Detector - With Close Direction & Breakoutdetects fvg. sharp rejection and sweep. developed to help traders achieve success with close direction and breakout
Pine Script®指標
TX_Smart_Cross_Session_TrendFollowA Pine Script v5 strategy for Taiwan Index Futures (TX). Features macro pivot analysis, cross-session micro-structure (Chen Kuei concept), dynamic risk management, and smart trend-following logic.
Pine Script®策略
stelaraX - Market StructurestelaraX – Market Structure
stelaraX – Market Structure is a technical analysis indicator designed to visualize swing structure and trend transitions using pivot-based market structure logic. The script identifies swing highs and swing lows, classifies them into structure types, and highlights key events such as Break of Structure (BOS) and Change of Character (CHoCH).
The indicator is built to provide a clear, rule-based view of price structure across any market and timeframe.
For advanced AI-based chart analysis and automated structure interpretation, visit stelarax.com
Core logic
The script detects swing points using pivot highs and pivot lows with a user-defined swing length.
Swing highs are classified as:
* HH when a new swing high is higher than the previous swing high
* LH when a new swing high is lower than the previous swing high
Swing lows are classified as:
* HL when a new swing low is higher than the previous swing low
* LL when a new swing low is lower than the previous swing low
Structure points can be displayed with labels and connected by dashed structure lines.
BOS and CHoCH
Break of Structure is detected when price closes through the most recent swing level:
* bullish BOS when price crosses above the last swing high during a bullish trend
* bearish BOS when price crosses below the last swing low during a bearish trend
Change of Character is highlighted as a potential trend transition:
* bearish CHoCH when a lower high forms after a bullish trend
* bullish CHoCH when a higher low forms after a bearish trend
Both BOS and CHoCH can be enabled or disabled independently.
Visualization
The indicator can display:
* swing point labels for HH, HL, LH, and LL
* dashed structure lines between consecutive swing points
* BOS labels and horizontal BOS lines at the broken swing level
* optional background shading based on the detected trend state
Colors, label size, and line width are configurable.
Alerts
Alert conditions are available for:
* bullish break of structure
* bearish break of structure
* new higher high detection
* new lower low detection
Use case
This indicator is intended for:
* market structure mapping using swing highs and swing lows
* identifying BOS events for continuation confirmation
* spotting CHoCH for potential trend transitions
* trend bias visualization and structure-based analysis
For a fully automated AI-driven chart analysis solution, additional tools and insights are available at stelarax.com.
Disclaimer
This indicator is provided for educational and technical analysis purposes only and does not constitute financial advice or trading recommendations. All trading decisions and risk management remain the responsibility of the user.
Pine Script®指標






















