Prev Day ±1% BoundaryThis indicator plots dynamic intraday price bands based on the previous day’s close. It calculates a reference price using yesterday’s daily close and draws:
An upper boundary at +1% above the previous close
A lower boundary at –1% below the previous close
These levels are shown as horizontal lines across all intraday bars, with an optional shaded zone between them.
How to use:
Use the boundaries as intraday reference levels for potential support, resistance, or mean-reversion zones.
When price trades near the upper band, it may indicate short-term extension to the upside relative to the prior close.
When price trades near the lower band, it may indicate short-term extension to the downside.
The shaded region between the lines highlights a ±1% normal fluctuation zone around the previous day’s closing price.
This tool is especially useful for intraday traders on indices like SPX, providing quick visual context for how far price has moved relative to the prior session’s close.
Chart patterns
ZKNZCN Önceki Bar H/L (Ayrı Kontrol)Bir önceki barın high & low noktalarını çizgi halinde görmeyi sağlar.
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
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)
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)
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.
INAZUMA Bollinger BandsThis is an indicator based on the widely used Bollinger Bands, enhanced with a unique feature that visually emphasizes the "strength of the breakout" when the price penetrates the bands.
Main Features and Characteristics
1. Standard Bollinger Bands Display
Center Line (Basis): Simple Moving Average (\text{SMA(20)}).
1 sigma Lines: Light green (+) and red (-) lines for reference.
2 sigma Lines (Upper/Lower Band): The main dark green (+) and red (-) bands.
2. Emphasized Breakout Zones: "INAZUMA / Flare" and "MAGMA"
The key feature is the activation of colored, expanding areas when the candlestick's High or Low breaks significantly outside the \pm 2\sigma bands.
Upper Side (Green Base / Flare):
When the High exceeds the +2\sigma line, a green gradient area expands upwards.
Indication: This visually suggests strong buying pressure or overbought conditions. The color deepens as the price moves further away, indicating higher momentum.
Lower Side (Red Base / Magma):
When the Low falls below the -2 sigma line, a red gradient area expands downwards.
Indication: This visually suggests strong selling pressure or oversold conditions. The color deepens as the price moves further away, indicating higher momentum.
Key Insight: This visual aid helps traders quickly assess the momentum and market excitement when the price moves outside the standard Bollinger Bands range. Use it as a reference for judging trend strength and potential entry/exit points.
Customizable Settings
You can adjust the following parameters in the indicator settings:
Length: The period used for calculating the Moving Average and Standard Deviation. (Default: 20)
StdDev (Standard Deviation): The multiplier for the band width (e.g., 2.0 for -2 sigma). (Default: 2.0)
Source: The price data used for calculation (Default: close).
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.
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.
ICT Macro Tracker - Study Version (Original by toodegrees)This indicator is a modified study version of the ICT Algorithmic Macro Tracker by toodegrees, based on the original open-source script available at The original indicator plots ICT Macro windows on the chart, corresponding to specific time [ periods when the Interbank Price Delivery Algorithm undergoes checks/instructions (aka "macros") for the price engine to reprice to an area of liquidity or inefficiency.
This study version adds functionality to hide bars outside macro periods. When enabled, the indicator draws boxes that cover the full chart height during non-macro periods, obscuring those bars so only macro periods are visible. This helps focus on macro-only price action. The feature is configurable, allowing users to enable or disable it and customize the box color. All original functionality remains intact.
Ahmed Gold Signals - 5M LIVE (Frequent)📈 Gold (XAUUSD) Trading Signals – Precision-Based Strategy
Our Gold signals are built on pure price action, not random indicators or guesswork.
🔍 How our signals are generated
We focus on:
🧲 Liquidity Sweeps
Identifying when price grabs stop-losses above highs or below lows and then reverses
📊 Clear trend direction using EMA 50 & EMA 200
✅ Strong confirmation candles after the sweep
🎯 Entries only in the direction of the trend to increase accuracy
🔵 BUY Signals
Bullish market structure
Price sweeps liquidity below recent lows
Strong bullish confirmation candle closes
➡️ High-probability BUY setup
🔴 SELL Signals
Bearish market structure
Price sweeps liquidity above recent highs
Strong bearish confirmation candle closes
➡️ High-probability SELL setup
⏱️ Timeframe
5-minute chart (5M)
Fast, precise signals ideal for scalping Gold
🛡️ Risk Management
Stop loss placed beyond the liquidity sweep
Clear take-profit targets
Risk-to-reward typically 1:2 or better
⚠️ Important Notes
We do not trade every move
We wait for confirmation
Quality over quantity — always
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)




















