james S/R Trend Pro v6//@version=6
strategy("james S/R Trend Pro v6", overlay=true,
initial_capital=10000,
default_qty_type=strategy.percent_of_equity,
default_qty_value=100,
commission_type=strategy.commission.percent,
commission_value=0.05,
slippage=1)
// --- 사용자 입력 (Inputs) ---
group_date = "1. 백테스트 기간"
start_date = input.time(timestamp("2024-01-01 00:00:00"), "시작일", group=group_date)
end_date = input.time(timestamp("2026-12-31 23:59:59"), "종료일", group=group_date)
is_within_date = time >= start_date and time <= end_date
group_main = "2. 지표 설정 (S/R & Trend)"
lookback_sr = input.int(15, "지지/저항 탐색 기간", minval=5, group=group_main)
atr_period = input.int(14, "ATR 기간", group=group_main)
atr_mult = input.float(3.5, "추세선 민감도", step=0.1, group=group_main)
group_color = "3. 다크모드 색상 설정"
trend_up_color = input.color(color.rgb(200, 200, 200), "상승 추세선 (밝은 회색)", group=group_color)
trend_down_color = input.color(color.rgb(255, 255, 255), "하락 추세선 (흰색)", group=group_color)
res_color = input.color(#ff1100, "저항선 (네온 레드)", group=group_color)
sup_color = input.color(#00e1ff, "지지선 (네온 사이언)", group=group_color)
// --- 데이터 처리 (Calculations) ---
// 1. 추세선 (검은색 배경용 고대비 설정)
= ta.supertrend(atr_mult, atr_period)
// 2. 지지/저항선 (피벗 기반)
ph = ta.pivothigh(high, lookback_sr, lookback_sr)
pl = ta.pivotlow(low, lookback_sr, lookback_sr)
var float res_line = na
var float sup_line = na
if not na(ph)
res_line := high
if not na(pl)
sup_line := low
// --- 전략 로직 (Condition) ---
long_condition = direction < 0 and ta.crossover(close, sup_line)
short_condition = direction > 0 and ta.crossunder(close, res_line)
// --- 주문 실행 (Execution) ---
if is_within_date
if long_condition
strategy.entry("Long", strategy.long, comment="BUY")
if short_condition
strategy.entry("Short", strategy.short, comment="SHORT")
// 청산 로직
if strategy.position_size > 0
strategy.exit("TP-L", "Long", limit=res_line, qty_percent=50, comment="분할익절")
if ta.crossunder(close, trend_line)
strategy.close("Long", comment="추세이탈")
if strategy.position_size < 0
strategy.exit("TP-S", "Short", limit=sup_line, qty_percent=50, comment="분할익절")
if ta.crossover(close, trend_line)
strategy.close("Short", comment="추세이탈")
// --- 시각화 (Visualization - 다크 모드 최적화) ---
// 1. 추세선: 검은 배경에서 잘 보이도록 하얀색/회색 계열 사용
plot(trend_line, color=direction < 0 ? trend_up_color : trend_down_color, linewidth=2, title="Trend Line")
// 2. 지지/저항선: 네온 컬러로 시인성 극대화
plot(res_line, color=color.new(res_color, 0), style=plot.style_linebr, linewidth=2, title="Resistance")
plot(sup_line, color=color.new(sup_color, 0), style=plot.style_linebr, linewidth=2, title="Support")
// 3. 진입 시그널 라벨
plotshape(long_condition, style=shape.triangleup, location=location.belowbar, color=sup_color, size=size.small, title="Buy Label")
plotshape(short_condition, style=shape.triangledown, location=location.abovebar, color=res_color, size=size.small, title="Short Label")
// 4. 추세 배경색 (매우 옅게 설정하여 캔들을 방해하지 않음)
fill_color = direction < 0 ? color.new(sup_color, 90) : color.new(res_color, 90)
fill(plot(trend_line), plot(close), color=fill_color, title="Trend Fill")
指標和策略
9 EMA Pullback Zones + VWAP Its education script combining the 9 ema and Vwap good for SPX 5 min scalping...
Not a finical advice.
MAGIC TRADER RANGE BOX 2.0//@version=6
indicator("MAGIC TRADER RANGE BOX 2.0", overlay=false
// ===== PARAMÈTRES =====
rangeLen = input.int(20, "Longueur Range H1", minval=5)
atrLen = input.int(14, "ATR H1")
atrFactor = input.float(1.0, "Facteur ATR", step=0.1)
maLen = input.int(20, "MA H1")
slopeLimit = input.float(0.05, "Tolérance direction", step=0.01)
// 🎨 STYLE BOÎTE
boxColor = input.color(color.gray, "Couleur de la boîte")
opacity = input.int(85, "Opacité (0-100)", minval=0, maxval=100)
borderColor = input.color(color.gray, "Couleur du contour")
// ===== DONNÉES H1 =====
= request.security(
syminfo.tickerid,
"60",
)
h1HH = request.security(syminfo.tickerid, "60", ta.highest(high, rangeLen))
h1LL = request.security(syminfo.tickerid, "60", ta.lowest(low, rangeLen))
h1ATR = request.security(syminfo.tickerid, "60", ta.atr(atrLen))
h1MA = request.security(syminfo.tickerid, "60", ta.sma(close, maLen))
h1Slope = math.abs(h1MA - h1MA )
// ===== CONDITIONS RANGE H1 =====
lowVol = (h1HH - h1LL) < h1ATR * atrFactor
noDir = h1Slope < slopeLimit
isH1Range = lowVol and noDir
// ===== BOÎTE =====
var box h1Box = na
if isH1Range and na(h1Box)
h1Box := box.new(
left = bar_index,
right = bar_index,
top = h1HH,
bottom = h1LL,
bgcolor = color.new(boxColor, opacity),
border_color = borderColor
)
if isH1Range and not na(h1Box)
box.set_right(h1Box, bar_index)
box.set_top(h1Box, h1HH)
box.set_bottom(h1Box, h1LL)
if not isH1Range and not na(h1Box)
h1Box := na
// ===== ALERTES =====
alertcondition(isH1Range,
title="Range H1 détecté",
message="📦 RANGE H1 détecté sur {{ticker}}")
alertcondition(close > h1HH,
title="Breakout H1 Haussier",
message="🚀 Breakout HAUSSIER du range H1 sur {{ticker}}")
alertcondition(close < h1LL,
title="Breakout H1 Baissier",
message="🔻 Breakout BAISSIER du range H1 sur {{ticker}}")
HTF Long/Short 1hr This is one of my latest algo it helps with your long and short bias for GC on the 1HR HTF
Structure + MTF + Failed 2U/2D + PDH/PDL Sweeps (Toolkit)How this behaves (so you are not guessing)
1) Liquidity sweeps (PDH/PDL)
PDH Sweep: price trades above yesterday’s high, then (by default) closes back below PDH
PDL Sweep: price trades below yesterday’s low, then closes back above PDL
You can allow wick-only sweeps via the input if you want more signals (and more noise, because humans love noise).
2) Failed 2U / Failed 2D
Failed 2U: candle takes prior high but closes back below it (failure)
Failed 2D: candle takes prior low but closes back above it
If you enable confirmation, the script triggers the “confirmed” entry only when the next candle breaks the fail candle in the intended direction.
3) FTFC strength meter (0–3)
Uses 3 higher timeframes you pick (defaults 15, 60, 240).
Strength = how many of those TF candles are bullish or bearish.
“Aligned” means 2 or 3 agree.
4) Consolidation filter
Flags consolidation when:
You have an inside-bar streak (default 2+) and/or
ATR is compressed vs its own SMA (default threshold 0.80)
Then it can block entries if you enable “Avoid entries during consolidation”.
5) “Setup Ready” alert
Triggers before entries when:
Sweep/rejection context exists (PDH/PDL)
Structure signal is forming (failed or reversal pattern)
Consolidation filter allows it
That’s your “stop chasing every candle” mechanism.
Bullish Diamond (Current TF)To ensure the Blue Diamond only appears based on the current timeframe's bullish momentum and ignores any signals during a downtrend, we will use a logic that checks two things:
Trend Filter: Is the current price above a major Moving Average (the 200-period)?
Crossover: Did a fast Moving Average just cross above a slow one on the specific bars you are looking at?
Trend-Filtered Blue DiamondTo make sure the Blue Diamond only appears during a confirmed uptrend and stays hidden during a downtrend, we need to add a "Trend Filter."
The best way to do this is by using a long-term Moving Average (like the 200 EMA). This ensures that even if you get a small bullish crossover, the diamond won't show up unless the overall market direction is positive.
Supply & Demand Sniper369Indicator Philosophy: The Convergence of Structure and Liquidity
The Supply & Demand Sniper369 is not just another signal generator; it is a professional-grade execution framework built on the principles of Institutional Order Flow and Liquidity Engineering. While standard indicators often lag or provide signals in "no-man's land," this script is designed to identify high-probability reversal points by combining macro-structural zones with micro-execution triggers.
What Makes This Script Original?
Most scripts treat Supply/Demand and Entry Triggers as separate entities. The originality of the Sniper369 lies in its Strict Hierarchical Logic. It employs a "Two-Factor Authentication" system for trades:
1. Structural Validation: Identifying where "Smart Money" has historically left unfilled orders.
2. Liquidity Sweep Confirmation: Using the Enigma 369 logic to detect a specific manipulation pattern (a stop-run or "sweep") that occurs exclusively within those structural zones.
By using Pine Script v6 Object-Oriented Programming, the script manages dynamic arrays of boxes and lines that auto-delete upon mitigation, ensuring your chart remains a clean, actionable workspace.
Underlying Concepts & Calculations
1. Macro: Structural Supply & Demand
The indicator calculates zones based on Pivot Strength and Volatility Scaling.
Calculations: It scans for major structural pivots ( and ). Once a pivot is confirmed, it doesn't just draw a line; it calculates a zone width based on the Average True Range (ATR).
Why it works: Institutions do not enter at a single price; they enter in "pockets" of liquidity. Using ATR-based zones ensures that on high-volatility pairs (like Gold or GBP/JPY), your zones are appropriately wide, while on lower-volatility pairs, they remain tight and precise.
2. Micro: The Enigma 369 Sniper Logic
Once price enters a zone, the "Sniper" logic activates. This is based on the Institutional Wick-Liquidity concept.
The Sweep: The script looks for a candle that breaks the high/low of the previous candle (trapping "breakout" traders) but fails to hold that level.
The Mean Threshold (50% Wick): A core calculation of the Enigma logic is the midpoint of the rejection wick.
Calculation: for Sells.
Logic: Institutions often re-test the 50% level of a long wick to fill the remaining orders before the real move starts.
How to Use the Indicator
Step 1: Wait for Structural Alignment
Observe the Teal (Demand) and Red (Supply) boxes. These are your "Points of Interest" (POI). Do not take any trades until the price is physically touching or inside these boxes.
Step 2: Monitor for the Sniper Trigger
When the price is inside a zone, look for the appearance of the Solid and Dotted lines.
The Solid Line: This is the extreme of the manipulation candle. It serves as your structural invalidation level (Stop Loss).
The Dotted Line: This is the 50% Wick level. It is your "Sniper Entry" target.
Step 3: Execution & Alerts
The script features a built-in alert system that notifies you the moment a Sniper activation occurs inside a zone.
Conservative Entry: Place a Limit Order at the Dotted Line.
Aggressive Entry: Market enter on the close of the Sniper candle if the price has already reacted strongly.
Exit: Target the opposing Supply or Demand zone for a high Risk-to-Reward ratio.
Technical Summary for Traders
Trend Detection: Uses an EMA-50 Filter to ensure Snipers only fire in the direction of the dominant trend (optional).
Scalping/Day Trading: Optimized for the 1m, 5m, and 15m timeframes, but functions perfectly on 4H/Daily for swing traders.
Dynamic Cleanup: The script automatically deletes lines if the price closes past them, signaling that the "Liquidity Grab" was actually a breakout, thus preventing you from entering a losing trade.
TradingMoja / SQZMOM ADX . Mi indicatores lo que ultizo en mis añalisis a dia dia . Si trata de SQZMOM y ADX
Important Level by DXB16**Important Level by DXB16 – The Essential Structure Indicator**
This indicator automatically displays the most important price zones of your market across three timeframes: Daily High/Low, Weekly High/Low, and Monthly High/Low. All levels update in real-time.
**What you'll see:**
- Current daily, weekly, and monthly highs and lows as clear horizontal lines
- Instant context of where the current price sits within the daily, weekly, and monthly range
- Classic reversal, range, and breakout zones at a glance
**Perfect for:**
- Identifying range-bound vs. trend days
- Liquidity grabs and mean-reversion setups at critical levels
- Higher timeframe context for intraday trading
- Futures, indices, forex, crypto
**Features:**
- 6 fully customizable colored lines (Daily, Weekly, Monthly – each High/Low)
- Adjustable label text size
- Clean, minimalist design without distracting boxes
- Fully dynamic – no manual adjustments needed
Trading Sessions UAETrading Sessions – UAE (GMT+4)
This indicator plots the Asia, London, and New York trading sessions as clean session boxes based on UAE time (GMT+4).
Session timing is fully locked to UAE timezone and does not change with the user’s country, chart timezone, or device location. This ensures consistent session behavior for all users worldwide.
Features include:
Asia, London & New York session boxes
Correct session closing (no early close issue)
New York session handled across midnight
Customizable colors, borders, and widths
Session labels with adjustable size and text color
Designed for ICT / SMC traders, Forex, Indices, and Crypto.
eBacktesting - Learning: PD ArrayseBacktesting - Learning: PD Arrays helps you practice one of the most important “Smart Money” ideas: price tends to react from specific delivery areas (PD Arrays) like Imbalances (FVGs), Order Blocks, and Breakers.
Use this to train your eyes to:
- Spot where an imbalance/OB is created (often after displacement)
- Wait for price to return into that area
- Study the reaction (hold, reject, or slice through) and what that implies next
These indicators are built to pair perfectly with the eBacktesting extension, where traders can practice these concepts step-by-step. Backtesting concepts visually like this is one of the fastest ways to learn, build confidence, and improve trading performance.
Educational use only. Not financial advice.
Saptx - Trading Time WindowsThe "Saptx – Trading Time Windows" indicator visualizes important trading time windows directly on the chart. It helps you structure your trading strategy and simplifies backtesting by automatically marking the relevant sessions.
Main Features:
Marks ±15-minute windows around key trading times.
Supports the main sessions:
Frankfurt Open (08:00)
London Open (09:00)
MMM1 (10:30)
MMM2 (12:30)
New York Trap (15:00)
Closing (17:00)
Dynamic UTC adjustment via an offset setting.
Optional display of session zones (boxes), main time lines, and labels.
Compatible with future and replay modes: past or upcoming sessions are also displayed.
Customizable colors for each session, with transparent zones that do not obscure the chart behind them.
Google Trends: Keyword "Altcoin" (Cryptollica)Google Trends: Keyword "Altcoin"
2013-2026 Google Trend
CRYPTOLLICA
SHFE Silver Price Discovery (USD/oz)This indicator converts Shanghai Futures Exchange (SHFE) silver futures into USD per troy ounce and optionally overlays COMEX silver futures for direct, same-unit comparison.
SHFE silver is quoted in CNY per kilogram, while COMEX is quoted in USD per troy ounce. To make SHFE prices comparable on the same chart, the script:
pulls SHFE:AG1! close (CNY/kg)
pulls USD/CNY FX rate
converts to USD/oz using the exact kg → troy oz factor (32.1507466)
Why this is useful:
SHFE pricing often reflects different drivers than Western paper markets (currency effects, local liquidity, industrial demand, and regional availability). Normalizing SHFE into USD/oz lets traders and investors monitor inter-market alignment and spot periods where Eastern pricing diverges from COMEX.
How to use:
Use the SHFE USD/oz line as a “physical-demand-sensitive” reference.
Overlay COMEX to compare regional pricing and identify multi-week divergence regimes.
For the premium/discount histogram, use the companion indicator: “SHFE Silver Premium vs COMEX (USD/oz)”.
This indicator is designed for macro and inter-market analysis rather than short-term scalping.
Daily SMA (Historical Plotting with RTH/ETH, (5))Daily SMA (RTH/ETH Dynamic Session Handling) — Midnight + RTH Open Locks
This indicator plots projected daily Simple Moving Averages (SMAs) on intraday charts by anchoring calculations to a Regular Trading Hours (RTH) daily SMA reference, while visualizing how the daily SMA evolves intraday during Extended Trading Hours (ETH) and RTH sessions.
When daily SMAs are evaluated strictly at the daily timeframe, they do not form a continuous intraday history and may appear flat on historical intraday bars until realtime bars begin updating. This script visualizes the daily SMA’s intraday progression while keeping the underlying daily SMA reference unchanged.
Purpose
Standard daily SMAs plotted on intraday charts are evaluated at the daily timeframe and therefore do not form a continuous intraday history. When charts are refreshed or reloaded, these values may appear flat until realtime data resumes.
This script addresses that visualization limitation by projecting the daily SMA across historical and realtime intraday bars, while keeping the daily SMA reference intact.
How it works
• Daily SMA seed values are sourced exclusively from an RTH-only daily timeframe series.
• At ETH midnight, the SMA seed is locked using completed daily closes from the RTH daily series.
• At the RTH open, the seed is re-locked using the completed RTH daily window.
• After each seed event, the SMA is projected intraday using the active chart bar’s price.
Price semantics
• Historical bars use fully closed candle data only.
• The realtime bar uses the last traded price until the candle closes.
• Once a bar closes, its value is final and does not repaint.
Higher-timeframe data usage
• request.security() is used intentionally to access daily SMA data.
• lookahead=barmerge.lookahead_on is used only to reference the developing daily timeframe value during the active session for projection purposes.
• No future bars are accessed and no historical values are retroactively altered.
Data integrity
• SMA seed values are derived solely from the daily timeframe and do not depend on intraday bar history.
• SMA values are computed forward from the locked seed and do not revise prior bars.
• If insufficient daily history exists for a symbol, values safely return na.
Scope and limitations
• Intended for chart timeframes up to and including daily.
• Designed for instruments with defined RTH sessions (such as equities and equity-based products).
• This script does not replace or modify the underlying daily SMA reference; it visualizes an intraday projection anchored to the RTH daily SMA.
Other notes
• Pine Script version: v6
• No future data access
• No historical repainting; only the active realtime bar updates until close
Crypto Accumulation Candle FinderThis indicator give you long entry signal to dectect MM's entry time.
it's recommended to use it in 5min. time frame.
ORB (x2) by jaXn# ORB (x2) Professional Suite
## 🚀 Unleash the Power of Precision Range Trading
**ORB (x2)** isn't just another breakout indicator—it is a complete **Opening Range Breakout workspace** designed for professional traders who demand flexibility, precision, and chart cleanliness.
Whether you are trading Indices, Forex, or Commodities, the Opening Range is often the most critical level of the day. This suite allows you to master these levels by tracking **two independent ranges** simultaneously, giving you a distinctive edge.
## 🔥 Why choose ORB (x2)?
Most indicators force you to choose one specific time. **ORB (x2)** breaks these limits.
### 🌎 1. Multi-Session Mastery (London & New York)
Trade the world's biggest liquidity pools. Set **ORB 1** for the **London Open** (e.g., 03:00–03:05 EST) and **ORB 2** for the **New York Open** (09:30–09:35 EST). Watch how price reacts to London levels later in the New York session.
### ⏱️ 2. Multi-Strategy Stacking (The "Fractal" Approach)
This is a game-changer for intraday setups. Instead of two different times, track **two different durations** for the *same* open.
* **Setup:** Configure **ORB 1** as the classic **5-minute range** (09:30–09:35).
* **Setup:** Configure **ORB 2** as the statistically significant **15-minute or 30-minute range** (09:30–10:00).
* **Result:** You now see immediate scalping levels *and* major trend reversals levels on the same chart, automatically.
### 🎯 3. "Plot Until" Tech: Keep Your Chart Clean
Sick of lines extending infinitely into the void?
Our exclusive **"Plot Until"** feature separates the signal from the noise. You define exactly when the trade idea invalidates.
* *Example:* Plot the 09:30 levels only until 12:00 (Lunch).
* The script intelligently cuts the lines off at your exact minute, ensuring your chart is ready for the afternoon session without morning clutter.
### ⚡ Precision Engine
We use a dedicated "Precision Timeframe" input. Even if you are viewing a 1-hour or 4-hour chart to see the big picture, ORB (x2) can fetch data from the **1-minute** timeframe to calculate the *exact* high and low of the opening range. No more "repainting" or guessing where the wick was.
## 🛠 Feature Breakdown
* **Dual Independent Engines:** Fully separate Color, Style, Time, and Cutoff settings for both ORB 1 and ORB 2.
* **Absolute Time Cutoff:** Lines obey day boundaries perfectly. A cutoff at 16:00 means 16:00, not "whenever the next bar closes".
* **Style Control:** Visually distinguish between your "Scalp" ORB (e.g., Dotted Lines) and your "Trend" ORB (e.g., Solid Thick Lines).
* **Performance Mode:** Adjustable "Lookback Days" limits history to keep your chart lightning fast.
## 💡 Configuration Examples
**The "Double Barrel" (Standard Stock + Futures)**
* *ORB 1:* `0930-0935` (5 min) - The immediate reaction.
* *ORB 2:* `0930-1000` (30 min) - The institutional trend setter.
**The "Transatlantic" (Forex/Indices)**
* *ORB 1:* `0800-0805` (London Open) - European liquidity.
* *ORB 2:* `1330-1335` (NY Open) - US liquidity injection.
## ⚠️ Disclaimer
Trading involves substantial risk. This tool helps visualize critical price levels but does not guarantee profits. Always combine with proper risk management and your own analysis.
ImbalanceDetects and visualizes price imbalances across multiple higher timeframes (Monthly, Weekly, Daily, 4H, 1H, 15m, 5m).
The script draws color-coded bullish and bearish imbalance boxes with dotted midpoint lines, supports extending boxes to the right, optional reduction (shrink on partial fill), and automatic aging/removal of old zones — making it easy to spot persistent supply/demand imbalances at a glance.
Capital Rotational Event (CRE)What is a Capital Rotational Event (CRE)?
A Capital Rotational Event is when money shifts from one asset to another — e.g., rotation from stocks into bonds, from tech into commodities, or from one sector into another.
In technical terms it typically shows:
✔ Divergence between two asset price series
✔ Relative strength switching direction
✔ Volume/flow confirming rotation
✔ Often precedes trend acceleration in the “receiver” asset






















