Indicador Pine Script®
Patrones de gráficos
Swing Failure Pattern [ SFP ] - FloAlgoThis indicator detects Swing Failure Patterns (SFP) — a Smart Money Concepts technique that identifies liquidity sweeps followed by a Change in State of Delivery (CISD), signaling potential price reversals.
How It Works
The script operates in three stages:
Liquidity Sweep Detection — Identifies when price briefly breaks above a pivot high or below a pivot low, sweeping resting liquidity beyond those levels.
CISD Confirmation — Validates the sweep by detecting a Change in State of Delivery: a candle close that reverses back through a key open level, confirming institutional rejection.
Signal Trigger — A bullish or bearish SFP signal is confirmed only when both the sweep and CISD occur within the defined patience window, reducing false positives significantly.
Exit System — 5-Layer Logic
Rather than relying on a fixed take profit, this script uses a dynamic multi-layer exit system designed to protect capital and lock in gains:
Initial Stop Loss — Set at the high/low of the signal candle for immediate invalidation
Trailing Stop — Tracks extreme price movement and trails by ATR × multiplier, activating after a minimum number of bars to avoid premature exits
Reversal Candle — Exits on an opposing engulfing candle once the trade is in motion
Timeout — Hard exit after a maximum number of bars
Trend Flip — Exits if CISD confirms a full trend reversal against the position
Visual Elements
Dashed lines marking swept pivot levels
Solid CISD level lines from origin to signal bar
Dotted stop loss projection lines
Dynamic trailing stop plotted as a step line
Bar coloring active while a signal is live
▲ / ▼ signal labels on the chart
Key Settings
ParameterDescriptionPivot Detection LengthSensitivity of pivot high/low detectionMax Pivot EdgeMaximum bar distance for a valid sweepPatienceMax bars between sweep and CISD for signal confirmationTrend Noise FilterTolerance ratio to filter weak CISD movesTrailing Stop MultiplierATR multiplier controlling trailing stop tightnessMin Bars Before TrailingGrace period before trailing stop activates.
Indicador Pine Script®
KYPRIOS INSTITUTIONAL AMD + FVG + OBKYPRIOS INSTITUTIONAL AMD + FVG PRO
Advanced institutional trading indicator designed for XAUUSD scalping and smart money analysis.
This tool combines:
* AMD Cycles (Accumulation → Manipulation → Distribution)
* ICT Fair Value Gaps (FVG)
* Smart Order Blocks (OB)
* Liquidity Sweeps
* CHOCH & BOS market structure
* HH / HL / LH / LL structure mapping
* Volume & HTF trend confirmation
* Displacement candle detection
* Session filtering for London & New York
The indicator is optimized for:
* XAUUSD 1M / 5M scalping
* Institutional price action
* Sniper reversals
* Liquidity grab setups
* Retracement entries into imbalance zones
Key Features:
* Detects smart money manipulation
* Filters weak FVGs using displacement + liquidity logic
* Identifies probable reversal zones
* Highlights mitigation areas where price may return before continuing
* Shows market structure shifts in real time
* Designed for high precision intraday trading
Best used with:
* London session
* New York session
* HTF bias confirmation
* Liquidity sweep reactions
Recommended Timeframes:
* 1 Minute
* 5 Minute
* 15 Minute
Recommended Markets:
* XAUUSD
* BTCUSD
* NAS100
* US30
* High volatility instruments
Built for traders who focus on:
institutional order flow, liquidity engineering, ICT concepts, and sniper entries.
Indicador Pine Script®
Indicador Pine Script®
Jasper Working OB StrategyPrice-action based Order Block strategy that identifies institutional-style supply and demand zones formed after displacement moves and uses them as potential reversal areas. It generates entries when price revisits these zones, confirms interaction, and then shows momentum-based continuation or reversal through simple breakout behavior.
Indicador Pine Script®
Lunar Momentum (Moon Phases)Moon Phases Market Indicator 🌙📈
This indicator tracks the phases of the moon and compares them to market behavior to help traders spot potential bullish and bearish momentum shifts. It’s based on the idea that market psychology moves in cycles — just like the moon.
How It Works
New Moon 🌑
Often signals a market reset or fresh momentum. Traders commonly watch this phase for potential bullish reversals, trend beginnings, or accumulation zones.
Waxing Moon 🌒🌓🌔
As the moon grows brighter, market momentum can begin building. This phase is often associated with increasing strength, confidence, and bullish continuation.
Full Moon 🌕
The market tends to reach emotional extremes during full moons. This can lead to increased volatility, profit-taking, trend exhaustion, or bearish reversals.
Waning Moon 🌖🌗🌘
As the moon fades, momentum may weaken. Traders often associate this phase with slowing trends, pullbacks, consolidation, or bearish pressure.
Why Traders Use It
This indicator is not meant to predict the future like magic — it’s designed to help visualize market cycles, trader emotion, and momentum timing in a simple way. Many traders believe human psychology and market behavior naturally move in repeating patterns, and the lunar cycle can sometimes align surprisingly well with those shifts.
Bullish vs Bearish Interpretation
🌑 New Moon = Potential Bullish Energy
🌕 Full Moon = Potential Bearish or Reversal Energy
🌒 Waxing phases = Growing momentum
🌘 Waning phases = Weakening momentum
Simple Explanation
Think of the moon like a market mood tracker:
When the moon is growing → the market often gains energy.
When the moon is full → emotions peak and reversals can happen.
When the moon fades → momentum can slow down.
This gives traders another layer of confirmation alongside price action, volume, support/resistance, and trend analysis.
Best Used For
Swing Trading
Crypto Markets
Forex
Indexes
Market Cycle Analysis
Identifying possible reversal zones
⚠️ This indicator works best when combined with technical analysis and risk management — not as a standalone buy or sell signal.
Indicador Pine Script®
Dual Wick Reversal / Consolidation Detectorreversal indicator that identify consolidation zones for reversals or pullbacks in a momentum trade
Indicador Pine Script®
Meridian Stochastic Regime Suite [JOAT]Meridian Stochastic Regime Suite
Introduction
Meridian Stochastic Regime Suite is an open-source adaptive oscillator built for traders who want more context than a standard stochastic line can provide. The script combines a centered stochastic engine, an adaptive response model, and a regime profile so the oscillator changes character as the market shifts between trend, compression, expansion, and balance.
The problem Meridian solves is signal quality. Standard oscillators often look clean, but they do not explain whether momentum is occurring inside a compressed market, an expanding breakout phase, or a stable trend. Meridian adds that context directly into the oscillator architecture so the same reading can be interpreted differently depending on the active regime profile.
Core Concepts
1. Centered stochastic architecture
Price is pre-smoothed first, then converted into a stochastic reading that is centered around 50 so directional pressure is easy to interpret:
smoothHigh = ta.ema(high, priceSmoothLen)
smoothLow = ta.ema(low, priceSmoothLen)
smoothClose = ta.ema(close, priceSmoothLen)
rawStoch = 100.0 * (smoothClose - ta.lowest(smoothLow, stochLen)) / stochRange
2. Adaptive response engine
The main oscillator does not use static smoothing alone. Its response speed and gain expand or contract based on the regime profile:
gainBias = gainBase + trendScore * 0.38 + expansionScore * 0.18 - compressionScore * 0.12
speedBias = responseBase + trendScore * 0.08 + expansionScore * 0.04
adaptiveOsc := adaptiveOsc + speedBias * (adaptiveSeed - adaptiveOsc )
This helps the oscillator respond differently in directional and compressed conditions.
3. Embedded regime scoring
Meridian computes four internal state scores:
Trend
Compression
Expansion
Balance
Those scores are derived from ATR behavior, path efficiency, and slope strength, then normalized into a regime profile shown in the dashboard.
4. Spread and signal layer
The script compares the adaptive oscillator to a slower signal line and visualizes the spread around the neutral axis. This gives a direct view of acceleration versus drag.
5. Institutional oscillator panel
The panel uses restrained zones, layered fills, and a top-right dashboard instead of loud markers. The result stays readable while still carrying multiple analytical dimensions.
Features
Centered stochastic core: Keeps the oscillator readable around a neutral midpoint
Adaptive response model: Gain and speed shift with the internal regime profile
Four-state regime map: Trend, Compression, Expansion, and Balance
Fast line and signal line: Shows momentum acceleration versus stabilization
Spread shading: Highlights when the adaptive oscillator is separating from the signal line
Regime dashboard: Displays state, confidence, adaptive reading, signal reading, and regime profile shares
Confirmed-bar flips: Internal state transitions are tracked on closed bars
Non-repainting design: Uses only current-timeframe data and no future references
Input Parameters
Stochastic Core:
Price Pre-Smoothing
Stochastic Length
Fast Smoothing
Adaptive Signal Smoothing
Regime Filter:
Regime Window
ATR Window
Base Oscillator Gain
Base Response Speed
Visual Output:
Show Adaptive Zones
Show Centered Fast Line
How to Use This Indicator
Step 1: Start with the regime
Read the dashboard first. Trend and Expansion regimes support directional interpretation. Compression and Balance call for more caution.
Step 2: Watch adaptive versus signal spread
When the adaptive line separates cleanly from the signal line, momentum is strengthening. When the spread compresses, the move is losing urgency.
Step 3: Use the centered fast line as timing context
The fast line helps show whether short-term momentum is leading or lagging the adaptive engine.
Step 4: Avoid isolated readings
Meridian is strongest when used alongside a structure or value-based tool rather than as a standalone trade trigger.
Indicator Limitations
Like all oscillators, Meridian can remain elevated or depressed during strong directional trends
Compression states may delay re-acceleration readings until volatility expands again
The regime profile is descriptive, not predictive
Originality Statement
Meridian Stochastic Regime Suite is original in how it embeds a four-state regime profile directly into the adaptive behavior of a centered stochastic engine. It is published because:
The oscillator response changes with internal market-state measurements instead of using only fixed smoothing
The script surfaces trend, compression, expansion, and balance as percentages inside the same panel
The panel and dashboard design turn regime context into an interpretable momentum framework rather than a generic stochastic clone
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to trade. Oscillator readings can remain extreme for extended periods, and regime classifications can shift as conditions evolve. Always use independent judgment and proper risk management.
Indicador Pine Script®
COMPLETE AUTO BOT (SANTOSH)यह indicator market trend को identify करके केवल strong confirmation के साथ entry signals देता है, जिससे fake signals कम होते हैं और decision making आसान होती है।
🔥 KEY FEATURES
EMA based trend direction filter
RSI momentum confirmation
MACD crossover validation
Clean BUY / SELL signals
Non-repeating signal system (state control)
Auto risk calculation (ATR based SL/TP logic)
Webhook-ready alerts for auto trading bots
Suitable for Intraday, Swing & Crypto trading
⚙️ HOW IT WORKS
Indicator पहले market trend identify करता है (bullish या bearish).
फिर EMA crossover + RSI + MACD confirmation के बाद ही final BUY या SELL signal generate करता है।
📊 USAGE
BUY signal → Uptrend continuation / breakout entry
SELL signal → Downtrend continuation / breakdown entry
Use with proper risk management for best results
⚠️ DISCLAIMER
यह indicator educational purpose के लिए है।
Financial markets में risk होता है, इसलिए proper risk management जरूरी है।
Indicador Pine Script®
Pin Bar Indicator By Anupam AnandHere's what the indicator does and how to use it:
Detection logic — a candle qualifies as a pin bar when: the primary wick ≥ 66% of the total range, the body ≤ 30%, and the opposite (nose) wick ≤ 25%. All three ratios are adjustable in Settings.
Location quality scoring — every pin bar gets scored from −2 to +3:
Good locations add +1 each: forming at a recent swing pivot, within a support/resistance zone, or after a pullback across the trend EMA. Bad locations subtract −1 each: inside a tight consolidation range, or forming against strong one-sided momentum candles. The score drives the star rating and label color (green for ★★★, orange for ★★☆/★☆☆, gray/hidden for weak).
What plots on the chart:
Triangle arrows below/above the candle body
Star-rated labels (★★★ / ★★☆ / ★☆☆ / ⚠)
Highlighted candle background in the signal colour
A thin EMA line for pullback context
Indicador Pine Script®
Eagle MomentumEagle Momentum of Stockedge application and its used during breakouts only and this is applicable for high momentum stocks of NSE
Indicador Pine Script®
bms11its my indicator that i made using confirmations i like to look for before getting into a trade
Indicador Pine Script®
Breakout and Retest Signals - FloAlgoThis indicator detects breakout and retest signals by identifying key pivot zones and validating price rejection through wick sweeps and volume analysis.
How It Works
The script operates in three stages:
Pivot Zone Detection — Identifies swing highs and lows, then constructs zones anchored to the candle body and wick that formed the pivot. Demand zones span from body top down to wick low; supply zones span from wick high down to body bottom.
Rejection Validation — Confirms a valid signal when price sweeps beyond the zone extreme (wick tip) and closes back through the zone body, indicating institutional liquidity capture.
Volume Confirmation — Uses lower timeframe volume delta and buy/sell ratio to validate signal strength, filtering weak rejections with insufficient conviction.
Key Advantages
No Repaint — Single-period pivot detection ensures signals fire on confirmed historical bars, eliminating repaint delay between alert and visual.
Fixed Width Zones — Zones do not grow indefinitely; they are drawn with fixed horizontal width and trimmed only on signal, keeping charts clean.
Range-Based Overlap Guard — Demand and supply zones cannot overlap; range-based checking prevents conflicting zones from occupying the same price area.
Professional Visuals — No text labels or arrow clutter; only shaded zones and volume ratio splits for clean, professional appearance.
Accurate Zone Geometry — Zones anchored to actual candle body and wick formations, not flat ATR bands.
Auto-Cleanup — Zones are automatically removed one bar after signal or on expiry, preventing chart clutter.
Seconds Chart Support — Volume timeframe input guarded to prevent errors on sub-minute charts.
No Signal Conflicts — Removed confirmation divisor that caused opposing signals on the same bar.
Zone Lifecycle
Unlike traditional indicators that grow zones indefinitely, this script uses a fixed-width approach:
Zones are drawn from the pivot candle to a fixed future bar (born + maxLife)
Upon signal, the zone right edge is trimmed to the signal bar
The zone remains visible for one bar after the signal, then is automatically removed
Expired zones without signals are cleanly purged to prevent chart clutter
Visual Elements
Shaded boxes marking demand (green) and supply (red) pivot zones
Volume ratio split boxes within zones showing buy/sell pressure balance
Dashed target projection lines from signal bars
Zone borders fade and thin out after signal confirmation
Key Settings
Swing Length — Sensitivity of pivot high/low detection
Max Bars Active — Fixed horizontal width of zones in bars
Min Bars Between — Minimum bars between consecutive signals
Max Zones Per Side — Maximum active zones per direction
Volume TF — Frame for volume delta analysis
Show Ratio Split — Display buy/sell volume ratio inside zones
Show TP Line — Display target projection lines
Indicador Pine Script®
20 / 200 SMA Strategy - This Pine Script strategy is a 20 SMA / 200 SMA trend-following strategy designed for back testing and potential bot automation.
The main idea is to identify market direction using the relationship between the 20 simple moving average and the 200 simple moving average. When the 20 SMA is above the 200 SMA, the strategy looks for buy opportunities. When the 20 SMA is below the 200 SMA, it looks for sell opportunities.
The script includes three entry modes:
Original Cross Entry waits for the 20 SMA to cross the 200 SMA, then looks for price to close on the correct side of the 20 SMA.
Trend Pullback Entry allows entries after the market is already trending. For buys, the 20 SMA must be above the 200 SMA and price must cross back above the 20 SMA. For sells, the 20 SMA must be below the 200 SMA and price must cross back below the 20 SMA.
Relaxed Testing Entry is a more flexible testing mode that enters when price is on the correct side of the 20 SMA while the 20 SMA is on the correct side of the 200 SMA. This mode is useful for confirming that the strategy is working and producing trades.
The default risk management uses a 100-point take profit. The default stop loss is placed behind the last opposing candle beyond the 200 SMA. For a buy setup, the stop is placed below the last bearish candle below the 200 SMA. For a sell setup, the stop is placed above the last bullish candle above the 200 SMA. The user can also choose a fixed-point stop loss or recent swing stop.
The strategy includes optional filters such as a 200 SMA slope filter, candle-color confirmation, and a distance filter to avoid entries that are too far from the 20 SMA. It also plots the 20 SMA, 200 SMA, buy/sell labels, debug markers, and stop-loss/take-profit lines on the chart.
Overall, this script is built to help traders test a simple moving-average trend strategy while giving them flexibility to adjust entries, stops, profit targets, and filters based on the market or timeframe they are trading.
Estrategia Pine Script®
Indicador Pine Script®
RRE SMA1
After 3 losses in a row → skip H08, H09, H10, H11 for rest of week
In loss weeks, the morning London session (8–11 IST) had 0–23% WR. In win weeks the same hours had 39–82% WR. When you're already losing, London morning makes it much worse.
2
Skip H18 completely — every week, not just loss weeks
H18 had 12% WR in loss weeks (−$110) and only 52% WR in win weeks (+$80). It is the single most dangerous hour. Removing H18 saves ~$50–80 in losing weeks at the cost of very little in winning weeks.
3
If Monday (skipped) or Tuesday first trade loses → treat week as caution mode
Tuesday losses dominated 6 of the 11 losing weeks. When Tuesday starts badly (first trade SL), reduce to 0.005 lot for that week or skip H08–H11.
4
Weekly loss cap: −$40
The worst week ever was −$40. If you hit −$40 in a week, stop all trading until Monday. You've never lost more than $40 in a week — don't let it happen now.
5
H17, H19, H20 are safe even in bad weeks
These 3 hours held 50%+ WR even during the 11 losing weeks. If you're in a rough patch, trade only these hours.
6
Thursday + Friday > Tuesday in tough markets
Thu/Fri PF was 1.36–1.53 even across the full dataset. Tuesday dragged most losing weeks. If a Tuesday is bad, reduce size on Thursday and come back full on Friday.
Indicador Pine Script®
VimalVery good ye bahut good hae //@version=5
strategy("Editable Range Breakout Strategy + Fibonacci Re-Entry",
overlay=true,
pyramiding=20,
initial_capital=100000)
//========================
// Inputs
//========================
rangeSession = input.session("0530-0545", "Range Time")
tz = input.string("Asia/Kolkata", "Timezone")
baseQty = input.float(1, "Base Quantity", step=1)
slPerc = input.float(50.0, "SL at Range %", step=0.1)
target1Perc = input.float(250.0, "Target 1 Range %", step=0.1)
target2Perc = input.float(450.0, "Target 2 Range %", step=0.1)
showLevels = input.bool(true, "Show Range Levels")
tradeLong = input.bool(true, "Enable Bullish Breakout Buy")
tradeShort = input.bool(true, "Enable Bearish Breakout Sell")
tradeMon = input.bool(true, "Trade Monday")
tradeTue = input.bool(true, "Trade Tuesday")
tradeWed = input.bool(true, "Trade Wednesday")
tradeThu = input.bool(true, "Trade Thursday")
tradeFri = input.bool(true, "Trade Friday")
tradeSat = input.bool(false, "Trade Saturday")
tradeSun = input.bool(false, "Trade Sunday")
//========================
// Session detection
//========================
inRangeSession = not na(time(timeframe.period, rangeSession, tz))
rangeStart = inRangeSession and not inRangeSession
rangeEnd = not inRangeSession and inRangeSession
//========================
// Variables
//========================
var float rangeHigh = na
var float rangeLow = na
var float rangeSize = na
var bool rangeReady = false
var bool longTp1Hit = false
var bool shortTp1Hit = false
//========================
// Fibonacci Counter
//========================
var int lossCount = 0
fibQty(x) =>
x == 0 ? 1 :
x == 1 ? 2 :
x == 2 ? 3 :
x == 3 ? 5 :
x == 4 ? 8 :
x == 5 ? 13 :
x == 6 ? 21 :
x == 7 ? 34 :
x == 8 ? 55 :
x == 9 ? 89 : 144
rawQty = baseQty * fibQty(lossCount)
roundedQty = math.round(rawQty)
currentQty = roundedQty % 2 != 0 ? roundedQty + 1 : roundedQty
//========================
// New Day Reset
//========================
newDay = dayofmonth != dayofmonth
if newDay
rangeHigh := na
rangeLow := na
rangeSize := na
rangeReady := false
longTp1Hit := false
shortTp1Hit := false
//========================
// Day filter
//========================
currentDay = dayofweek(time)
allowedDay =
(currentDay == dayofweek.monday and tradeMon) or
(currentDay == dayofweek.tuesday and tradeTue) or
(currentDay == dayofweek.wednesday and tradeWed) or
(currentDay == dayofweek.thursday and tradeThu) or
(currentDay == dayofweek.friday and tradeFri) or
(currentDay == dayofweek.saturday and tradeSat) or
(currentDay == dayofweek.sunday and tradeSun)
//========================
// Build Range
//========================
if rangeStart
rangeHigh := high
rangeLow := low
rangeReady := false
if inRangeSession
rangeHigh := math.max(nz(rangeHigh, high), high)
rangeLow := math.min(nz(rangeLow, low), low)
if rangeEnd
rangeSize := rangeHigh - rangeLow
rangeReady := rangeSize > 0
//========================
// Entry Conditions
//========================
canTrade = allowedDay and rangeReady and not inRangeSession and strategy.position_size == 0
longCondition =
tradeLong and
canTrade and
close > rangeHigh and
close <= rangeHigh
shortCondition =
tradeShort and
canTrade and
close < rangeLow and
close >= rangeLow
//========================
// Long Levels
//========================
longSLInitial = rangeLow + rangeSize * (slPerc / 100)
longTP1 = rangeLow + rangeSize * (target1Perc / 100)
longTP2 = rangeLow + rangeSize * (target2Perc / 100)
//========================
// Short Levels
//========================
shortSLInitial = rangeHigh - rangeSize * (slPerc / 100)
shortTP1 = rangeHigh - rangeSize * (target1Perc / 100)
shortTP2 = rangeHigh - rangeSize * (target2Perc / 100)
//========================
// Entries
//========================
if longCondition
strategy.entry("Long", strategy.long, qty=currentQty)
longTp1Hit := false
shortTp1Hit := false
if shortCondition
strategy.entry("Short", strategy.short, qty=currentQty)
shortTp1Hit := false
longTp1Hit := false
//========================
// TP1 Detection
//========================
if strategy.position_size > 0 and high >= longTP1
longTp1Hit := true
lossCount := 0
if strategy.position_size < 0 and low <= shortTP1
shortTp1Hit := true
lossCount := 0
//========================
// SL Detection
//========================
tradeClosed = strategy.closedtrades > strategy.closedtrades
lastTradeLoss =
tradeClosed and
strategy.closedtrades.profit(strategy.closedtrades - 1) < 0
if lastTradeLoss
lossCount += 1
//========================
// Reset TP Flags
//========================
if strategy.position_size == 0
longTp1Hit := false
shortTp1Hit := false
//========================
// Active Stoploss
//========================
entryPrice = strategy.position_avg_price
activeLongSL =
longTp1Hit ? entryPrice : longSLInitial
activeShortSL =
shortTp1Hit ? entryPrice : shortSLInitial
//========================
// Exit Orders
//========================
if strategy.position_size > 0
strategy.exit(
"L-TP1",
from_entry="Long",
stop=longSLInitial,
limit=longTP1,
qty_percent=50)
strategy.exit(
"L-TP2",
from_entry="Long",
stop=activeLongSL,
limit=longTP2,
qty_percent=100)
if strategy.position_size < 0
strategy.exit(
"S-TP1",
from_entry="Short",
stop=shortSLInitial,
limit=shortTP1,
qty_percent=50)
strategy.exit(
"S-TP2",
from_entry="Short",
stop=activeShortSL,
limit=shortTP2,
qty_percent=100)
//========================
// Plotting
//========================
plot(showLevels and rangeReady ? rangeHigh : na,
"Range High",
color=color.green,
linewidth=2,
style=plot.style_linebr)
plot(showLevels and rangeReady ? rangeLow : na,
"Range Low",
color=color.red,
linewidth=2,
style=plot.style_linebr)
plot(showLevels and strategy.position_size > 0 ? activeLongSL : na,
"Long SL",
color=color.orange,
linewidth=2)
plot(showLevels and strategy.position_size > 0 ? longTP1 : na,
"Long TP1",
color=color.blue,
linewidth=2)
plot(showLevels and strategy.position_size > 0 ? longTP2 : na,
"Long TP2",
color=color.purple,
linewidth=2)
plot(showLevels and strategy.position_size < 0 ? activeShortSL : na,
"Short SL",
color=color.orange,
linewidth=2)
plot(showLevels and strategy.position_size < 0 ? shortTP1 : na,
"Short TP1",
color=color.blue,
linewidth=2)
plot(showLevels and strategy.position_size < 0 ? shortTP2 : na,
"Short TP2",
color=color.purple,
linewidth=2)
plot(showLevels and strategy.position_size != 0 ? entryPrice : na,
"Entry Price",
color=color.white,
linewidth=1)
bgcolor(inRangeSession ? color.new(color.yellow, 85) : na)
//========================
// Signals
//========================
plotshape(longCondition,
title="BUY",
style=shape.labelup,
location=location.belowbar,
color=color.green,
text="BUY",
textcolor=color.white)
plotshape(shortCondition,
title="SELL",
style=shape.labeldown,
location=location.abovebar,
color=color.red,
text="SELL",
textcolor=color.white)
//========================
// Qty Label
//========================
var label qtyLabel = na
if barstate.islast
label.delete(qtyLabel)
qtyLabel := label.new(
bar_index,
high,
"Next Qty: " + str.tostring(currentQty) +
" Loss Count: " + str.tostring(lossCount),
style=label.style_label_down,
color=color.blue,
textcolor=color.white)
Estrategia Pine Script®
ALPHA S+ Structure Shift EngineALPHA S+ Structure Shift Engine
ALPHA S+ Structure Shift Engine is a market structure analysis tool designed to help traders identify swing highs, swing lows, Break of Structure, Change of Character, and active support / resistance levels directly on the price chart.
This indicator detects meaningful pivot highs and pivot lows, tracks the active market structure, and marks important structural events such as BOS and CHOCH. It also provides an on-chart structure trend panel to help traders quickly understand whether the current structure is bullish, bearish, or neutral.
Key Features
• Swing High and Swing Low detection
• Active support and resistance structure lines
• Break of Structure detection
• Change of Character detection
• Bullish / bearish structure trend tracking
• Optional structure trend panel
• ATR-based pivot filtering
• Break buffer and candle body confirmation
• Range filter for break quality
• CHOCH filtering with structure height, recent range, cooldown, and EMA momentum
• Historical structure marks management
• Clean overlay design for market structure reading
Structure Concepts
• SH: Swing High
• SL: Swing Low
• BOS: Break of Structure, showing continuation in the current structural direction
• CHOCH: Change of Character, showing a possible shift from the previous structure direction
• Bullish Structure: Price structure is breaking higher
• Bearish Structure: Price structure is breaking lower
• Neutral Structure: No confirmed structure direction yet
How to Use
Use this indicator to understand whether the market is continuing its current structure or beginning to shift direction.
When bullish BOS appears, the market may be continuing a bullish structure.
When bearish BOS appears, the market may be continuing a bearish structure.
When CHOCH appears, the market may be showing a potential structural shift and should be interpreted with trend, volume, and higher-timeframe confirmation.
Active structure lines can be used as reference levels for possible reaction, breakout, or retest areas.
This indicator can be used as:
• A market structure analysis tool
• A BOS / CHOCH detection tool
• A swing high / swing low viewer
• A structural support and resistance reference
• A trend-shift confirmation layer
• A companion indicator for ALPHA S+ chart analysis
Recommended Usage
This indicator is best used together with volume, VWAP, moving averages, RSI, ADX, support and resistance, and higher-timeframe confirmation. It is not designed to be used as a standalone buy/sell system.
Notes
This indicator does not provide financial advice, guaranteed signals, or guaranteed results. It is a technical analysis tool intended to support discretionary chart analysis.
━━━━━━━━━━━━━━━━━━━━━━
ALPHA S+ Structure Shift Engine
ALPHA S+ Structure Shift Engine은 차트 위에서 스윙 고점, 스윙 저점, BOS, CHOCH, 활성 지지·저항 구조선을 확인할 수 있도록 설계된 시장 구조 분석 보조지표입니다.
이 지표는 의미 있는 피벗 고점과 피벗 저점을 감지하고, 현재 시장 구조를 추적하며, BOS와 CHOCH 같은 주요 구조 이벤트를 표시합니다. 또한 차트 위에 구조 추세 패널을 제공하여 현재 구조가 상승, 하락, 중립 중 어디에 가까운지 빠르게 확인할 수 있습니다.
주요 기능
• 스윙 고점 / 스윙 저점 감지
• 활성 지지·저항 구조선 표시
• BOS 감지
• CHOCH 감지
• 상승 / 하락 시장 구조 추적
• 선택 가능한 구조 추세 패널
• ATR 기반 피벗 필터링
• 돌파 버퍼 및 캔들 몸통 확인 로직
• 돌파 품질 확인을 위한 Range 필터
• 구조 높이, 최근 변동폭, 쿨다운, EMA 모멘텀 기반 CHOCH 필터
• 과거 구조 마크 관리
• 시장 구조 해석에 집중할 수 있는 깔끔한 오버레이 디자인
구조 개념
• SH: 스윙 고점
• SL: 스윙 저점
• BOS: 기존 구조 방향으로 이어지는 구조 돌파
• CHOCH: 이전 구조 방향이 바뀔 가능성을 보여주는 구조 전환 신호
• Bullish Structure: 가격 구조가 상방으로 돌파되는 상태
• Bearish Structure: 가격 구조가 하방으로 돌파되는 상태
• Neutral Structure: 아직 명확한 구조 방향이 확정되지 않은 상태
사용 방법
이 지표는 현재 시장이 기존 구조를 이어가는지, 또는 구조 전환을 시도하는지를 확인하는 데 활용할 수 있습니다.
상승 BOS가 나타나면 시장이 상승 구조를 이어갈 가능성을 참고할 수 있습니다.
하락 BOS가 나타나면 시장이 하락 구조를 이어갈 가능성을 참고할 수 있습니다.
CHOCH가 나타나면 기존 구조가 전환될 가능성이 있으므로, 추세, 거래량, 상위 시간봉 흐름과 함께 확인하는 것이 좋습니다.
활성 구조선은 가격 반응, 돌파, 리테스트 가능 구간을 확인하는 기준선으로 활용할 수 있습니다.
이 지표는 다음과 같은 용도로 활용할 수 있습니다.
• 시장 구조 분석
• BOS / CHOCH 감지
• 스윙 고점 / 스윙 저점 확인
• 구조적 지지·저항 기준선 확인
• 추세 전환 확인 보조 도구
• ALPHA S+ 차트 분석을 보조하는 보조지표
권장 사용 방식
이 지표는 거래량, VWAP, 이동평균선, RSI, ADX, 지지·저항, 상위 시간봉 흐름과 함께 사용할 때 더 효과적입니다. 단독 매수·매도 신호 시스템이 아니라, 차트 해석을 보조하는 기술적 분석 도구로 사용하는 것을 권장합니다.
유의사항
본 지표는 투자 조언, 확정 신호, 수익 보장을 제공하지 않습니다. 사용자의 재량적 차트 분석을 돕기 위한 기술적 분석 도구입니다.
Indicador Pine Script®
Liquidity Swings [ Zero Lag ] - FloAlgoThis indicator identifies and tracks liquidity pools at swing highs and lows — a key Smart Money Concepts tool for visualizing institutional order flow and potential reversal zones.
How It Works
The script operates in three stages:
Pivot Detection — Confirmed swing highs and lows are identified using a lookback period, establishing the outer boundaries of resting liquidity pools.
Zone Tracking — For each pivot, the script counts how many subsequent bars trade through the liquidity zone (wick tip to body edge) and accumulates the total volume of those touches, revealing market interest at each level.
Cross Event — When price closes beyond a pivot's extreme, the level is marked as "consumed" — liquidity has been taken and the level becomes a dashed historical reference rather than an active trading zone.
Visual Elements
Solid horizontal lines extending from pivot levels to current price
Semi-transparent zone boxes spanning from wick tip to body edge
Dashed lines marking levels where liquidity has been consumed
Volume/count labels pinned at pivot bars showing accumulated activity
Color-coded zones: red for supply (highs), green for demand (lows)
Key Settings
Pivot Lookback — Sensitivity of pivot high/low detection
Swing Area — Zone definition: Wick Tip to body edge, or Full Range (wick to opposite wick)
Filter Areas By — Display threshold metric: Count (number of touches) or Volume (total volume)
Filter Value — Minimum threshold — zones only appear when activity exceeds this value
Swing High/Low — Toggle visibility of supply or demand zones
Label Size — Size of volume/count labels displayed on chart
Indicador Pine Script®
Aurelian Auction Ledger [JOAT]Aurelian Auction Ledger
Introduction
Aurelian Auction Ledger is an open-source range and auction analysis overlay designed to identify compressive trade zones, map their internal value structure, and show how price behaves when it tests the edges of that ledger. The script builds a live range shell, calculates a point of control and value area, tracks sweep events, and presents the active auction state in a top-right dashboard.
The problem Aurelian solves is hidden range structure. Consolidation zones are often treated as simple rectangles, but not all ranges are equal. Some are balanced, some lean toward accumulation, some toward rejection, and many fail through one-sided sweeps before resolving. Aurelian turns that internal auction structure into something visible.
Core Concepts
1. Compression-based ledger build
The script measures whether recent bars are tight enough in ATR terms, efficient enough in body structure, and balanced enough in directional pressure to qualify as a live auction ledger.
2. Range shell and internal value area
When a ledger is active, the script draws:
The outer ledger shell
The internal value area
The point of control
This separates broad range boundaries from the price zone where most business is actually being done.
3. Right-side auction profile
Volume is accumulated across profile rows inside the active ledger so the script can identify the highest-volume row and estimate the value area around it.
4. Sweep tracking
Upper and lower sweep events are tracked only on confirmed bars. This helps distinguish clean acceptance from failed range probes.
5. Ledger tilt
The indicator maintains a directional tilt metric so the range shell is not displayed as neutral by default. If the auction begins leaning toward acceptance or rejection, the color balance reflects that change.
Features
Compression-driven range detection: Searches for structured auction zones rather than generic boxes
Live range shell: Displays the active ledger high, low, and midpoint
Point of control and value area: Maps where the auction is most concentrated
Right-side profile: Extends the auction structure visually beyond the current bar
Sweep detection: Tracks confirmed probes beyond the ledger edges
Auction tilt readout: Shows whether the range is leaning toward acceptance or rejection
Top-right dashboard: Reports mode, compression, width, POC, value area, sweeps, and tilt
Non-repainting event logic: Sweep and breakout conditions are confirmed on bar close
Input Parameters
Ledger Core:
ATR Length
Ledger Build Bars
Compression Ceiling
Body Efficiency Ceiling
Directional Balance Ceiling
Breakout Buffer
Auction Profile:
Profile Rows
Profile Width
Value Area Coverage
Visuals:
Show Range Shell
Show Right-Side Profile
Show Sweep Marks
Tint Auction Bars
Show Dashboard
How to Use This Indicator
Step 1: Confirm that a ledger is live
Check the dashboard mode first. If the ledger is not active, the script is still scanning for a qualified auction structure.
Step 2: Watch the POC and value area
These levels show where the auction is concentrated and whether price is rotating inside value or challenging the edges.
Step 3: Track sweeps versus acceptance
Confirmed sweep events can mark failed probes. If price repeatedly sweeps one side and returns, the ledger is revealing where excess is being rejected.
Step 4: Use tilt as context, not prediction
Ledger tilt helps interpret which side has more pressure, but the actual resolution still depends on whether price ultimately accepts outside the shell.
Indicator Limitations
The script is designed for structured ranges and will naturally stand down during broad directional moves
Volume distribution inside a candle is approximated using row allocation rather than true intrabar order flow
A qualified ledger can still break without first producing a sweep event
Originality Statement
Aurelian Auction Ledger is original in how it combines a compression-qualified range state, an internal profile-derived value area, sweep tracking, and directional tilt into a single clean overlay. It is published because:
The script distinguishes a structured auction ledger from a generic consolidation rectangle
It combines shell, POC, value area, and sweep tracking in one coherent range workflow
The tilt metric provides additional auction context without cluttering the chart with heavy labels
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice and does not guarantee future market behavior. Range structures can fail abruptly, and volume-based value estimates are still interpretations of historical trading activity. Always use independent judgment and proper risk management.
Indicador Pine Script®
[3Commas] Gold Vault Long Gold Vault Long
🔷 What it does:
This strategy executes a long-only Dollar-Cost-Averaging approach on tokenized gold, designed for traders who want structured accumulation exposure to precious metals through perpetual or spot tokens like XAUT. It opens base orders continuously when no active deal exists, layers a conservative 3-step safety order ladder at constant 2% intervals during price drawdowns, and exits when the position reaches a 1.5% profit from the average entry. The design philosophy is deliberately simple: no signal-based entries, no RSI exit gates, no stop loss — just clean DCA mechanics tuned for the lower-volatility profile of gold versus crypto-native pairs.
- Base Order entry: nonstop — opens immediately when no active deal exists
- Safety Order ladder: 3 levels at constant 2% intervals (cumulative −2% / −4% / −6% from base)
- Volume scale: 1.05× per SO (9.00 / 9.45 / 9.92 USDT)
- Exit: pure 1.5% take-profit from average entry (no signal gates)
- Spot trading, no leverage, no stop loss
🔷 Who is it for:
Traders seeking structured exposure to tokenized gold and precious metals through DCA logic.
Risk-conservative participants who want low maximum position size relative to capital (≈ 8% in default config).
Bot operators who automate execution through webhook integration with a DCA Bot.
Long-term accumulators who prefer steady, predictable returns over leveraged volatility plays.
🔷 How does it work:
Long Entry: A base order opens whenever no active deal exists and the bar is confirmed within the configured window. There is no signal-based entry filter — the strategy reloads continuously, treating each new deal as a fresh DCA cycle.
Short Entry: Not used — strategy is long-only by design.
Exit Management: The full position closes when price reaches Average Entry × (1 + 1.5%). The strategy carries no stop loss; invalidation is replaced by the depth of the safety order ladder (6% cumulative drawdown coverage). Gold's structurally lower volatility versus crypto pairs means the 1.5% take-profit target is hit relatively frequently during normal range trading, producing a high-frequency low-amplitude P&L profile.
🔷 Why it's unique:
Tokenized gold focus — most DCA strategies target crypto-native pairs with high volatility. This strategy specifically calibrates for the lower-volatility profile of tokenized precious metals like XAUT, with conservative 2% SO steps and a tight 1.5% take-profit. Gold's structurally bullish drift over multi-year horizons combined with intraday liquidity makes it an ideal DCA candidate.
Simplicity by design — no RSI gates, no trend filters, no signal stacks. Pure DCA mechanics. The strategy depends only on price reaching the average × 1.015 to close, which makes its behavior fully predictable and easy to reason about. Easy to backtest, easy to explain, easy to monitor.
Bot Integration — entry and exit alerts ship with webhook-ready JSON payloads, enabling direct trigger of a connected DCA Bot. Bot ID, Email Token, and pair label are exposed as inputs.
🔷 Considerations Before Using the Indicator:
Market & Timeframe: Designed for 2-hour chart on tokenized gold instruments. Best suited for XAUT/USDT and similar precious metals tokens with sustained bullish drift and regular intraday range. Lower timeframes generate more trade frequency but also more commission drag; higher timeframes produce slower-cycling deals with longer holding periods. The default 2h aligns with the reference 3Commas backtest.
Limitations: The strategy carries no stop loss. In extreme drawdowns extending beyond the deepest safety order (−6% from base), the position holds unrealized loss until either the average is recovered or the deal is manually closed. Gold's historical drawdowns occasionally exceed 6% during macro stress events — pair this strategy with awareness of gold's macro regime context. Without a regime filter, the strategy will continue opening new deals during downtrends.
Backtesting & Demo Testing: The reference results were generated on a 1-year window covering March 2025 — March 2026 for tokenized gold. Performance during different gold market regimes (bear markets, sustained ranges, geopolitical stress periods) may differ significantly. Always validate on extended history and re-test across different gold rate environments before deploying real capital. Demo-trade for at least one month before live deployment. Past performance is not indicative of future results.
Parameter Adjustments: Commission defaults to 0.1% (Bybit spot taker). Adjust for your venue — Binance Spot ~0.10%, OKX Spot ~0.08%, Kraken Spot ~0.40%. The 2% SO step and 1.5% TP are tuned for gold's typical intraday range; for higher-volatility precious metals tokens, widen both proportionally.
🔷 STRATEGY PROPERTIES
Symbol: BYBIT:XAUTUSDT (Tether Gold / Tether spot). Strategy is generic — works on any tokenized precious metal or stable-volatility instrument.
Timeframe: 2h chart (reference; lower TFs increase trade frequency).
Test Period: April 11, 2025 — May 16, 2026 (≈ 13 months).
Initial Capital: 500 USDT.
Order Size per Trade: Base Order 12 USDT, Safety Orders 9.00 / 9.45 / 9.92 USDT (volume coef 1.05). Maximum cumulative position notional ≈ 40.37 USDT per deal — ≈ 8% of capital, very conservative envelope.
Commission: 0.1% taker (Bybit spot reference).
Slippage: 2 ticks — typical taker execution on liquid spot pairs.
Margin for Long and Short Positions: 100% (1× leverage assumed; no margin amplification).
Indicator Settings: Default Configuration.
Base Order Volume: 12 USDT
Safety Order Volume: 9.0 USDT
Max Safety Orders: 3
Price Step (1st SO): 2.0%
Deviation Step Multiplier: 1.0 (constant 2% step)
Order Size Multiplier: 1.05
Take Profit: 1.5% from average entry (pure %-TP)
Strategy: Long Only.
🔷 STRATEGY RESULTS
⚠️ Remember, past results do not guarantee future performance.
Net Profit: +4.66 USDT (+0.93%)
Max Drawdown: 8.64 USDT (1.69%)
Total Closed Trades: 82
Percent Profitable: 80.49% (66 / 82)
Profit Factor: 6.15
Average Trade:
Average # Bars in Trades:
Reference backtest run on BYBIT:XAUTUSDT (Spot, 2h chart), Apr 11 2025 — May 16 2026. The high Profit Factor (6.15) reflects gold's structurally bullish drift during the test window combined with low intraday volatility — the ideal regime for a conservative DCA framework with no stop loss. The 80.49% win rate and 1.69% max drawdown demonstrate the strategy's low-risk profile on tokenized gold. Re-test on your own venue with venue-specific commission before live deployment.
🔷 How to Use It:
🔸 Adjust Settings: Set Base Order and Safety Order volumes proportional to your account size. The default 12 / 9-USDT structure is calibrated for a 500-USDT test account with maximum 8% capital deployment per deal; scale linearly to your equity. The 2% SO step and 1.5% TP are tuned for gold's typical intraday range — widen both for higher-volatility instruments.
🔸 Results Review: Verify Maximum Drawdown stays within your personal risk budget. The strategy is configured for a conservative per-deal risk envelope (max position ≈ 8% of capital), but extended history may shift this profile. Re-test on your own venue using venue-specific commission. The conservative SO ladder (6% cumulative drawdown coverage) means deep gold drawdowns can leave positions underwater for extended periods — plan for this scenario.
🔸 Create alerts to trigger the DCA Bot: Two alert messages are exposed by the strategy — "Deal Start" fires on each new base order, and "Deal Close" fires when the 1.5% take-profit target is hit. Configure both alerts in TradingView with the webhook URL pointing to your DCA Bot's signal endpoint. Once configured, the strategy publishes the signal and the bot handles execution on the exchange autonomously.
🔷 INDICATOR SETTINGS
Base Order Volume (USDT) — Notional value of the initial entry per cycle.
Safety Order Volume (USDT) — Notional value of each averaging-down order (first SO).
Max Safety Orders — Total number of averaging steps available per deal.
Price Step % (1st SO from base) — Percentage deviation from base price for the first safety order.
Deviation Step Multiplier — Multiplier applied to each successive deviation step (default 1.0 = constant step).
Order Size Multiplier — Size multiplier applied to each successive safety order (default 1.05 = 5% per step).
Take Profit % (from avg entry) — Profit target percentage measured from average entry price.
Limit by Date Range — Constrain backtest to a specific date window.
Stats card / Watermark — Display layer controls for on-chart backtest summary and branding.
Webhook — Bot ID, Email Token, and Pair label for DCA Bot signal routing.
👨🏻💻💭 We hope this tool helps enhance your trading. Your feedback is invaluable, so feel free to share any suggestions for improvements or new features you'd like to see implemented.
__
The information and publications within the 3Commas TradingView account are not meant to be and do not constitute financial, investment, trading, or other types of advice or recommendations supplied or endorsed by 3Commas and any of the parties acting on behalf of 3Commas, including its employees, contractors, ambassadors, etc.
Estrategia Pine Script®
bms11this is an indicator i created using different confirmations that i like to look for before entering a trade
Indicador Pine Script®
bmsicqtcthis indicator i created myself hopefully it helps you out and you like it. i like it because it uses the confirmations from multiple sources
Indicador Pine Script®






















