Entry Scanner Conservative Option AKeeping it simple,
Trend,
RSI,
Stoch RSI,
MACD, checked.
Do not have entry where there is noise on selection, look for cluster of same entry signals.
If you can show enough discipline, you will be profitable.
CT
Chart patterns
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.
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)
ATR + True RangeOne indicator for ATR & TR its a common indictor which can be used as one
instead of 2 different its is trial mode only not to be used with out other references
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 - standalone sizerthis script is a standalone version of the sizer included in the main indicator (BJN iFVG Model) for user requiring ultimate tick-by-tick speed when a trade is in live developing bar.
4-Week Return ColumnsWhat it does
This indicator calculates the cumulative return over each 4-week block (4 weekly bars) for a selected security and plots the result as a column chart on the 4th week of each block.
How it works
Runs on Weekly timeframe (indicator is fixed to W).
For every 4 weekly candles:
Start = Week 1 close
End = Week 4 close
Return = (End / Start - 1) × 100 (if % enabled)
By default, it plots only at the end of Week 4 to keep the chart clean.
Inputs
Use chart symbol: Use the current chart’s symbol (default).
Security (if not using chart): Select a different ticker to calculate returns for.
Show %: Toggle between percent and decimal return.
Rolling 4W return (every week): If enabled, plots the rolling 4-week return on every week instead of only the 4th week.
Notes / limitations
“4-week” means 4 weekly bars, not “the 4th calendar week of the month.”
Weekly bars follow the exchange session calendar, so holidays can slightly shift how weeks align.
Use cases
Compare 4-week momentum across symbols
Spot acceleration/slowdown in trend strength
Identify choppy vs trending phases at a glance
Disclaimer
For educational purposes only. Not financial advice.
Table/Checklist
Suggested default settings
Use chart symbol: ✅ ON
Show %: ✅ ON
Rolling: ❌ OFF (cleaner “block-end” columns)
Western Astrological Cycle Trading Indicator v1.0Western Astrological Cycle Trading Indicator v1.0
Overview
The Western Astrological Cycle Trading Indicator is a comprehensive Pine Script tool that overlays astrological cycles and predictions onto trading charts. It integrates Western astrological theory with technical analysis to provide unique cyclical perspectives on market movements based on planetary and zodiacal alignments.
What It Does
Core Functionality
Astrological Year Mapping:
Assigns each year (2000 onward) a specific planet-zodiac combination
Follows a 10-year planetary cycle and 12-year zodiac cycle
Generates theoretical market predictions based on these combinations
Visual Elements:
Background coloring based on yearly astrological predictions
Detailed information table with comprehensive astrological data
Year labels with zodiac symbols and predictions
Ten-year planetary cycle progress bar
Important year markers (Jupiter, Neptune, etc.)
Astrological calendar showing daily and monthly phases
Trading Insights:
Trend indicators (Bullish/Neutral/Bearish) based on planetary positions
Confidence levels for predictions
Element relationships affecting financial markets
Historical and future astrological phase tracking
How It Works
Technical Implementation
1. Cycle Calculation System
Planetary Cycle: 10-year rotation (Sun, Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus, Neptune, Pluto)
Zodiac Cycle: 12-year rotation through all zodiac signs
Calculation:
pinescript
planetIndex = math.floor((year - 2000) % 10)
zodiacIndex = math.floor((year - 2000) % 12)
2. Prediction Engine
Each planet-zodiac combination generates specific predictions
Confidence scores (0-100%) assigned to each prediction
Trend direction determined by planetary attributes:
Bullish: Sun, Jupiter, Venus
Bearish: Mars, Saturn, Pluto
Neutral: Mercury, Uranus, Neptune
3. Visual Rendering System
Multiple label positioning algorithms to prevent overlap
Dynamic table generation with color-coded cells
Progress bar visualization of cycle completion
Time-aware markers that appear only on year transitions
4. Date Management
Comprehensive date calculation functions
Leap year detection
Day/month/year progression tracking
Future/past date predictions
Astrological Logic
The indicator uses traditional Western astrological correspondences:
Planets represent different market energies
Zodiac signs modify and color these energies
Elements (Fire, Earth, Air, Water) show elemental relationships
Modalities (Cardinal, Fixed, Mutable) indicate the nature of change
How to Use It
Installation
Open TradingView platform
Navigate to Pine Editor
Paste the entire script
Click "Add to Chart"
Configuration
Basic Settings
Show Background Color: Toggle prediction-based background coloring
Show Info Table: Display/hide the comprehensive information table
Show Year Labels: Toggle yearly astrological labels on the chart
Customization Options
Year Label Settings:
Choose label color
Adjust font size (small/normal/large)
Toggle year numbers and zodiac symbols
Planetary Cycle Progress:
Display ten-year cycle progress bar
Customize progress bar colors
Adjust position on chart
Marker Lines:
Toggle individual planet markers (Jupiter, Venus/Mars, Saturn/Uranus, Neptune)
Customize marker colors and positions
Adjust marker font sizes
Additional Elements:
Disclaimer display
Trend indicator
Element relationship hints
Current year information
Interpretation Guide
Reading the Information Table
The table provides:
Astro Year: Current planet-zodiac combination
Trend: Bullish/Neutral/Bearish direction
Theoretical Forecast: Market prediction based on astrology
Confidence: Probability score of prediction
Cycle Progress: Position in 10-year planetary cycle
Element Relation: How current element interacts with financial markets
Understanding Visual Elements
Background Colors:
Orange/Green: Bullish years (Sun, Jupiter, Venus)
Red/Brown: Bearish years (Mars, Saturn, Pluto)
Blue/Purple: Neutral/transitional years
Year Labels:
Appear at year transitions
Show planet-zodiac combination
Include prediction summary
Special Markers:
Jupiter Years: Blue markers - potential expansion/bull markets
Neptune Years: Purple markers - cycle endings/uncertainty
Saturn/Uranus Years: Red markers - contraction/revolution
Progress Bar:
Shows current position in 10-year cycle
Indicates years remaining to next Jupiter year
Using the Astrological Calendar
The bottom-right calendar shows:
Daily phases: Current planetary influences
Monthly phases: Broader monthly trends
Trend signals: Daily/monthly direction indicators
Quarterly overview: Longer-term perspectives
Practical Trading Application
Long-term Planning:
Use Jupiter year markers for potential bull market entries
Be cautious during Saturn/Pluto years (potential bear markets)
Note cycle transitions (Neptune years) for market shifts
Medium-term Analysis:
Consider monthly planetary changes for quarterly planning
Use element relationships to understand sector rotations
Short-term Awareness:
Check daily phases for potential reversal days
Monitor trend changes at month transitions
Risk Management:
Reduce position size during low-confidence periods
Increase vigilance during transition years
Use astrological signals as confluence with technical analysis
Alerts System
Enable alerts to receive notifications for:
Year transitions
Important astrological events
Cycle beginnings/endings
Important Notes
Theoretical Nature: This indicator is based on astrological theory, not financial advice
Confluence Trading: Use alongside traditional technical analysis
Backtesting: Always test strategies before live implementation
Risk Management: Never rely solely on astrological signals for trading decisions
Customization Tips
Label Overlap: Adjust label spacing if labels overlap
Performance: Reduce max_lines_count/max_labels_count if experiencing lag
Color Schemes: Customize colors to match your chart theme
Positioning: Adjust marker positions based on your chart's volatility
Disclaimer
This indicator is for educational and research purposes only. It combines astrological theory with technical analysis for experimental purposes. Past performance does not guarantee future results. Always conduct your own research and consult with financial advisors before making trading decisions.
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
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Infinity RSI📌 Infinity RSI is an analytical indicator that integrates RSI-based trend fluctuations, momentum changes, and volatility structures into a single system.
It features an independent module that scales and displays RSI information on a price chart, and a Supertrend line that changes color according to RSI conditions, allowing you to simultaneously monitor price, momentum, and volatility.
This indicator does not determine a specific direction or guarantee trading results, but rather serves as a reference tool for interpreting market conditions.
■ Calculation Logic
● ① Basic Supertrend (Price-based)
The upper and lower bands are calculated based on the ATR (period and multiple),
and the Supertrend direction is determined based on which band the current price is above or below.
The Supertrend line color changes depending on whether the RSI value is above or below 50.
● ② Extended RSI Calculation
Two methods are provided:
Standard RSI
HMA-based Smoothed RSI
RSI length and smoothing duration are customizable.
Each option has a different purpose, depending on whether you want to interpret momentum changes more gently or more sensitively.
● ③ User-selectable RSI Moving Average
Select from SMA, EMA, HMA, WMA, RMA, and VWMA based on the RSI.
This auxiliary line visually identifies directional deviations in the RSI.
● ④ RSI-based Supertrend
This is one of the indicator's core and unique elements.
The existing Supertrend logic is applied to "RSI values" instead of "price."
It creates an RSI-based ATR band structure and then converts it to a price chart scale.
(Since the RSI range is 0-100, it cannot be directly displayed on the chart.)
Conversion Process:
The RSI Supertrend value is linearly mapped to the recent RSI range → price range.
This process outputs the RSI volatility-based trend in a form that can be directly visualized on the actual price.
■ How to Use
● Price-Based Supertrend + RSI Condition Color
If the RSI is above 50, it is considered a relative strength condition and is displayed in an uptrend color.
If the RSI is below 50, it is displayed in a downtrend color.
→ Supertrend visually distinguishes trend fluctuations.
● Utilizing RSI Moving Averages
The distance or crossover between the RSI and the RSI-MA is used to compare short-term market momentum.
● RSI Supertrend (Scalable)
This module helps interpret RSI movements on a chart "in the same form as price."
Usage Example:
If the RSI trend is strengthening but the price is weak → Check the price response relative to momentum.
Comparing RSI Supertrend and Price Supertrend Transitions
Useful for structural analysis of the gap between the two trends.
The advantage of this module is that it allows you to compare price and RSI changes on a single screen using the same criteria.
■ Visual Elements
Supertrend (Price-Based)
Automatically changes up/down colors based on RSI conditions
Trend lines displayed in a stepline format
RSI Supertrend (Converted to price scale)
Stepline Diamond Style
Reflects specified up/down colors
RSI Moving Average
Displayed with user-selected MA type
Each element does not use strong arrows or buy/sell icons,
and is designed to intuitively observe price, momentum, and volatility trends.
■ Input Parameters
● Price-Based Module
ATR Length
ATR Multiplier
RSI Length
RSI Source
● RSI Settings
RSI Length
RSI Smoothing and Period
MA Length and Type Selection (SMA/HMA/EMA/SMMA/WMA/VWMA)
MA Display
● RSI Supertrend Settings
Factor
ATR Length
● Color Settings
Up Color
Down Color
● Scale Conversion
Lookback Period (for price range/RSI range calculation)
All parameters adjust the sensitivity, response speed, and smoothness of the results.
They are not intended for price prediction or automatic trading signal generation.
■ Repaint Function
Supertrend, RSI Calculation, Moving Average, ATR Calculation
→ No repainting as the values are determined based on the closing price.
RSI Supertrend Scale Conversion
Within the lookback interval used for conversion, the lowest and highest values may be updated during bar printing.
This is a real-time update and is not a recalculation or repaint.
Due to the nature of the indicator, values may change in real-time candlesticks.
The values are fixed when the candlestick closes completely.
■ Purpose
Infinity RSI was designed to facilitate the following analyses:
Observe the flow of RSI-based momentum along with the trend structure.
Map a volatility-based RSI Supertrend directly onto the price.
Compare the inter-structural differences between price-based and RSI-based Supertrends.
Visually interpret the relationship between RSI volatility and actual price, rather than simply reading the RSI value.
This is an analytical tool for intuitively understanding market components, not a tool that provides a conclusion about a specific market direction.
■ Precautions and Limitations
Volatility exists in real-time candlesticks, which is a normal behavior and not a repaint.
Parameters are for data interpretation purposes only and should not be used as entry or exit signals.
Supertrend intervals may vary widely or narrowly depending on market volatility.
EV Pro+Signal📌 EV Pro+Signal is a multifactor analysis tool that integrates multiple moving average structures, Supertrend Cloud, trend level boxes, lines, value area analysis, and volume profiles into a single indicator.
Each module provides different market information, allowing users to simultaneously observe trends, value, volume, and status changes.
This indicator is designed to aid in the visualization of price movements and structural analysis.
■ Calculation Logic
● Moving Average System (MA Framework)
Provides various MA types, including EMA, SMA, HMA, RMA, WMA, LSMA, VWMA, and SMMA.
Checks the multi-alignment status based on the length set from MA1 to MA5.
Calculates the current structural trend based on whether MAs are aligned upward or downward.
● Bullish/Bearish Conditions
Simplified structural assessment based on the relative positions of MA1 to MA5.
MA1 > MA2 > MA3 …: Bullish alignment.
MA1 < MA2 < MA3 …: Bullish alignment. : Downward alignment
(Indicates a structural alignment, not a definitive signal)
● Supertrend Cloud
ATR-based Supertrend
Color-coded by trend direction
Crossover is used as a reference for determining structural changes.
● Trend Level Box (ZLMA-based)
The intersection of the ZLMA and EMAValue is recognized as a structural change point.
A box is created at that point and then expanded to the right with a fixed width.
The top and bottom of the box represent structural levels with support and resistance characteristics.
● Value Area (POC / VAH / VAL)
Volume distribution over the last N intervals.
POC = Price with maximum trading volume.
VAH / VAL = Top and bottom of the Value Area.
Visualized as a box.
● Linear Regression-based Guidelines
Generates guidelines extrapolated from the current slope.
This function does not predict actual prices, but rather "a hypothetical path if the current slope is maintained."
● Right Volume Profile
The price range within the Lookback is divided into horizontal intervals.
The volume for each level is accumulated. Displayed as a heatmap
Color-coded based on upward/downward pressure (delta).
■ How to Use
● Trend Determination
MA Alignment Status
Supertrend Direction
Relative Position of ZLMA and EMAValue
The sections where these three elements move together demonstrate a structurally consistent trend.
● Setting Areas of Interest
Top/Bottom of the Trend Level Box
Value Area Box (VAH/VAL)
Supertrend Line
Right Volume Profile Area
These represent price ranges where the market has reacted in the past,
so users can observe and utilize these sections.
● Selective Use of Each Module
Each function is designed independently,
enabling only the modules you need.
■ Visual Elements
MA 1-5: Indicates uptrend/downtrend based on color changes
Long/Short Markers: Visual indicator based on simple structure alignment
Supertrend Cloud: Highlights trend direction in a cloud format
Trend Level Box: Displays level boxes based on the ZLMA
Value Area Box: Displays VAH/VAL ranges
Linear Projection Line: Displays future guidance lines
Volume Profile: Heatmap of trading volume on the right price range
Probability Table: Summary table of uptrend/downtrend strength
Overall, the chart provides intuitive visual representations of all the elements necessary for chart interpretation.
■ Input Parameters
● Moving Average (MA) Related
MA Type
MA Length (1-5)
Individual MA Activation Options
→ Determines the calculation method and length of each moving average.
● Supertrend
ATR Length
ATR Multiplier
→ Adjusts the Supertrend width and response speed.
● Trend Level Box
Sensitivity (length) Input
→ Changes the EMA interval used for ZLMA calculations.
Select Theme Color
→ Specify Rising/Bearing Colors.
● Value Area
Bar Size
Value %
→ Controls the interval used for VAH/VAL calculations.
● Prediction
Prediction Length
Linear Regression-Based Slope Extrapolation
→ Change the number and style of future lines.
● Volume Profile
Lookback
Price Levels
Color/Transparency
→ Adjusts the degree of volume decomposition by price range.
Each input value changes the visual representation or calculation sensitivity, and is not intended to directly generate trading signals.
■ Repaint Operation
MA / Supertrend / Value Area / Volume Profile
→ No repaint if confirmed based on the closing price.
Trend Level Box (ZLMA Box)
→ The box is created immediately after the crossover of the real-time candlestick, so the value may be updated in real-time.
Prediction Line
→ As this is a future guide, differences may occur when actual prices are formed.
※ There is no repainting of past data after the signal is confirmed.
■ Purpose
EV PRO+Signal is an analytical tool that comprehensively visualizes trends, structure, volume, price range, slope, and strength as a single indicator, allowing users to observe market changes from various perspectives.
This indicator is not intended to predict or guarantee trading decisions, but rather to help users understand the price structure.
■ Precautions and Limitations
All modules are for reference only for market interpretation.
Independent calculations alone cannot determine market direction.
Some modules, such as Value Area and Projection Line, are generated based on historical data and therefore may vary depending on real-time fluctuations.
Due to their complex structure, volatility may appear high on lower timeframes.
Indicators only indicate the timing of structural changes, not trading signals.
The forecast function does not guarantee actual future prices.
Area Trigger Line📌The Area Trigger Line is an analytical tool that detects trend reversals based on the Supertrend, sets an ATR-based range after the reversal, and visually displays the moment when the price breaks out of that range.
This auxiliary indicator is designed to observe the expansion of price structures by combining volatility and trend reversals.
■ Calculation Logic
Supertrend Calculation
The indicator uses the built-in function ta.supertrend() to calculate the trend reversal value (stValue) and direction (stDirection).
If the direction is negative, it is indicated as an uptrend.
If the direction is positive, it is indicated as a downtrend.
The Supertrend is the indicator's key reference point, and a trend reversal is detected when the price crosses it.
ATR-based Trigger Range
The volatility range is calculated using the ATR (Average True Range) and the ATR is applied to the closing price at the reversal point to create an upper or lower range.
Upward Reversal: Close Price + ATR Range
Bearing Reversal: Close Price – ATR Range
This range is used as a trigger line, and structural changes are indicated when the price subsequently breaks out of the range.
Zone Breakout Conditions
The conditions when the price breaks out of the established range are determined by longBreak/shortBreak.
This value is a visual indicator based on simple comparison and does not provide definitive signals or predictions.
■ How to Use
Trend Reversal Detection
When a candlestick crosses a Supertrend, a new reversal point is created, and a volatility-based trigger range is set at that point.
Trigger Range Observation
The range that appears immediately after a Supertrend reversal is used to structurally confirm the potential for price expansion.
Flow analysis can be focused on whether the price remains within or breaks out of this range.
Zone Breakout Confirmation
A triangle marker appears on the chart when the price breaks out of the upper or lower range.
The purpose of this indicator is to highlight movements beyond a specific range.
It is not intended to be interpreted as a trading signal or guarantee future direction.
Visual Highlighting
Candlesticks that have broken out are highlighted with a background color, making it easy to identify structural changes.
■ Visual Elements
Supertrend Line:
Rising condition → Green line
Bearing condition → Red line
ATR Trigger Range:
The upper and lower ranges established after a reversal are displayed as step-like lines.
Visually confirms volatility thresholds.
Breakout Marker:
Triangles are displayed when a range is broken.
Rising breakout → Triangles at the bottom.
Bearing breakout → Triangles at the top.
Candlestick Color Highlighting:
Candlesticks that have broken out are displayed in a semi-transparent color.
Each element is visual information intended to identify structural changes and does not provide any predictive functionality.
■ Input Parameters
Supertrend Settings
ATR Length: The ATR period used to calculate the Supertrend.
Multiplier: A multiplier that determines the threshold for trend reversals.
ATR Range Settings
ATR Range Length: The ATR period used to calculate the trigger range.
ATR Range Multiplier: A multiplier that adjusts the range size.
All input values affect the indicator's sensitivity and visual range adjustments.
There is no guarantee of results or ability to generate a specific direction.
■ Repaint Functionality
Supertrend and ATR calculations are based on confirmed historical data, so
repaints do not occur for already closed candles.
The trend direction may change in active candles.
This is a normal real-time update due to the nature of the calculation method.
■ Purpose
The purpose of the Area Trigger Line is to:
Identify whether the price structure has expanded after a trend reversal.
Visualize trigger ranges based on volatility.
Highlight structural changes in price movement.
The indicator does not predict future market movements or provide specific conclusions.
It is used as a tool to assist analysis.
■ Cautions and Limitations
ATR-based ranges are relative and may widen or narrow depending on market volatility.
In a sideways market, the Supertrend can change frequently, resulting in frequent updates to the range.
The Breakout Marker is a simple visual trigger indicator and is not suitable as a standalone trading criterion.
It is more effective when used in conjunction with other indicators or price structure analysis.
Since real-time candlesticks can change in value, established structures should be interpreted based on the closing candlestick.
Multi-Timeframe CPR Pattern AnalyzerMulti-Timeframe CPR + Advanced Pattern Analyzer
A powerful, all-in-one indicator designed for professional price-action traders who use CPR (Central Pivot Range) as the core of their intraday, positional, and swing-trading strategies.
This script automatically plots Daily, Weekly, and Monthly CPR, identifies major CPR patterns, highlights Developing / Next CPR, and displays everything neatly in an interactive dashboard.
✨ Key Features
1️⃣ Daily, Weekly & Monthly CPR
Fully configurable CPR for all three timeframes
Clean plots with no vertical connector lines
Automatic zone shading
Adjustable line width, transparency, and colors
2️⃣ Support & Resistance (S1–S3, R1–R3)
Choose which timeframe’s S/R you want
Only plotted for the current day/week/month (no cluttering past charts)
Helps traders identify reaction zones and breakout levels
3️⃣ Next / Developing CPR
A unique feature rarely found in CPR indicators.
You can display:
Developing Daily CPR
Developing Weekly CPR
Next Monthly CPR (after month close)
All next/developing CPRs are plotted in a dashed style with optional transparency, plus labels:
“Developing Daily CPR”
“Developing Weekly CPR”
“Next Weekly CPR”
“Next Monthly CPR”
This allows you to anticipate the next session’s CPR in advance, a major edge for intraday, swing, and options traders.
4️⃣ Advanced CPR Pattern Detection
The script automatically detects all important CPR market structures:
📌 Narrow CPR
Uses statistical percentiles based on historical CPR width
Helps identify potential high-volatility breakout days
📌 CPR Width Contraction
Detects compression zones
Excellent for identifying trending days after tight ranges
📌 Ascending / Descending CPR
Bullish trend continuation (Ascending)
Bearish trend continuation (Descending)
📌 Virgin CPR
Highlights untouched CPR zones
Strong support/resistance zones for future days/weeks
📌 Overshoots
Detects:
Bullish Overshoot
Bearish Overshoot
Useful for understanding trend exhaustion.
📌 Breakouts
Identifies when price breaks above TC or below BC, signaling trend shifts.
📌 Rejections
Shows wick-based CPR rejections — reversal cues used by many price-action traders.
5️⃣ CPR Pattern Dashboard
A beautifully formatted dynamic table showing:
For Daily, Weekly, Monthly:
TC, Pivot, BC values
Current CPR Pattern
CPR Width with %
+ Next/Developing CPR values and patterns (for Daily/Weekly)
No need to manually calculate anything — everything is displayed in a clean, compact panel.
6️⃣ Completely Dynamic Across Timeframes
Works on all intraday, daily, weekly, and monthly charts
Automatically adjusts CPR length based on chart timeframe
Perfect for NIFTY, BANKNIFTY, FINNIFTY, stocks, crypto, forex
7️⃣ Alerts Included
Receive alerts for:
Narrow CPR formation
Virgin CPR
CPR breakouts
Pattern transitions
Great for traders who want automated monitoring.
8️⃣ Clean Chart, No Clutter
The script includes:
No vertical connecting lines
S/R only on the current period
Smart hiding of CPR on boundaries (to avoid "jump lines")
Fully toggleable features
You get a professional-grade, clutter-free CPR experience.
🎯 Why This Indicator?
This script goes beyond standard CPR tools by offering:
Next AND Developing CPR
Multi-timeframe CPR analysis
Professional CPR pattern detection
Smart dashboard visualization
Perfect setup for trend traders, reversal traders, and breakout traders
Whether you're scalping, day trading, swing trading, or doing positional analysis — this tool gives you context, structure, and precision.
📌 Recommended Use Cases
Intraday index trading (NIFTY, BANKNIFTY, NIFTY 50 Stocks)
Swing trading stocks
Crypto CPR analysis
Options directional setups
CPR-based breakout and reversal strategies
Trend continuation identification
Understanding volatility days (Narrow CPR Days)
⚠️ Disclaimer
This is a technical tool for chart analysis and does not guarantee profits. Always combine CPR analysis with price action, volume, and risk management.
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.
FLUXO COMPRA E VENDA MGThe “FLUXO COMPRA E VENDA MG” indicator is a scoring-based system designed to evaluate buying and selling pressure by combining trend, volume, order flow, momentum, and Smart Money concepts (liquidity, sweeps, and FVG).
It does not rely on a single condition. Instead, it aggregates multiple weighted factors and only generates buy or sell signa
AlphaWave Band + Tao Trend Start/End (JH) v1.1AlphaWave Band + Tao Trend Start/End (JH)
이 지표는 **“추세구간만 먹는다”**는 철학으로 설계된 트렌드 시각화 & 트리거 도구입니다.
예측하지 않고,
횡보를 피하고,
이미 시작된 추세의 시작과 끝만 명확하게 표시하는 데 집중합니다.
🔹 핵심 개념
AlphaWave Band
→ 변동성 기반으로 기다려야 할 자리를 만들어 줍니다.
TAO RSI
→ 과열/과매도 구간에서 지금 반응해야 할 순간을 정확히 짚어줍니다.
🔹 신호 구조 (단순 · 명확)
START (▲ 아래 표시)
추세가 시작되는 구간
END (▼ 위 표시)
추세가 종료되는 구간
> 중간 매매는 각자의 전략 영역이며,
이 지표는 추세의 시작과 끝을 시각화하는 데 목적이 있습니다.
🔹 시각적 특징
20 HMA 추세선
상승 추세: 노란색
하락 추세: 녹색
횡보 구간: 중립 색상
기존 밴드와 세력 표시를 훼손하지 않고
추세 흐름만 직관적으로 강조
🔹 추천 사용 구간
3분 / 5분 (단타 · 스캘핑)
일봉 (중기 추세 확인)
> “예측하지 말고, 추세를 따라가라.”
---
📌 English Description (TradingView)
AlphaWave Band + Tao Trend Start/End (JH)
This indicator is designed with one clear philosophy:
“Trade only the trend.”
No prediction.
No noise.
No meaningless sideways signals.
It focuses purely on visualizing the START and END of trend phases.
🔹 Core Concept
AlphaWave Band
→ Defines where you should wait based on volatility.
TAO RSI
→ Pinpoints when price reaction actually matters near exhaustion zones.
🔹 Signal Logic (Clean & Minimal)
START (▲ below price)
Marks the beginning of a trend
END (▼ above price)
Marks the end of a trend
> Entries inside the trend are trader-dependent.
This tool is about structure, not over-signaling.
🔹 Visual Design
20 HMA Trend Line
Uptrend: Yellow
Downtrend: Green
Sideways: Neutral
Trend visualization without damaging existing bands or volume context
🔹 Recommended Timeframes
3m / 5m for scalping & intraday
Daily for higher timeframe trend structure
> “Don’t predict. Follow the trend.”
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)






















