Bar Number IndicatorBar Number Indicator
This Pine Script indicator is designed to help intraday traders by automatically numbering candlesticks within a user-defined trading session. This is particularly useful for strategies that rely on specific bar counts (e.g., tracking the 1st, 18th, or 81st bar of the day).
Key Features:
Session-Based Counting: Automatically resets the count at the start of each new session (default 09:30 - 16:00).
Timezone Flexibility: Includes a dropdown to select your specific trading timezone (e.g., America/New_York), ensuring accurate session start times regardless of your local time or the exchange's default setting.
Smart Display Modes: Choose to show "All" numbers, or filter for "Odd" / "Even" numbers to keep your chart clean.
Custom Positioning: Easily place the numbers Above or Below the candlesticks.
Minimalist Design: Numbers are displayed as floating text without distracting background bubbles.
Candlestick analysis
Dynamic Trend Channel - Adaptive Support & Resistance SystemA powerful trend-following indicator that adapts to market conditions in real-time. The Dynamic Trend Channel uses ATR-based volatility measurements to create intelligent support and resistance zones that adjust automatically to price action.
Key Features:
✓ Adaptive channel width based on market volatility (ATR)
✓ Color-coded trend identification (Green = Bullish, Red = Bearish)
✓ Smooth, flowing bands that reduce noise
✓ Breakout signals for high-probability entries
✓ Real-time info table showing trend status and price positioning
✓ Customizable settings for all timeframes
takeshi GPT//@version=5
indicator("猛の掟・初動スクリーナーGPT", overlay = true, timeframe = "", timeframe_gaps = true)
// ======================================================
// ■ 1. パラメータ設定
// ======================================================
// EMA長
emaFastLen = input.int(5, "短期EMA (5)", minval = 1)
emaMidLen = input.int(13, "中期EMA (13)", minval = 1)
emaSlowLen = input.int(26, "長期EMA (26)", minval = 1)
// 出来高
volMaLen = input.int(5, "出来高平均期間", minval = 1)
volMultInitial = input.float(1.3, "出来高 初動ライン (×)", minval = 1.0, step = 0.1)
volMultStrong = input.float(1.5, "出来高 本物ライン (×)", minval = 1.0, step = 0.1)
// 押し目・レジスタンス
pullbackLookback = input.int(20, "直近高値の探索期間", minval = 5)
pullbackMinPct = input.float(5.0, "押し目下限 (%)", minval = 0.0, step = 0.1)
pullbackMaxPct = input.float(15.0, "押し目上限 (%)", minval = 0.0, step = 0.1)
// ピンバー判定パラメータ
pinbarWickRatio = input.float(2.0, "ピンバー下ヒゲ/実体 比率", minval = 1.0, step = 0.5)
pinbarMaxUpperPct = input.float(25.0, "ピンバー上ヒゲ比率上限 (%)", minval = 0.0, step = 1.0)
// 大陽線判定
bigBodyPct = input.float(2.0, "大陽線の最低値幅 (%)", minval = 0.1, step = 0.1)
// ======================================================
// ■ 2. 基本テクニカル計算
// ======================================================
emaFast = ta.ema(close, emaFastLen)
emaMid = ta.ema(close, emaMidLen)
emaSlow = ta.ema(close, emaSlowLen)
// MACD
= ta.macd(close, 12, 26, 9)
// 出来高
volMa = ta.sma(volume, volMaLen)
// 直近高値(押し目判定用)
recentHigh = ta.highest(high, pullbackLookback)
drawdownPct = (recentHigh > 0) ? (recentHigh - close) / recentHigh * 100.0 : na
// ======================================================
// ■ 3. A:トレンド(初動)条件
// ======================================================
// 1. 5EMA↑ 13EMA↑ 26EMA↑
emaUpFast = emaFast > emaFast
emaUpMid = emaMid > emaMid
emaUpSlow = emaSlow > emaSlow
condTrendUp = emaUpFast and emaUpMid and emaUpSlow
// 2. 黄金並び 5EMA > 13EMA > 26EMA
condGolden = emaFast > emaMid and emaMid > emaSlow
// 3. ローソク足が 26EMA 上に2日定着
condAboveSlow2 = close > emaSlow and close > emaSlow
// ======================================================
// ■ 4. B:モメンタム(MACD)条件
// ======================================================
// ヒストグラム縮小+上向き
histShrinkingUp = (math.abs(histLine) < math.abs(histLine )) and (histLine > histLine )
// ゼロライン直下〜直上での上向き
nearZeroRange = 0.5 // ゼロライン±0.5
macdNearZero = math.abs(macdLine) <= nearZeroRange
// MACDが上向き
macdTurningUp = macdLine > macdLine
// MACDゼロライン上でゴールデンクロス
macdZeroCrossUp = macdLine > signalLine and macdLine <= signalLine and macdLine > 0
// B条件:すべて
condMACD = histShrinkingUp and macdNearZero and macdTurningUp and macdZeroCrossUp
// ======================================================
// ■ 5. C:需給(出来高)条件
// ======================================================
condVolInitial = volume > volMa * volMultInitial // 1.3倍〜 初動点灯
condVolStrong = volume > volMa * volMultStrong // 1.5倍〜 本物初動
condVolume = condVolInitial // 「8掟」では1.3倍以上で合格
// ======================================================
// ■ 6. D:ローソク足パターン
// ======================================================
body = math.abs(close - open)
upperWick = high - math.max(close, open)
lowerWick = math.min(close, open) - low
rangeAll = high - low
// 安全対策:0除算回避
rangeAllSafe = rangeAll == 0.0 ? 0.0000001 : rangeAll
bodyPct = body / close * 100.0
// ● 長い下ヒゲ(ピンバー)
lowerToBodyRatio = (body > 0) ? lowerWick / body : 0.0
upperPct = upperWick / rangeAllSafe * 100.0
isBullPinbar = lowerToBodyRatio >= pinbarWickRatio and upperPct <= pinbarMaxUpperPct and close > open
// ● 陽線包み足(bullish engulfing)
prevBearish = close < open
isEngulfingBull = close > open and prevBearish and close >= open and open <= close
// ● 5EMA・13EMAを貫く大陽線
crossFast = open < emaFast and close > emaFast
crossMid = open < emaMid and close > emaMid
isBigBody = bodyPct >= bigBodyPct
isBigBull = close > open and (crossFast or crossMid) and isBigBody
// D条件:どれか1つでOK
condCandle = isBullPinbar or isEngulfingBull or isBigBull
// ======================================================
// ■ 7. E:価格帯(押し目位置 & レジスタンスブレイク)
// ======================================================
// 7. 押し目 -5〜15%
condPullback = drawdownPct >= pullbackMinPct and drawdownPct <= pullbackMaxPct
// 8. レジスタンス突破 → 押し目 → 再上昇
// 直近 pullbackLookback 本の高値をレジスタンスとみなす(現在足除く)
resistance = ta.highest(close , pullbackLookback)
// レジスタンスブレイクが起きたバーからの経過本数
brokeAbove = ta.barssince(close > resistance)
// ブレイク後に一度レジ上まで戻したか
pulledBack = brokeAbove != na ? ta.lowest(low, brokeAbove + 1) < resistance : false
// 現在は再上昇方向か
reRising = close > close
condBreakPull = (brokeAbove != na) and (brokeAbove <= pullbackLookback) and pulledBack and reRising
// ======================================================
// ■ 8. 最終 8条件 & 三点シグナル
// ======================================================
// 8つの掟
condA = condTrendUp and condGolden and condAboveSlow2
condB = condMACD
condC = condVolume
condD = condCandle
condE = condPullback and condBreakPull
all_conditions = condA and condB and condC and condD and condE
// 🟩 最終三点シグナル
// 1. 長い下ヒゲ 2. MACDゼロライン上GC 3. 出来高1.5倍以上
threePoint = isBullPinbar and macdZeroCrossUp and condVolStrong
// 「買い確定」= 8条件すべて + 三点シグナル
buy_confirmed = all_conditions and threePoint
// ======================================================
// ■ 9. チャート表示 & スクリーナー用出力
// ======================================================
// EMA表示
plot(emaFast, color = color.orange, title = "EMA 5")
plot(emaMid, color = color.new(color.blue, 10), title = "EMA 13")
plot(emaSlow, color = color.new(color.green, 20), title = "EMA 26")
// 初動シグナル
plotshape(
all_conditions and not buy_confirmed,
title = "初動シグナル(掟8条件クリア)",
style = shape.labelup,
color = color.new(color.yellow, 0),
text = "初動",
location = location.belowbar,
size = size.small)
// 三点フルシグナル(買い確定)
plotshape(
buy_confirmed,
title = "三点フルシグナル(買い確定)",
style = shape.labelup,
color = color.new(color.lime, 0),
text = "買い",
location = location.belowbar,
size = size.large)
// スクリーナー用 series 出力(非表示)
plot(all_conditions ? 1 : 0, title = "all_conditions (8掟クリア)", display = display.none)
plot(buy_confirmed ? 1 : 0, title = "buy_confirmed (三点+8掟)", display = display.none)
Daily O/C Span (Real Values & SMA Comparison)This Pine Script indicator helps you visualize and track the "momentum" or "strength" of each trading day, and compares it to a recent average. It essentially measures the net movement of the price from when the market opens to when it closes.
What the Script Does
The script performs the following actions:
Calculates Daily Movement: For every single trading day, it calculates the difference between the closing price and the opening price (Close - Open).
Plots the "Span": These daily differences are plotted as vertical bars (a histogram) in a separate window below your main price chart.
-Green bars mean the stock closed higher than it opened (a strong day).
-Red bars mean the stock closed lower than it opened (a weak day).
Calculates the Average: It calculates the Simple Moving Average (SMA) of these daily spans over an adjustable period (default is 30 days).
Plots the Average Line: A blue line is plotted over the green/red bars, showing the typical magnitude of daily movement.
Displays Comparison: A table in the top-right corner provides a quick, real-time numerical comparison of today's span versus the 30-day average span.
How It Can Improve Trading
This indicator helps you understand the character and conviction of price action, offering several trading insights:
Gauging Momentum: It clarifies whether the stock's moves are generally strong and sustained within a day (large spans) or hesitant (small spans).
Identifying Trends: During an uptrend, you might expect the average span line to be consistently positive (above zero), and vice versa for a downtrend. A positive average span indicates buyers are consistently closing the day stronger than where they started it.
Spotting Reversals: If a stock is in a strong uptrend but you suddenly see a series of large red bars (large negative spans), it could signal a shift in momentum and potential upcoming reversal.
Volatility Context: By comparing the current day's bar to the blue average line, you can quickly determine if today is an unusually strong/weak day relative to recent history.
In short, it helps you see the underlying buyer/seller conviction within each day, making it easier to gauge the overall market sentiment and anticipate potential shifts.
teril 1H EMA50 Harami Reversal Alerts BB Touch teril Harami Reversal Alerts BB Touch (Wick Filter Added + 1H EMA50)
teril Harami Reversal Alerts BB Touch (Wick Filter Added + 1H EMA50)
teril Harami Reversal Alerts BB Touch (Wick Filter Added + 1H EMA50)
teril Harami Reversal Alerts BB Touch (Wick Filter Added + 1H EMA50)
Volatile bars highlighterSimple logical concept to find breakout and volatile candles. when candle close your desired range far from previous close. It highlight it. It can be adjusted in multiplier. it is not good for real-time usage but very useful for people who plan there trades.
Trend zooming boxThis script clearly find trend.
You will be able to find areas where you get large impulsive moves in history easily. Not too much to describe.
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
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Victor aimstar past strategy -v1Introducing the ultimate all-in-one DIY strategy builder indicator, With over 30+ famous indicators (some with custom configuration/settings) indicators included, you now have the power to mix and match to create your own custom strategy for shorter time or longer time frames depending on your trading style. Say goodbye to cluttered charts and manual/visual confirmation of multiple indicators and hello to endless possibilities with this indicator.
What it does
==================
This indicator basically help users to do 2 things:
1) Strategy Builder
With more than 30 indicators available, you can select any combination you prefer and the indicator will generate buy and sell signals accordingly. Alternative to the time-consuming process of manually confirming signals from multiple indicators! This indicator streamlines the process by automatically printing buy and sell signals based on your chosen combination of indicators. No more staring at the screen for hours on end, simply set up alerts and let the indicator do the work for you.
Order Block Pro📌Order Block Pro is an advanced Smart Money Concepts (SMC) toolkit that automatically detects market structure, order blocks, fair value gaps, BOS/CHoCH shifts, liquidity sweeps, and directional signals—enhanced by a dual-timeframe trend engine, theme-based visual styling, and optional automated noise-cleaning for FVGs.
────────────────────────────────
Theme Engine & Color System
────────────────────────────────
The indicator features 5 professional color themes (Aether, Nordic Dark, Neon, Monochrome, Sunset) plus a full customization mode.
Themes dynamically override default OB, FVG, BOS, CHoCH, EMA, and background colors to maintain visual consistency for any chart style.
All color-based elements—Order Blocks, FVG zones, regime background, EMAs, signals, borders—adjust automatically when a theme is selected.
────────────────────────────────
■ Multi-Timeframe Trend Regime Detection
────────────────────────────────
A dual-layer MTF trend classifier determines the macro/swing environment:
HTF1 (Macro Trend, e.g., 4H)
Trend = EMA50 > EMA200
HTF2 (Swing Trend, e.g., 1H)
Trend = EMA21 > EMA55
Regime Output
+2: Strong bullish confluence
+1: Mild bullish
−1: Mild bearish
−2: Strong bearish
This regime affects signals, coloring, and background shading.
────────────────────────────────
■ Order Block (OB) Detection System
────────────────────────────────
OB detection identifies bullish and bearish displacement candles:
Bullish OB:
Low < Low
Close > Open
Close > High
Bearish OB:
High > High
Close < Open
Close < Low
Each OB is drawn as a forward-extending box with theme-controlled color and opacity.
Stored in an array with automatic cleanup to maintain performance.
✅ 1.Candles ✅ 2.Heikin Ashi
────────────────────────────────
■ Fair Value Gap (FVG) Detection (Two Systems)
────────────────────────────────
The indicator includes two independent FVG systems:
(A) Standard FVG (Gap Based)
Bullish FVG → low > high
Bearish FVG → high < low
Each FVG draws:
A colored gap box
A 50% midpoint line (optional)
Stored in arrays for future clean-up
✅ 1.Candles ✅ 2.Heikin Ashi
(B) Advanced FVG (ATR-Filtered + Deletion Logic)
A second FVG engine applies ATR-based validation:
Bullish FVG:
low > high and gap ≥ ATR(14) × 0.5
Bearish FVG:
high < low and gap ≥ ATR(14) × 0.5
Each is drawn with border + text label (Bull FVG / Bear FVG).
Auto Clean System
Automatically removes FVGs based on two modes:
NORMAL MODE (Default):
Bull FVG deleted when price fills above the top
Bear FVG deleted when price fills below the bottom
REVERSE MODE:
Deletes FVGs when price fails to fill
Useful for market-rejection style analysis.
✅ 1.NORMAL ✅ 2.REVERSE MODE ✅ 3.REVERSE MODE
────────────────────────────────
■ Structural Shifts: BOS & CHoCH
────────────────────────────────
Uses pivot highs/lows to detect structural breaks:
BOS (Bullish Break of Structure):
Triggered when closing above the last pivot high.
CHoCH (Bearish Change of Character):
Triggered when closing below the last pivot low.
Labels appear above/below bars using theme-defined colors.
────────────────────────────────
■ Liquidity Sweeps
────────────────────────────────
Liquidity signals plot when price takes out recent swing highs or lows:
Liquidity High Sweep: pivot high break
Liquidity Low Sweep: pivot low break
Useful for identifying stop hunts and imbalance creation.
────────────────────────────────
■ Smart Signal
────────────────────────────────
A filtered trade signal engine generates directional LONG/SHORT markers based on:
Regime alignment (macro + swing)
Volume Pressure: volume > SMA(volume, 50) × 1.5
Momentum Confirmation: MOM(hlc3, 21) aligned with regime
Proximity to OB/FVG Zones: recent structure touch (barsSince < 15)
EMA34 Crossovers: final trigger
────────────────────────────────
■ Background & Trend EMA
────────────────────────────────
Background colors shift based on regime (bull/bear).
EMA34 is plotted using regime-matched colors.
This provides immediate trend-context blending.
────────────────────────────────
■ Purpose & Notes
────────────────────────────────
Order Block Pro is designed to:
Identify smart-money structure elements (OB, FVG, BOS, CHoCH).
Provide multi-timeframe directional context.
Clean chart noise through automated FVG management.
Generate filtered, high-quality directional signals.
It does not predict future price, guarantee profitability, or issue certified trade recommendations.
Signal Pro📌 Signal Pro is a composite signal-based tool that combines price momentum, volatility, trend reversal structures, and user-adjustable filters to provide multi-layered market analysis.
The indicator combines various input conditions to visually represent structural directional reversals and movements based on past patterns.
Signals are provided for analysis convenience and do not guarantee a specific direction or confirm a forecast.
■ Calculation Logic
Mode System (Auto / Manual)
The indicator offers two operating modes:
Auto Mode:
Key parameters are automatically placed based on predefined signal strength settings (Dynamic / Balanced / Safe).
Sensitivity, smoothing values, trend lengths, and other parameters are automatically adjusted to provide an analysis environment tailored to the user's style.
Manual Mode:
Users can manually configure each length, smoothing value, sensitivity, and other parameters based on their input.
This detailed control allows for tailoring the indicator to a specific strategy structure.
Price Structure Analysis Algorithm
The indicator hierarchically compares a specific number of recent highs and lows, and includes logic to determine which levels of the previous structure (high/low progression) are valid.
This process detects continuity or discontinuity between highs and lows, which serves as supplementary data for determining the status of the trend.
Momentum-Based Directional Change Detection
When the mevkzoo value, calculated in a similar way to the deviation from the centerline (Z-score-based), turns positive or negative, a structural direction change is identified.
At this point of transition, an ATR-based auxiliary line is generated to determine whether the reference point has been crossed.
DMI-Based Filter Conditions
The directional filter is constructed using the ta.dmi() value.
Only when certain conditions (DI+/DI- comparison, ADX structure, etc.) are met, a signal is classified as valid, which helps reduce excessive residual signals.
Position Status Management
This indicator internally tracks up and down trends.
TP level detection
This indicator is intended for visual analysis and does not include trade execution functionality.
■ How to Use
Interpreting the Indicator Active Flow
The indicator operates in the following flow:
Internal momentum transition →
Structure-based level calculation →
ATR-based baseline generation →
Baseline breakout confirmation →
Signal signal when the set filter is passed.
Each condition is best used in combination rather than interpreted independently.
Visual Signal Confirmation
The purpose of this indicator is to help identify structural changes.
TP Detection Indicator
When a specific condition is met in the existing directional flow, a TP number is displayed.
This feature visualizes the structure step by step.
■ Visual Elements
Line and Bar Colors
Bullish Structure → Green
Bearish Structure → Red
Neutral or Filter Not Met → Gray
Structure Lines (EQ Points)
A simple structure line in the form of an at-the-money pattern is placed based on the recent pivot high/low,
to aid in visual recognition of the range.
Candle Color Overlay
Signal Pro changes the candle color itself to intuitively convey real-time status changes.
■ Input Parameters
Mode Selection
Auto Mode: Simply select a style and all parameters will be automatically adjusted.
Manual Mode: Detailed settings for all values are possible.
Stop-Loss Related Inputs
→ Used only as a position closing criterion and does not generate strategy signals.
Entry Length / Smooth / Exit Length, etc.
In Manual Mode, determine the sensitivity and structure analysis length.
Fake Trend Detector
This is an additional filter to reduce trend distortion.
Increasing the value reflects only larger structural changes.
Alert Setting
Select from:
Once per bar
Based on the closing price
■ Repaint Operation
Internal structure-based calculations (high/low comparisons, momentum transitions, etc.) do not repaint for confirmed candles.
However, since most conditions are based on the closing price, and some may fluctuate in real time,
the status of the current candle may change.
The indicator's signals are most stable after the closing price is confirmed.
This is normal behavior due to the nature of the technical calculation method,
and is not a completely non-repaintable signal prediction system.
■ Purpose
Signal Pro supports the following analytical purposes:
Visualizing reversal points in price structure trends
Assisting in determining the likelihood of a trend reversal
Structure recognition based on a combination of momentum and volatility
Providing convenient alerts when conditions are met
The indicator is an analytical tool and does not provide any predictive or guarantee capabilities for future prices.
■ Precautions and Limitations
Because this indicator is a complex set of conditions, it is best used in conjunction with market structure analysis rather than relying solely on signals.
Very low settings can increase sensitivity, leading to frequent structural changes.
Since Auto mode parameters are not optimized for specific market conditions, it may be beneficial to adjust them to Manual mode as needed.
Signals may change during real-time candlesticks, but this is based on real-time calculations, not repaints.
Nooner's Heikin-Ashi/Bull-Bear CandlesCandles are colored red and green when Heikin-Ashi and Bull/Bear indicator agree. They are colored yellow when they disagree.
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.
NQ 300+ Point Day Checklist (Bias + Alerts + Markers)This indicator helps identify high-range (≥300-point) days on Nasdaq-100 futures (NQ / MNQ) using a clear, rule-based checklist.
It evaluates volatility, compression, price displacement, prior-day structure, and overnight activity to generate a daily expansion score (0–6). Higher scores signal an increased likelihood of a strong trending or expansion day.
The script also provides:
Expansion probability levels (Normal / Watch / High-Prob)
Bullish, bearish, or neutral bias
On-chart markers and background highlights
Optional alerts for early awareness
Best used on the Daily timeframe to help traders focus on high-opportunity days and avoid overtrading during consolidation.
This is a context and probability tool — not a trade signal.
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.
Al Brooks - Bar CountIndicator Purpose:
This indicator displays bar counts on the chart to help traders identify important time nodes and cycle transitions
Features smart session filtering with automatic futures/stock detection and appropriate trading session counting
Core Features:
Smart asset detection: Auto-detect futures and stocks
Session filter toggle: Choose all-day or session-specific counting
Auto timezone handling: Chicago time for futures, NY time for stocks
Flexible display control: Customizable display frequency and label size
Session Settings:
8:30-15:15 (CT) / Futures mode: Chicago time 8:30-15:15 (CT)
9:30-16:00 (ET) / Stock mode: New York time 9:30-16:00 (ET)
All-day mode: Count from first bar of the day
Timeframe Correspondence:
Multiples of 3: Correspond to 15-minute chart update cycles
Multiples of 12: Correspond to 1-hour chart update cycles
18: Key nodes, important time turning points
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에 대해 사전 설정된 프리셋이 제공되며, 각 자산의 변동성과 특성에 맞게 내부 파라미터가 자동으로 조정됩니다.
유의 사항
본 지표는 가격의 미래를 예측하지 않습니다. 시장 환경을 정리하고 거래 판단을 보조하는 도구로서 사용되며, 손절 기준과 포지션 사이즈 관리는 사용자 책임입니다.






















