zhanzhang6
Script Name: Zero Lag Trend Signals (MT5)
Description:
A high-sensitivity trend-tracking tool optimized for crypto and stock markets. It eliminates lag in price signals via advanced filtering, generating clear long/short prompts (marked by colored blocks) aligned with market momentum. Suitable for intraday and swing trading—works with all timeframes, with adjustable sensitivity to fit different asset volatilities.
Candlestick analysis
zhanzhang6666
Script Name: Zero Lag Trend Signals (MT5)
Description:
A high-sensitivity trend-tracking tool optimized for crypto and stock markets. It eliminates lag in price signals via advanced filtering, generating clear long/short prompts (marked by colored blocks) aligned with market momentum. Suitable for intraday and swing trading—works with all timeframes, with adjustable sensitivity to fit different asset volatilities.
zhanzhang666Crypto: RSI (overbought/oversold), MACD (trend), Bollinger Bands (volatility), Volume (trend validity), EMA/SMA (trends), RSI Divergence (reversals), Fibonacci (support/resistance), Stochastic (extremes).
• US Stocks: EPS (profit), P/E (valuation), MACD/RSI (trend/overbought), Volume (movement strength), SMA/EMA (trends), ADX (trend strength), Bollinger Bands (volatility), Dividend Yield (returns), ROE (efficiency).
zhanzhang66Key Indicators for Crypto & US Stock Analysis
These indicators are vital for crypto and US stock trading, aiding in trend identification, overbought/oversold judgment, valuation assessment and reversal signal capture, supporting rational trading decisions.
Crypto Indicators
• RSI: Measures price strength to spot overbought/oversold conditions.
• MACD: Tracks trend direction and momentum, capturing reversal signals.
• Bollinger Bands: Gauges price volatility and potential breakouts.
• Volume: Verifies trend validity and market liquidity.
• EMA/SMA: Identifies short/long-term trend directions.
• RSI Divergence: Warns of potential trend reversals.
• Fibonacci Retracement: Predicts key support/resistance levels.
• Stochastic Oscillator: Pinpoints extreme overbought/oversold states.
US Stock Indicators
• EPS: Reflects company profitability, a core fundamental metric.
• P/E Ratio: Evaluates stock valuation rationality.
• MACD/RSI: Tracks trend, momentum and overbought/oversold conditions.
• Volume: Confirms price movement strength.
• SMA/EMA: Clarifies short/long-term trends.
• ADX: Measures trend strength to avoid sideways market trades.
• Bollinger Bands: Judges volatility and breakout directions.
• Dividend Yield: Key for value investors, showing stable returns.
• ROE: Assesses company profit efficiency for long-term investment.
C2 Closure Alert From Key Level (FVG & Swings)This indicator is designed based on the C2 Closure Trader, specifically focusing on identifying high-probability C2 Candle Closures and Key Level Sweeps. It automates the detection of "Candle 2" setups where price sweeps a key level (Swing High/Low or FVG) and closes back inside, signaling a potential reversal or continuation.
Key Features :
Advanced C2 Detection:
Detects when the current candle (C2) sweeps the previous candle (C1).
Deep Context Check: It validates the setup by checking if C1 was interacting with a Key Level (Swing High/Low or FVG) OR if C1 just created a Fresh FVG.
Logic: Ensures no valid setup is missed, even if the sweep happens instantly after FVG creation.
Straight Sweep Lines (Visuals):
Draws a clean, straight horizontal line from the C1 High/Low to the C2 candle.
Helps you visualize exactly which level was swept.
Customization: You can change the line color and width from settings.
Smart FVG & Swing Levels:
Automatically plots Active Bullish/Bearish FVGs and Swing Highs/Lows.
Mitigation Logic: Levels remain active until a valid signal is generated or price invalidates them. Once used, they turn gray (mitigated) to keep the chart clean.
Mechanical Settings Menu:
Fully customizable inputs organized into clean groups (Algorithm, Signal, Visuals, Limits).
Label Size Control: Adjust the signal label size (Tiny to Huge) to fit your screen.
Transparent Labels: Clean "C2" text without background boxes for a professional look.
Robust Alert System:
Three specific alert options added for automation:
Bullish C2 Closure: Fires only on valid Long setups.
Bearish C2 Closure: Fires only on valid Short setups.
Any C2 Close: Fires on any valid setup.
Note: Alerts are strictly set to trigger Once Per Bar Close to avoid false signals during running candles.
How to Use:
Add to Chart: Apply the indicator to your timeframe (Recommended: 15m, 1H, 4H for narrative).
Identify Signals: Look for the "C2" text label.
Green C2: Bullish Setup (Sweep of Low + Close Up).
Red C2: Bearish Setup (Sweep of High + Close Down).
Validation: The indicator automatically checks if the sweep occurred at a valid Swing Point or FVG. If you see the signal, the context is valid.
Entry: Use the close of the C2 candle as your confirmation to frame a trade or look for lower timeframe entries.
Settings Guide:
Algorithm Sensitivity: Adjust Pivot Left/Right Bars to define how strict the Swing Highs/Lows should be.
Signal Appearance: Change the text (e.g., "Entry") or adjust the Label Size.
Active/History Limits: Control how many active or old (mitigated) lines/boxes stay on the chart to manage clutter.
Visuals: Customize colors for Bull/Bear FVGs, Highs/Lows, and Sweep Lines to match your chart theme.
Disclaimer: This tool is for educational and analytical purposes only. Always manage your risk properly.
Single Candle Divergence E.V//AMarks single‑candle divergences between the asset on your chart and any user‑selectable second asset, displaying the second asset’s full OHLC candles in a dedicated separate panel.
Seasonality Calculator Custom Date Range AnalysisThe Seasonality Calculator lets you manually test any seasonal window by choosing a start day/month and end day/month, and then evaluating how that exact period performed historically.
For the selected date range, the script looks back over past years and calculates:
Average return
Hit rate (win rate)
Winning years vs. total years
The results are displayed in a compact on-chart table showing:
Entry date & exit date (calendar days)
Pattern length
Average return & hit rate
Win/trade count
Optionally, the indicator can also draw highlighted boxes for each year of the chosen seasonal window, so you can visually inspect how that specific date range behaved in the past.
You can:
Choose the exact start and end dates (day & month),
Set how many years of history to include,
And filter by simple regimes such as US election cycle years.
All calculations are based on daily data, and the math is consistent with the Seasonality Screener: if you take a pattern from the Screener and enter the same dates into this Calculator, you will get the same historical statistics.
Use this tool to experiment with custom seasonal ideas and to fine-tune windows you discover with the Screener, always in combination with your own analysis and risk management.
Seasonality Screener Best Long & Short Patterns Auto-ScanThe Seasonality Screener automatically scans a market’s history to find the most profitable seasonal patterns in the days ahead.
It searches for both long and short setups and shows you the two best patterns based on historical performance.
For each pattern, the screener looks back over past years and calculates:
Average return
Hit rate (win rate)
Winning years vs. total years
The results are displayed in a compact on-chart table with:
Entry date & exit date (calendar days)
Pattern length
Average return & hit rate
Win/trade count
Optionally, the indicator can also draw highlighted boxes in the chart’s history for the selected long and/or short pattern, so you can visually inspect how the seasonal window performed in each year.
You can:
Define how far ahead the screener should look (e.g. next X days),
Control the minimum and maximum pattern length,
Choose how many years of history to use,
And filter by simple regimes such as US election cycle years.
Internally, all calculations are based on daily data, so the seasonal analysis has to be done on the daily timeframe.
This tool is designed as a research and idea generator for seasonal tendencies and should be used together with your own risk management and trading plan.
ICT Bias (Dynamic Timeframe By Hayk Trading)This indicator designed to offer context, not signals, helping traders stay aligned with the broader directional flow of the market.
Bias States:
Bullish: Market conditions favor higher prices during the trading day.
Bearish: Market conditions favor lower prices during the trading day.
Neutral: No clear directional advantage is present.
This tool is intended to support:
Directional filtering for intraday trading
Improved trade discipline
Reduced overtrading in unfavorable conditions
The Daily Bias does not predict price, provide entries, or guarantee outcomes. It simply highlights the prevailing directional environment for the session.
Use it as a decision-support tool, not as a standalone trading system.
ShayanFx XAU M5 This indicator starts working at 8 am New York market time and you have 3 hours to get signals from it.
We enter a trade on any candle that gives a signal. We place the stop loss behind the same candle and take a reward of 2.
We are not allowed to take more than 2 trades during the day. If the first trade is closed with profit, we will not open another trade, but if the first trade is closed with loss, we are allowed to take another signal.
Sessions CET Asia, London, New YorkThis indicator displays the Asia, London, and New York trading sessions in CET time.
Each session is shown with a background highlight and optional labels, making it easy to visualize global market activity and session overlaps.
Useful for intraday traders, breakout strategies, liquidity analysis, and volume-based setups.
Features:
Correct session times adjusted to CET
Visual background zones for Asia, London, New York
Clean layout, minimal visual noise
Supports any timeframe
Helps identify volatility peaks, session opens, and market structure shifts
[Yorsh] BJN iFVG Model BJN iFVG Model - Mechanical Trading System
Description:
The BJN iFVG Model is not just an indicator; it is a full-scale, semi-automated trading architecture designed to mechanically execute the specific "BJN" Inverted FVG strategy.
Designed for precision traders operating on Lower Timeframes (1m to 5m), this script eliminates the cognitive load of manual analysis. It automates every single step of the mechanical model—from Higher Timeframe narrative building to tick-perfect structural validation and risk calculation.
This tool transforms your chart into a professional trading cockpit, split into three intelligent engines:
1. The Matrix (Context Engine)
Before looking for an entry, you must understand the narrative. The Matrix handles the heavy lifting of multi-timeframe analysis without cluttering your chart:
Real-Time Delivery State: Automatically detects if price is reacting from valid HTF PD Arrays (1H, 4H, Daily) to confirm a "Delivery" state.
Liquidity Sweeps: Tracks Fractals across three dimensions (1H, 15m, and Micro-Structure) to identify liquidity raids instantly.
Advanced SMT Divergence: A built-in, multi-mode SMT engine scans for correlation breaks (Pivot SMT, Adjacent Wick SMT, and FVG SMT) between NQ/ES (or custom tickers) in real-time.
Time & Macro Tracking: Automatically visualizes Killzones and highlights high-probability Macro windows.
2. The Executioner (Entry Engine)
Once the context is set, the Executioner handles the specific Inverted FVG (iFVG) entry model with strict mechanical rules:
Structural Integrity: Automatically identifies the Invalidation Point (IP), Floor/Ceiling, and Break-Even levels for every setup.
Hazard Detection: The script proactively scans the "Trading Leg" for opposing unmitigated FVGs (Hazards). If the path isn't clean, the trade is flagged or invalidated.
Composite Logic: Intelligently merges "noisy" price action into Composite FVGs to reduce false signals.
Integrated Position Sizer: When a trade is confirmed, a visual box appears showing your precise Entry, Stop Loss, Hard Stop, and Take Profit levels, along with a calculated Contract Quantity based on your risk tolerance.
3. The Ranking System (Quality Control)
Not all trades are created equal. This system grades every single confirmed setup in real-time based on confluence factors:
Grades: Ranges from A++ (Perfect Confluence) to C (Low Probability).
Confluence Check: Checks for Delivery, Sweeps (HTF/LTF), SMT, and Macro alignment at the exact moment of the trigger.
Live Status Panel: A dashboard on your chart displays the current live trade status (Armed, Triggered, Confirmed) and its Rank, so you never miss a beat.
Optimization & Performance
Trading on the 1-minute timeframe requires speed. This script has been rigorously optimized for high-frequency environments:
Smart Garbage Collection: The script manages its own memory, cleaning up old data arrays to prevent lag, ensuring the chart remains fluid even after days of data accumulation.
Tunnel Vision: Calculations are strictly focused on the relevant trading leg, ignoring historical noise to maximize execution speed.
Zero-Repaint: All historical analysis is strictly non-repainting to ensure backtesting reliability.
How to Use
Timeframes: Optimized for 1m, 2m, 3m, 4m, 5m execution.
Alerts: Configure the robust alert system to notify you only when setups meet your standards (e.g., "Alert only on Rank B+ or higher").
Strategy: Wait for the Status Panel to show a "CONFIRMED" signal. Use the on-screen Position Sizer to execute the trade with the displayed risk parameters.
Stop analyzing; start executing. Welcome to mechanical trading.
----------------------------------------------------------------------------------------------------------------
RISK DISCLAIMER:
The content, tools, and signals generated by this script are strictly for educational and informational purposes only. This script does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any securities, futures, or other financial instruments.
Trading financial markets involves a high degree of risk and is not suitable for all investors. The "Position Sizer" and "Trade Setups" displayed are hypothetical simulations designed to demonstrate the mechanics of the BJN methodology; they do not guarantee future performance.
Use this tool at your own risk. The author assumes no responsibility or liability for any trading losses or damages incurred in connection with the use of this script. Always consult with a qualified financial advisor and practice proper risk management.
XAUUSD [MAX]XAUUSD (Gold) M1 indicator based on Support/Resistance (pivot S/R) + classic price action confirmation.
• Designed for XAUUSD on the 1-minute timeframe
• Alternating signals only: BUY → SELL → BUY → SELL
• No new signal while a trade is active (waits until TP or SL is hit)
• Fixed targets: SL = 20 pips, TP = 100 pips (pipSize adjustable in settings)
• Filters: EMA trend + optional RSI filter + S/R touch logic
Note: This script is for educational/testing purposes. Always use proper risk management.
Market Structure High/Low [MaB]📊 Market Structure High/Low
A precision indicator for identifying and tracking market structure through validated swing highs and lows.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 KEY FEATURES
• Automatic Swing Detection
Identifies structural High/Low points using a dual-confirmation system (minimum candles + pullback percentage)
• Smart Trend Tracking
Automatically switches between Uptrend (Higher Highs & Higher Lows) and Downtrend (Lower Highs & Lower Lows)
• Breakout Alerts
Visual markers for confirmed breakouts (Br↑ / Br↓) with configurable threshold
• Sequential Labeling
Clear numbered labels (L1, H2, L3, H4...) showing the exact market structure progression
• Color-Coded Structure Lines
- Green: Uptrend continuation legs
- Red: Downtrend continuation legs
- Gray: Trend inversion points
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ CONFIGURABLE PARAMETERS
• Analysis Start Date: Define when to begin structure analysis
• Min Confirmation Candles: Required candles for validation (default: 3)
• Pullback Percentage: Minimum retracement for confirmation (default: 10%)
• Breakout Threshold: Percentage beyond structure for breakout (default: 1%)
• Table Display: Toggle Market Structure
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 HOW IT WORKS
1. Finds initial swing low using lookback period
2. Tracks price movement for potential High candidates
3. Validates candidates with dual criteria (candles + pullback)
4. Monitors for breakout above High (continuation) or below Low (inversion)
5. Repeats the cycle, building complete market structure
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔧 BEST USED FOR
• Identifying key support/resistance levels
• Trend direction confirmation
• Breakout trading setups
• Multi-timeframe structure analysis
• Understanding market rhythm and flow
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ NOTES
- Works best on higher timeframes (1H+) for cleaner structure
- Statistics become more reliable with larger sample sizes
- Extension ratios use σ-filtered averages to exclude outliers
- Pullback filter automatically bypasses during extended impulsive moves
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Scalping EMA + Pinbar Strategy (London & NY only, BE @ 1R)The scalping trading system uses two types of indicators:
EMA 10, EMA 21, EMA 50
Pinbar Indicator
Rules for entering a buy order:
If the closing price is above the EMA 50, the trend is uptrend and only buy orders should be considered.
The EMA 10 and EMA 21 lines must simultaneously be above the EMA 50.
The price must correct down at least 50% of the area created by the EMA 10 and EMA 21, or correct further down.
A Type 1 Pinbar candle (marked by the Pinbar indicator) must appear; this Pinbar candle must react to at least one of the three EMA lines (EMA 10, EMA 21, EMA 50) and close above the EMA 50.
This Pinbar candle must have a Pinbar strength value (marked by the Pinbar indicator) less than 2 to be considered valid. Check if the closing price of this pinbar candle is higher than the 50-day EMA and if the 10-day and 21-day EMAs are also higher than the 50-day EMA. If so, the conditions have been met and you can begin trading.
Place a buy stop order 0.1 pip higher than the highest price of the pinbar candle, and a stop loss order 0.1 pip lower than the lowest price of the pinbar candle. Set the take profit at 3R.
If the price moves past the previously set stop loss, cancel the pending order.
When the price moves 1R, move the stop loss back to the entry point.
The next trade can only be executed after the previous trade has moved the stop loss back to the entry point.
Rules for placing sell orders:
If the closing price is below the 50-day EMA, the trend is bearish, and only sell orders should be considered. The 10-day and 21-day EMAs must both be below the 50-day EMA.
The price must correct downwards by at least 50% of the area formed by the 10-day and 21-day EMAs, or even further.
A Type 1 pinbar candle (marked by the Pinbar indicator) must appear. This pinbar candle must react to at least one of the three EMAs (EMA 10, EMA 21, EMA 50) and close below the EMA 50.
This pinbar is valid if its strength (indicated by the Pinbar indicator) is less than 2. Verify that the closing price of this pinbar candle is below the EMA 50 and that both the EMA 10 and EMA 21 are below the EMA 50. If all conditions are met, the trade can be executed.
(This appears to be a separate entry rule and not part of the previous text.) Place a sell stop order 0.1 pip below the lowest point of the pinbar candle, and a stop loss order 0.1 pip above the highest point of the pinbar candle. Set the take profit point at 3R.
If the price moves past the previously set stop-loss point, cancel the pending order.
When the price moves 1R, move the stop-loss point back to the entry point.
The next trade can only be executed after the previous trade has moved the stop-loss point back to the entry point.
E-MasterE-Master v2.5.2 is an internal development build created for structural testing and layout consistency experiments.
This script was not designed for practical trading use and is currently maintained only to observe how different visual components behave under various chart conditions. The calculations, filters, and outputs are incomplete, unoptimized, and may change without notice.
The indicator may produce irregular visuals, unclear states, or seemingly redundant information. Interpretation is intentionally non-intuitive and may not align with standard technical analysis practices.
E-Master does not generate actionable signals, trade recommendations, or reliable confirmations. Any apparent patterns or reactions should be considered coincidental and unsuitable for decision-making.
Due to its experimental nature, this tool may behave inconsistently across symbols, timeframes, or market environments. Users are strongly discouraged from relying on it for analysis, execution, or strategy development.
This script exists solely for testing, debugging, and exploratory purposes during ongoing development.
ROBBIE + EMA1️⃣ Purpose
This indicator identifies Knoxville Divergence signals (Rob Booker method) while filtering trades according to trend using an EMA.
Bullish signal: Price shows divergence and is above EMA → buy bias.
Bearish signal: Price shows divergence and is below EMA → sell bias.
It combines price pivots, RSI divergence, momentum, and EMA trend for higher-probability signals.
2️⃣ Key Components
a) Inputs
rsiLength → Period for RSI (default 14)
momLength → Period for Momentum (default 10)
pivotLen → Lookback for pivot detection (default 5)
emaLength → EMA period for trend filter (default 50)
b) Pivot Detection
ta.pivotlow() → detects price and RSI lows
ta.pivothigh() → detects price and RSI highs
Only pivots confirmed after pivotLen bars are used for divergence logic.
c) Knoxville Divergence Logic
Bullish Divergence:
Price forms a lower low
RSI forms a higher low
Momentum > 0
Price above EMA (trend confirmation)
Bearish Divergence:
Price forms a higher high
RSI forms a lower high
Momentum < 0
Price below EMA (trend confirmation)
Robbie BhaiyaMy first indicator. I would like to create something which gives you realtime buy and sell signal.
new takesi_2Step_Screener_MOU_KAKU_FIXED4 (Visible)//@version=5
indicator("MNO_2Step_Screener_MOU_KAKU_FIXED4 (Visible)", overlay=true, max_labels_count=500)
// =========================
// Inputs
// =========================
emaSLen = input.int(5, "EMA Short (5)")
emaMLen = input.int(13, "EMA Mid (13)")
emaLLen = input.int(26, "EMA Long (26)")
macdFast = input.int(12, "MACD Fast")
macdSlow = input.int(26, "MACD Slow")
macdSignal = input.int(9, "MACD Signal")
macdZeroTh = input.float(0.2, "MOU: MACD near-zero threshold", step=0.05)
volLookback = input.int(5, "Volume MA days", minval=1)
volMinRatio = input.float(1.3, "MOU: Volume ratio min", step=0.1)
volStrong = input.float(1.5, "Strong volume ratio (Breakout/KAKU)", step=0.1)
volMaxRatio = input.float(3.0, "Volume ratio max (filter)", step=0.1)
wickBodyMult = input.float(2.0, "Pinbar: lowerWick >= body*x", step=0.1)
pivotLen = input.int(20, "Resistance lookback", minval=5)
pullMinPct = input.float(5.0, "Pullback min (%)", step=0.1)
pullMaxPct = input.float(15.0, "Pullback max (%)", step=0.1)
breakLookbackBars = input.int(5, "Pullback route: valid bars after break", minval=1)
// --- Breakout route (押し目なし初動ブレイク) ---
useBreakoutRoute = input.bool(true, "Enable MOU Breakout Route (no pullback)")
breakConfirmPct = input.float(0.3, "Break confirm: close > R*(1+%)", step=0.1)
bigBodyLookback = input.int(20, "Break candle body MA length", minval=5)
bigBodyMult = input.float(1.2, "Break candle: body >= MA*mult", step=0.1)
requireCloseNearHigh = input.bool(true, "Break candle: close near high")
closeNearHighPct = input.float(25.0, "Close near high threshold (% of range)", step=1.0)
allowMACDAboveZeroInstead = input.bool(true, "Breakout route: allow MACD GC above zero instead")
// 表示
showEMA = input.bool(true, "Plot EMAs")
showMou = input.bool(true, "Show MOU label")
showKaku = input.bool(true, "Show KAKU label")
// ★ここを改善:デバッグ表はデフォルトON
showDebugTbl = input.bool(true, "Show debug table (last bar)")
// ★稼働確認ラベル(最終足に必ず出す)
showStatusLbl = input.bool(true, "Show status label (last bar always)")
locChoice = input.string("Below Bar", "Label location", options= )
lblLoc = locChoice == "Below Bar" ? location.belowbar : location.abovebar
// =========================
// EMA
// =========================
emaS = ta.ema(close, emaSLen)
emaM = ta.ema(close, emaMLen)
emaL = ta.ema(close, emaLLen)
plot(showEMA ? emaS : na, color=color.new(color.yellow, 0), title="EMA 5")
plot(showEMA ? emaM : na, color=color.new(color.blue, 0), title="EMA 13")
plot(showEMA ? emaL : na, color=color.new(color.orange, 0), title="EMA 26")
emaUpS = emaS > emaS
emaUpM = emaM > emaM
emaUpL = emaL > emaL
goldenOrder = emaS > emaM and emaM > emaL
above26_2days = close > emaL and close > emaL
// 勝率維持の土台(緩めない)
baseTrendOK = (emaUpS and emaUpM and emaUpL) and goldenOrder and above26_2days
// =========================
// MACD
// =========================
= ta.macd(close, macdFast, macdSlow, macdSignal)
macdGC = ta.crossover(macdLine, macdSig)
macdUp = macdLine > macdLine
macdNearZero = math.abs(macdLine) <= macdZeroTh
macdGCAboveZero = macdGC and macdLine > 0 and macdSig > 0
macdMouOK = macdGC and macdNearZero and macdUp
macdBreakOK = allowMACDAboveZeroInstead ? (macdMouOK or macdGCAboveZero) : macdMouOK
// =========================
// Volume
// =========================
volMA = ta.sma(volume, volLookback)
volRatio = volMA > 0 ? (volume / volMA) : na
volumeMouOK = volRatio >= volMinRatio and volRatio <= volMaxRatio
volumeStrongOK = volRatio >= volStrong and volRatio <= volMaxRatio
// =========================
// Candle patterns
// =========================
body = math.abs(close - open)
upperWick = high - math.max(open, close)
lowerWick = math.min(open, close) - low
pinbar = (lowerWick >= wickBodyMult * body) and (lowerWick > upperWick) and (close >= open)
bullEngulf =
close > open and close < open and
close >= open and open <= close
bigBull =
close > open and
open < emaM and close > emaS and
(body > ta.sma(body, 20))
candleOK = pinbar or bullEngulf or bigBull
// =========================
// Resistance / Pullback route
// =========================
res = ta.highest(high, pivotLen)
pullbackPct = res > 0 ? (res - close) / res * 100.0 : na
pullbackOK = pullbackPct >= pullMinPct and pullbackPct <= pullMaxPct
brokeRes = ta.crossover(close, res )
barsSinceBreak = ta.barssince(brokeRes)
afterBreakZone = (barsSinceBreak >= 0) and (barsSinceBreak <= breakLookbackBars)
pullbackRouteOK = afterBreakZone and pullbackOK
// =========================
// Breakout route (押し目なし初動ブレイク)
// =========================
breakConfirm = close > res * (1.0 + breakConfirmPct / 100.0)
bullBreak = close > open
bodyMA = ta.sma(body, bigBodyLookback)
bigBodyOK = bodyMA > 0 ? (body >= bodyMA * bigBodyMult) : false
rng = math.max(high - low, syminfo.mintick)
closeNearHighOK = not requireCloseNearHigh ? true : ((high - close) / rng * 100.0 <= closeNearHighPct)
mou_breakout =
useBreakoutRoute and
baseTrendOK and
breakConfirm and
bullBreak and
bigBodyOK and
closeNearHighOK and
volumeStrongOK and
macdBreakOK
mou_pullback = baseTrendOK and volumeMouOK and candleOK and macdMouOK and pullbackRouteOK
mou = mou_pullback or mou_breakout
// =========================
// KAKU (Strict): 8条件 + 最終三点
// =========================
cond1 = emaUpS and emaUpM and emaUpL
cond2 = goldenOrder
cond3 = above26_2days
cond4 = macdGCAboveZero
cond5 = volumeMouOK
cond6 = candleOK
cond7 = pullbackOK
cond8 = pullbackRouteOK
all8_strict = cond1 and cond2 and cond3 and cond4 and cond5 and cond6 and cond7 and cond8
final3 = pinbar and macdGCAboveZero and volumeStrongOK
kaku = all8_strict and final3
// =========================
// Display (猛 / 猛B / 確)
// =========================
showKakuNow = showKaku and kaku
showMouPull = showMou and mou_pullback and not kaku
showMouBrk = showMou and mou_breakout and not kaku
plotshape(showMouPull, title="MOU_PULLBACK", style=shape.labelup, text="猛",
color=color.new(color.lime, 0), textcolor=color.black, location=lblLoc, size=size.tiny)
plotshape(showMouBrk, title="MOU_BREAKOUT", style=shape.labelup, text="猛B",
color=color.new(color.lime, 0), textcolor=color.black, location=lblLoc, size=size.tiny)
plotshape(showKakuNow, title="KAKU", style=shape.labelup, text="確",
color=color.new(color.yellow, 0), textcolor=color.black, location=lblLoc, size=size.small)
// =========================
// ★稼働確認:最終足に必ず出すステータスラベル
// =========================
var label status = na
if showStatusLbl and barstate.islast
label.delete(status)
statusTxt =
"MNO RUNNING " +
"MOU: " + (mou ? "YES" : "no") + " (pull=" + (mou_pullback ? "Y" : "n") + " / brk=" + (mou_breakout ? "Y" : "n") + ") " +
"KAKU: " + (kaku ? "YES" : "no") + " " +
"BaseTrend: " + (baseTrendOK ? "OK" : "NO") + " " +
"MACD(mou): " + (macdMouOK ? "OK" : "NO") + " / MACD(zeroGC): " + (macdGCAboveZero ? "OK" : "NO") + " " +
"Vol: " + (na(volRatio) ? "na" : str.tostring(volRatio, format.mintick)) + " " +
"Pull%: " + (na(pullbackPct) ? "na" : str.tostring(pullbackPct, format.mintick))
status := label.new(bar_index, high, statusTxt, style=label.style_label_left,
textcolor=color.white, color=color.new(color.black, 0))
// =========================
// Alerts
// =========================
alertcondition(mou, title="MNO_MOU", message="MNO: MOU triggered")
alertcondition(mou_breakout, title="MNO_MOU_BREAKOUT", message="MNO: MOU Breakout triggered")
alertcondition(mou_pullback, title="MNO_MOU_PULLBACK", message="MNO: MOU Pullback triggered")
alertcondition(kaku, title="MNO_KAKU", message="MNO: KAKU triggered")
// =========================
// Debug table (optional)
// =========================
var table t = table.new(position.top_right, 2, 14, border_width=1, border_color=color.new(color.white, 60))
fRow(_name, _cond, _r) =>
bg = _cond ? color.new(color.lime, 70) : color.new(color.red, 80)
tx = _cond ? "OK" : "NO"
table.cell(t, 0, _r, _name, text_color=color.white, bgcolor=color.new(color.black, 0))
table.cell(t, 1, _r, tx, text_color=color.white, bgcolor=bg)
if showDebugTbl and barstate.islast
table.cell(t, 0, 0, "MNO Debug", text_color=color.white, bgcolor=color.new(color.black, 0))
table.cell(t, 1, 0, "", text_color=color.white, bgcolor=color.new(color.black, 0))
fRow("BaseTrend", baseTrendOK, 1)
fRow("MOU Pullback", mou_pullback, 2)
fRow("MOU Breakout", mou_breakout, 3)
fRow("Break confirm", breakConfirm, 4)
fRow("Break big body", bigBodyOK, 5)
fRow("Break close high", closeNearHighOK, 6)
fRow("Break vol strong", volumeStrongOK, 7)
fRow("Break MACD", macdBreakOK, 8)
fRow("KAKU all8", all8_strict, 9)
fRow("KAKU final3", final3, 10)
fRow("MOU any", mou, 11)
fRow("KAKU", kaku, 12)
Daily Upper Wick 0.5 (Date Range)Appearance settings modified: Extend lines OFF, level color, Date Range filter, line thickness, Prices labeled and resized tiny, plot lines OFF.
Daily Lower Wick 0.5 (Date Range)Appearance settings modified: Extend lines OFF, level color, Date Range filter, line thickness, Prices labeled and resized tiny, plot lines OFF.
Market + Direction + Entry + Hold + Exit v1.5 FINALIndicator Description
Market + Direction + Entry + Hold + Exit is a rule-based intraday trading indicator designed to identify high-quality trend opportunities while filtering out low-probability market conditions.
Instead of relying on a single signal, this indicator combines market activity, trend direction, momentum, structure, and pullback logic into one unified framework. It is built to support disciplined, rule-driven trading rather than discretionary or predictive approaches.
Core Logic
The indicator operates through a multi-layer confirmation process.
First, it evaluates whether the market is active enough to trade. Market activity is determined by volatility expansion, volume participation, and price displacement from VWAP. When sufficient activity is detected, the indicator allows trades to be considered.
Next, directional bias is defined using exponential moving averages and price positioning. This creates a clear long-only or short-only environment and helps avoid counter-trend trades.
Entry Structure
Entries are based on pullbacks within an established trend rather than breakout chasing.
The first valid pullback is marked as the initial entry. If the trend continues and additional controlled pullbacks occur, re-entry opportunities are identified and labeled sequentially. This structure helps traders scale into trends in a systematic and measured way.
Hold Confirmation
While a position is active, the indicator provides hold confirmation using momentum alignment and candle behavior. This is designed to help traders remain in strong trends and reduce premature exits during normal pullbacks.
Exit Logic
Exit signals appear only when two conditions align: market structure failure and clear trend weakening. This approach avoids exits based on minor price noise and focuses on objective trend invalidation.
Intended Use
This indicator is designed for intraday trading and scalping on indices, futures, and cryptocurrency markets. It performs best on lower to mid timeframes such as 3-minute, 5-minute, and 15-minute charts, where trend continuation and pullback behavior are most visible.
Asset Presets
Built-in presets are provided for NQ, Gold, and BTC. Each preset automatically adjusts internal parameters such as volatility thresholds, structure sensitivity, and trend strength filtering.
Important Notes
This indicator does not predict future price movements. It is a decision-support tool designed to help traders align with market conditions, manage entries systematically, and maintain consistency. Risk management, position sizing, and execution remain the responsibility of the user.
지표 설명
Market + Direction + Entry + Hold + Exit는 시장의 흐름이 명확한 구간에서만 거래 기회를 포착하도록 설계된 규칙 기반 인트라데이 트레이딩 지표입니다.
이 지표는 단일 신호에 의존하지 않고, 시장 활성도, 추세 방향, 모멘텀, 가격 구조, 되돌림 조건을 단계적으로 결합하여 낮은 확률의 구간을 걸러내는 데 초점을 둡니다. 예측보다는 정렬과 필터링을 통해 일관된 의사결정을 돕는 것이 목적입니다.
핵심 개념
지표는 여러 단계의 조건을 순차적으로 통과해야 신호를 생성하는 구조로 설계되어 있습니다.
먼저, 현재 시장이 거래하기에 충분히 활성화되어 있는지를 판단합니다. 변동성, 거래량, VWAP 대비 가격 이탈 정도를 기준으로 시장 상태를 평가하며, 일정 기준 이상일 때만 거래를 고려합니다.
이후, 이동평균과 가격 위치를 기반으로 추세 방향을 정의하여 롱 또는 숏 한 방향만 허용합니다. 이를 통해 역추세 진입을 자연스럽게 차단합니다.
진입 구조
진입은 돌파가 아닌 추세 내 되돌림을 기준으로 설계되어 있습니다.
첫 번째 유효한 되돌림 구간을 초기 진입으로 표시하며, 추세가 유지되는 동안 추가적인 되돌림이 발생할 경우 재진입 기회를 순차적으로 제공합니다. 이러한 구조는 감정적인 물타기가 아닌, 규칙 기반의 분할 진입을 가능하게 합니다.
홀드 신호
포지션 보유 중에는 모멘텀 정렬과 캔들 흐름을 통해 추세 지속 여부를 확인할 수 있습니다. 이를 통해 정상적인 조정 구간에서는 성급한 청산을 줄이고, 추세가 유지되는 동안 포지션을 안정적으로 관리할 수 있도록 돕습니다.
청산 로직
청산 신호는 가격 구조 붕괴와 추세 약화가 동시에 확인될 때만 발생합니다. 단기적인 노이즈에 의한 잦은 청산을 피하고, 추세가 객관적으로 무너지는 구간에 집중하도록 설계되었습니다.
활용 대상
이 지표는 인트라데이 트레이딩과 스캘핑에 적합하며, 지수, 선물, 암호화폐 시장에서 활용할 수 있습니다. 특히 3분, 5분, 15분 차트에서 추세와 되돌림 구조가 명확하게 나타나는 환경에서 효과적입니다.
자산 프리셋
NQ, Gold, BTC에 대해 사전 설정된 프리셋이 제공되며, 각 자산의 변동성과 특성에 맞게 내부 파라미터가 자동으로 조정됩니다.
유의 사항
본 지표는 가격의 미래를 예측하지 않습니다. 시장 환경을 정리하고 거래 판단을 보조하는 도구로서 사용되며, 손절 기준과 포지션 사이즈 관리는 사용자 책임입니다.
One Candle 5min Retest Strategy🚀 One Candle 5min Retest Strategy (OCRS) – Your Morning on Autopilot
Less drawing, more trading.
Sick of drawing the opening range manually every single morning? Or catching yourself FOMOing into trades before the candle even closes? The OCRS Indicator automates the heavy lifting for the "First Candle" / "One Candle Retest" strategy (Scarface Trades style).
It’s basically a tool to keep you honest and save you time.
🧠 Why use it?
Forced Patience: The range lines stay PURPLE while the first 5 minutes are playing out. That’s your sign to chill and wait. No early entries.
Instant Levels: Once the range closes, the lines snap to BLUE (High) and ORANGE (Low) . You see the levels immediately.
The "Zone" Finder: If price breaks out, the script finds the specific Order Block for you (the last contrary candle before the move) and draws the retest box.
Bullish Breakout? Catches the last red candle.
Bearish Breakout? Catches the last green candle.
No Confusion: Markets are messy. If price fakes a pump and then dumps, the indicator keeps the old zone and draws the new one. You see exactly what's happening.
🛠️ The Good Stuff:
Set and Forget: Auto-syncs to NY Open (09:30 EST). Works on any timeframe.
Clean Charts: Lines only run for 90 minutes. No clutter for the rest of the day.
Day Separator: A simple vertical line marks the next session. Perfect for backtesting —you know exactly when to hit pause before the next open.
No Wicks: Boxes only paint when the candle actually closes outside the range. Zero fakeouts.
Your Style: Turn boxes on/off or change colors to match your vibe.
🎯 How to trade it:
Chill for the first 5 minutes (09:30 - 09:35 NY). Purple lines = hands off.
Watch for the break.
Candle CLOSES above Blue? Wait for the Blue Box .
Candle CLOSES below Orange? Wait for the Orange Box .
The Setup: Wait for price to tap back into the box.
Entry: Find your confirmation inside that zone and take the trade.
Keep your morning simple. Install OCRS and trade with clarity.
Note: This is just a tool to help with the strategy. Risk management is still on you.






















