3 Lines RCI + Psy Signal + RSI Background📌 3 Lines RCI + Psy Signal + RSI Background
This indicator combines three RCI lines, Psychological Line signals, RSI-based background highlights, and ADX strength detection to visualize market momentum, trend strength, and potential reversal zones.
🔍 Main Features
📌 1. Triple RCI (Rank Correlation Index)
Displays Short / Mid / Long RCI
Detects momentum shifts and trend reversals
Highlight zones:
Overbought: +80 ~ +100 (Red Zone)
Oversold: -80 ~ -100 (Green Zone)
📌 2. Psychological Line Signal
Column bars appear only in extreme conditions:
Overbought → Red Bars
Oversold → Green Bars
Helps detect short-term sentiment extremes
📌 3. RSI Background Highlight
Red Background: RSI > Overbought threshold
Green Background: RSI < Oversold threshold
Provides a visual cue of underlying market pressure.
📌 4. ADX Trend Strength
ADX line color shows strength level:
Blue: Weak trend
Yellow: Moderate trend
Red: Strong trend
Useful to identify whether signals occur in a trend or range state.
🎯 Trading Usage Tips
RCI + RSI + Psy confluence can identify strong reversal timing.
Use signals only when ADX is weak or moderate to avoid counter-trading a strong trend.
Combine short/mid RCI crossovers with extreme zones for potential entry timing.
⚙️ Suitable For
Scalping, day trading, swing trading
Stocks, Forex, Crypto, Indices, Commodities
אינדיקטורים ואסטרטגיות
FlowTrinity — Crypto Dominance Rotation IndexFlowTrinity — Crypto Dominance Rotation Index
(Tracks BTC / Stablecoin / Altcoin dominance flows with standardized oscillators)
⚪ Overview
FlowTrinity decomposes total crypto market structure into three capital-flow regimes — BTC dominance, Stablecoin dominance, and Altcoin dominance — each normalized into oscillator form. Additionally, a fourth histogram tracks Total Market Cap expansion/contraction relative to BTC+Stable capital, revealing underlying rotation pressure not visible in raw dominance charts.
Each component is standardized through SMA/STD normalization, producing smoothed 0–100 style oscillations that highlight overbought/oversold rotation extremes, risk-on/risk-off transitions, and capital cycle inflection zones.
⚪ Flow Components
Stablecoin Dominance Oscillator —White line
Measures the combined USDT + USDC share of market dominance.
High values indicate increased hedging behavior or sidelined capital.
Low values coincide with renewed risk appetite and capital deployment into crypto assets.
Altcoin Dominance Oscillator — Orange Line
Tracks the share of liquidity rotating into altcoins (Total – BTC – Stable).
Rising values indicate broad market expansion and speculative activity.
Falling values reflect flight-to-safety or concentration back into majors.
BTC Dominance Oscillator — Purple line(off by default
Normalized BTC dominance revealing transitions between Bitcoin-led markets and altcoin-led cycles. Useful for identifying BTC absorption phases vs. altcoins dispersion regimes.
Total–BTC–Stable MarketCap Difference Histogram — histogram
A normalized histogram of total market cap change minus BTC+Stable market cap change.
• Positive → altcoin segment expanding
• Negative → capital retreating into BTC or stables
Acts as a structural layer confirming or contradicting dominance-based signals.
Normalization Logic
All flows use SMA + standard deviation scaling (lookback 7 / smoothing 7), enabling consistent comparison across unrelated dominance and market-cap metrics.
⚪ Use Cases
• Identify shifts between BTC-led and alt-led markets
• Detect early signs of liquidity rotation
• If Stablecoin OSC is oversold, liquidity may soon rotate to BTC or Altcoins, signaling potential price moves.
• If Stablecoin OSC is overbought and Altcoin OSC is oversold, it can indicate an early buying opportunity in Altcoins.
• Watching these oscillator positions helps spot early market rotations and plan entries or exits.
snapshot
Disclaimer
This indicator is for educational and informational purposes only and does not constitute financial advice or investment guidance. Cryptocurrency trading involves significant risk; you are solely responsible for your trading decisions, based on your financial objectives and risk tolerance. The author assumes no liability for any losses arising from the use of this tool.
KIMATIX INFOS – CoreKIMATIX INFOS – Core is a professional trend and entry framework designed to identify market regime shifts, confirm directional bias, and generate high-probability trade signals.
This system blends volume flow, higher-timeframe directional context, and momentum behavior to detect genuine trend transitions while filtering out chop and noise. Trend phases are visualized through an adaptive channel, and trade signals only trigger when structure, bias, and momentum align.
The indicator displays:
Validated trend phases via dynamic trend channels
Long/Short bias based on delta flow and directional structure
Hybrid entry signals combining momentum, structure, and trend
Visual signals for the most recent trend shifts
Built for traders who want clean trend entries, controlled pullback timing, or early trend reversal detection.
Works as a standalone tool or as a modular core logic inside automated systems.
Key Features
• Trend filter to separate trending vs. sideways markets
• Adaptive channel acting as dynamic support/resistance
• Hybrid signal engine that activates only with confirmed trend context
• Arrow markers displaying the latest trend initiations
• Ready-to-use alert conditions for automatic signaling
Benefits for Traders
• Avoids chop and false breakouts
• Captures impulsive directional movement precisely
• Provides clear market direction and real-time validation
• Suitable for scalpers, day traders, and swing traders
• Supports institutional logic
CISD Trend Candle - EMA + Always MACDThis indicator combines trend detection using EMA with constant MACD cross signals to provide a clear visual understanding of market direction and potential entry/exit points.
■ 1. Trend Detection with EMA (Candle Coloring)
Calculates an EMA (default: 21).
Checks whether the last n candles (default: 5):
Close above the EMA → Uptrend (Blue candles)
Close below the EMA → Downtrend (Red candles)
Otherwise → Neutral (Gray candles)
Candle colors automatically change to show the current market trend at a glance.
■ 2. Always-Visible MACD Golden/Dead Cross Signals
Based on MACD settings (12, 26, 9)
Golden Cross → Blue upward triangle below the bar
Dead Cross → Red downward triangle above the bar
Signals are always displayed, regardless of trend state, making them useful for timing entries and exits.
■ 3. EMA Line Display
The EMA used for trend detection is plotted as an orange line.
🎯 Ideal Use Cases
This indicator is designed for traders who want to:
Quickly visualize trend direction through candle colors
Always monitor MACD cross signals
Improve decision-making with simple, intuitive visual cues
SK Divergence OverlayThis Pine Script indicator, named "SK Divergence Overlay," is designed to automatically detect and visualize both regular and hidden divergences between an asset's price action and the SK. The indicator plots directly onto the main price chart, not in a separate pane.
Here is a breakdown of its features and logic:
Core Concept: Divergence
Divergence occurs when the price of an asset moves in the opposite direction of a technical indicator (in this case, the SK). This often signals a potential reversal or continuation in the market trend.
Regular Divergence: Suggests a trend reversal.
Bullish (Buy Signal): Price makes a lower low, but the SK makes a higher low.
Bearish (Sell Signal): Price makes a higher high, but the SK makes a lower high.
Hidden Divergence: Suggests a trend continuation.
Bullish (Continuation): Price makes a higher low, but the SK makes a lower low.
Bearish (Continuation): Price makes a lower high, but the SK makes a higher high.
Indicator Components and Settings
The script uses several user-configurable inputs:
SK Length (SK Length): The lookback period for the SK calculation (default: 14 bars) .
Pivot Length: The sensitivity of the pivot detection for both price and SK (default: 5 bars). A pivot is confirmed only after this many bars have passed without a higher high or lower low, allowing the script to identify significant swing points.
Visibility Toggles: Checkboxes to show/hide regular divergences, hidden divergences, the connecting lines, and the buy/sell signal markers.
Colors: Customizable colors for each type of bullish and bearish signal.
How It Works
OANDA:XAUUSD OANDA:EURUSD TVC:DXY TVC:USOIL OANDA:EURCHF
SK Calculation: The script calculates the SK using the closing price and the specified skLength.
Pivot Detection: It uses the built-in Pine Script functions ta.pivotlow and ta.pivothigh to identify significant swing points (pivots) on both the price chart and the SK line.
Divergence Logic: The script compares the current confirmed pivot points with the previously stored pivot points. It checks the criteria for all four types of divergence (Bullish Regular, Bullish Hidden, Bearish Regular, Bearish Hidden) .
Visualization:
Lines: If enabled, colored lines are drawn connecting the actual price pivots where the divergence occurs.
Markers: Small triangles are plotted below (bullish) or above (bearish) the price bars when a divergence is confirmed, shifted back in time using offset=-pivotLen to mark the exact bar where the pivot was established .
Tamil | Trend Signal Dashboard for trading“Tamil | Trend Signal in Dashboard” is a multi-confirmation trend and signal tool that combines Supertrend, RSI/ADX trend strength, and dual QQE into one clean dashboard on the chart. It only prints STRONG BUY / STRONG SELL when all components align, and it also gives clear, rule-based exit signals.
⸻
What it uses
• RSI + ADX + ATR trend block
• ADX (with custom length & threshold) to measure trend strength
• +DI / –DI to define bullish or bearish direction
• Optional session filter so signals only appear in your trading window
• Custom Supertrend
• ATR-based bands with adjustable period & multiplier
• Plots trend line on chart and shows Buy/Sell flip labels when Supertrend reverses
• Dual QQE MOD engine
• Two QQE/RSI streams (primary & secondary)
• Bollinger bands around QQE line to confirm true momentum breakouts
• Defines QQE Bullish / Bearish states
• Secondary RSI Histogram logic
• Tracks RSI distance from the 50 line
• Detects “peak & decline” on the histogram for momentum-based exits
⸻
Signals & Exits
• Entry
• Strong Buy: Supertrend bullish + strong ADX + DI bullish + QQE bullish
• Strong Sell: Supertrend bearish + strong ADX + DI bearish + QQE bearish
• Background is softly colored green/red while alignment is active
• Exit (configurable)
• Alignment lost (trend components no longer agree), and/or
• First peak-and-decline in the secondary RSI histogram
• Shows Exit Buy / Exit Sell markers and fires dedicated alerts
⸻
Dashboard & Alerts
A compact table in the top-right shows live status of:
• Supertrend
• ADX value & strength check
• Direction from DI
• QQE state
• Secondary RSI histogram slope
• Overall Alignment and current Signal (Hold / Strong Buy / Strong Sell / Exit)
Liquidity Sweep System v1 — CLEAN MODE + ICT FVG & OBLiquidity Sweep System v2.3.5 — WarRoom Edition is a high-performance Smart Money Concepts tool designed for scalpers, day traders, and institutional-style traders.
Built around precise price-action logic, it automatically detects:
🔹 Liquidity Sweeps (Buy-side & Sell-side)
Using wick-strength + volume-optional validation.
🔹 BOS (Break of Structure)
Displayed as clean directional labels.
🔹 CHoCH (Change of Character)
With optional structural confirmation.
🔹 ICT Standard FVG (Fair Value Gaps)
True ICT logic: candle-1 displacement > candle-3, zero repainting.
🔹 ICT Strict Order Blocks
Last opposite candle before a displacement-confirmed BOS.
🔹 HTF Structure Filter
Confirms trades only when aligned with higher timeframe trend.
🔹 Auto-Entry Mode
Smart retest logic + optional confirmation candle + ATR-based SL/TP.
🔹 Clean Mode (Ultra Minimal Chart)
Removes all lines and keeps only the most relevant SMC signals.
⭐ FEATURE HIGHLIGHTS
✔ Works on all timeframes
Structure, FVG, OB, and sweeps auto-adjust to the current chart.
✔ No repainting on BOS, CHoCH, FVG, or OB
Everything is displacement-confirmed.
✔ Toggle Visibility
You can enable or disable each of these individually:
-ICT FVG
-ICT OB
-BOS
-CHoCH
-Sweep Lines
-Clean Mode
✔ Optimized for high-volatility assets
XAUUSD, NAS100, US30, Crypto, FX.
⭐ HOW TO USE THIS INDICATOR
This is a quick trading workflow for maximum edge using SMC:
1️⃣ Identify Liquidity Sweeps
BUY SWEEP → Wicks below liquidity, then closes above.
SELL SWEEP → Wicks above liquidity, then closes below.
Sweeps reveal where the market collected liquidity.
Interpretation:
Sweeping lows → often leads to a bullish move.
Sweeping highs → often leads to a bearish move.
2️⃣ Look for BOS + CHoCH Labels
These confirm directional intent:
BOS ↑ → bullish continuation
BOS ↓ → bearish continuation
CHoCH ↑/↓ → first sign of reversal
Tip: CHoCH + Sweep = strongest reversal signal.
3️⃣ Use ICT FVG (Imbalance Zones) as Reentry Levels
A Fair Value Gap indicates displacement and institutional inefficiency.
Buy Setup:
After a BUY sweep → watch for price to return into a bullish FVG.
Sell Setup:
After a SELL sweep → watch for a bearish FVG retest.
4️⃣ Use ICT Order Blocks as Decision Points
The strict ICT OB logic finds the last institutional candle before displacement and BOS.
Use OB for:
-Entries
-Rejections
-Stop hunts
-Reversals
-OB + FVG combo = extremely strong confluence.
5️⃣ HTF Confirmation (Optional but Recommended)
Enable HTF mode to restrict trades to:
-HTF structure = bullish → allow LONG setups
-HTF structure = bearish → allow SHORT setups
This reduces false signals dramatically.
6️⃣ Auto-Entry Mode (AI-Style Entry Automation)
Auto-Entry triggers when:
1.A sweep forms
2.Price retests the sweep level within X bars
3.HTF + structure agree
4.(Optional) Candle confirmation
5.ATR stop & TP are auto-calculated
The indicator draws:
-Entry Price
-Stop Loss
-Take Profit
(All hidden in Clean Mode)
7️⃣ Clean Mode (For Scalpers & Minimalists)
Clean Mode ON:
-Removes lines
-Removes clutter
-Shows ONLY labels + boxes for ultra-clear price action
Clean Mode OFF:
-Shows structure lines
-Entry lines
-Sweep lines
-TP/SL levels
Choose depending on trading style.
⭐ Best Strategy Using This Indicator
BUY Example:
1.Market sweeps liquidity below
2.CHoCH ↑ forms
3.Price displaces upward
4.A bullish FVG forms
5.Price returns to fill the FVG
6.Entry inside OB or FVG
7.Ride to BOS or opposite liquidity
SELL Example:
Reverse of above.
ULTRA PLATINUM V51. LONG (BUY) SETUP
When to Enter:
Signal: Wait for a Blue "AL" Label to appear below the candle.
Bar Color: The candle body should turn Green (indicating a strong bullish trend).
Panel Confirmation (Right Corner):
Squeeze Momentum: Should show "MOMENTUM LONG" (Green).
Market Type: Should say "TREND VAR" (Green). If it says "YATAY (RISKLI)" or "CHOPPY", it is better to wait.
EMA Safety: Should say "GÜVENLİ" (Safe).
Action:
Open a Long position at the close of the signal candle.
Stop Loss: Set your SL to the price shown in the Panel under "STOP LOSS".
Take Profit: Set your targets to the prices shown under "KAR AL 1" (TP1) and "KAR AL 2" (TP2).
2. SHORT (SELL) SETUP
When to Enter:
Signal: Wait for an Orange "SAT" Label to appear above the candle.
Bar Color: The candle body should turn Red (indicating a strong bearish trend).
Panel Confirmation:
Squeeze Momentum: Should show "MOMENTUM SHORT" (Red).
Market Type: Should say "TREND VAR".
EMA Safety: Should say "GÜVENLİ".
Action:
Open a Short position at the close of the signal candle.
Stop Loss: Set your SL to the price shown in the Panel under "STOP LOSS".
Take Profit: Use the TP1 and TP2 levels from the Panel.
3. RE-ENTRY STRATEGY (Scaling In)
This feature allows you to increase your position size if the trend continues.
Long Re-Entry: Look for a small Green Triangle below the bar. This means the price pulled back slightly and is now pushing up again (RSI crossover). You can add to your Long position here.
Short Re-Entry: Look for a small Red Triangle above the bar. You can add to your Short position here.
4. CRITICAL WARNINGS (When NOT to Trade)
Gray Candles: If the candles are Gray, the market is indecisive. Avoid entering new positions even if you see a signal.
Squeeze Mode: If the Panel says "SIKIŞMA VAR (BEKLE)" (Squeeze On), it means volatility is very low. A big move is coming, but the direction is uncertain. Wait until the squeeze breaks and the panel changes to Momentum Long or Short.
High Risk: If the panel says "ÇOK YAKIN (RİSK)" regarding the EMA, the price is too close to the 200 EMA. This often acts as a magnet or a wall; proceed with caution.
FAIR VALUE CEDEARSFair Value CEDEARS y ETFs
Important: load together with the CEDEARdata library.
Returns the “Fair Value” of CEDEAR and CEDEAR-based ETF prices traded on ByMA, using as a reference the price of the underlying ordinary share or ETF traded on the NYSE or NASDAQ. It multiplies the NYSE/NASDAQ price by the CEDEAR or ETF conversion ratio and converts the currency to ARS or Dólar MEP using the exchange rate implied by the AL30/AL30C ratio for tickers quoted in ARS (e.g., AAPL) and AL30D/AL30C for tickers quoted in Dólar MEP (e.g., AAPLD).
If the CEDEAR or ETF quote is higher than Fair Value, it highlights the difference in red; if it is lower, it highlights it in green. If any of the markets is closed or in an auction period, it notifies the user and changes the background color.
By default, the CEDEAR or ETF quote used is the last price, but the user may choose to use the BID or OFFER instead. This allows CEDEAR and ETF buyers to compare Fair Value against the OFFER, while sellers may prefer to measure Fair Value against the BID of the local instrument.
BCBA:AAPL
BCBA:AAPLD
NASDAQ:AAPL
BCBA:SPY
BCBA:TSLA
BCBA:TSLAD
CEDEARS
ETFs
ByMA
Momentum Marks - Buy and Sell IndicatorsIndicator Overview
This tool is a multi‑factor entry signal system designed to highlight potential BUY and SHORT opportunities directly on the chart with hard‑anchored labels. It combines trend, momentum, volatility, and volume conditions to reduce noise and provide more reliable trade signals.
Core Components
- EMA Trend Filter
- Uses a fast EMA (9) and a slow EMA (21) to determine short‑term vs. medium‑term trend direction.
- Signals only trigger when price aligns with the EMA relationship (e.g., fast above slow for shorts, fast below slow for buys).
- RSI Extremes
- RSI thresholds (default 65/35) ensure signals occur only when momentum is stretched into overbought or oversold zones.
- Helps avoid false triggers during neutral conditions.
- Linear Regression Channel
- A regression line with ±2 standard deviation bands defines dynamic support and resistance.
- Signals require price to be near the top (for shorts) or bottom (for buys) of the channel, adding a structural filter.
- TTM Squeeze Histogram
- Measures momentum shifts by comparing price to its EMA.
- Signals require histogram confirmation: weakening momentum for shorts, strengthening momentum for buys.
- Volume Confirmation
- Volume must fade for shorts or surge for buys relative to a 20‑period average.
- Ensures signals align with participation strength.
Visual Output
- Red “SHORT” label above bars when all short conditions align.
- Green “BUY” label below bars when all buy conditions align.
- Optional plotshape arrows (triangles) as backup markers.
- Linear regression channel shaded between upper and lower bands.
- EMA lines plotted for trend context.
Key Features
- Hard‑anchored labels: Signals are locked to confirmed bars, preventing repainting or shifting.
- Multi‑layer confirmation: Requires trend, momentum, volume, and structure to align before firing.
- Customizable inputs: Users can adjust EMA lengths, RSI thresholds, regression length, and squeeze parameters.
SK Zones & Signals [CLEVER]This Pine Script indicator, named "SK Zones & Signals", is a customized version of the standard by Sk . It is designed to visually highlight overbought and oversold conditions and generate explicit trading signals within a separate pane below the price chart (overlay=false) .
Key Components
SK Calculation: The core of the indicator is the SK, a momentum oscillator that measures the speed and change of price movements . By default, it uses a 14-period length (skLength).
Zones and Levels: The script defines and visually emphasizes specific threshold levels:
Overbought (OB): The standard level is set at 70.
Oversold (OS): The standard level is set at 30.
Extreme Zones: A shaded "Extreme Overbought Zone" is defined between 80 and 100 (shaded red), and an "Extreme Oversold Zone" is defined between 0 and 20 (shaded lime green).
Midline: A horizontal line is drawn at 50 to indicate the centerline.
Signals: When enabled (showSignals = true), the indicator plots "Buy" and "Sell" labels directly on the chart based on specific crosses:
Buy Signal: Generated when the SK line crosses above the 30 (oversold) level.
Sell Signal: Generated when the SK line crosses below the 70 (overbought) level.
How to Use It
The indicator provides a clear visual representation of market momentum:
Momentum Reading: The aqua line (SK line) indicates current momentum. Readings above 70 suggest the asset may be overbought and due for a reversal, while readings below 30 suggest it may be oversold .
OANDA:XAUUSD TVC:USOIL TVC:DXY OANDA:EURUSD OANDA:XAUUSD
Extreme Conditions: When the line enters the shaded 80-100 red zone or 0-20 green zone, it indicates potentially strong price movements that might exhaust soon .
Signal Interpretation: The "Buy" and "Sell" labels offer potential entry or exit points based on the SK returning from extreme conditions toward the neutral zone .
This script allows traders to easily identify standard and extreme momentum conditions and potential reversal points at a glance.
Alson Chew PAM EXE and Mother BarIndicators for strategies taught by Alson Chew's Price Action Manipulation (PAM) course
Two functions.
First it identifies EXE bars (Pin, Mark, Icecream bars).
Second it identifies Mother bars and draws an extension line for 6 bars.
Applicable to all time frames and can customise how many signals to show.
To be used in conjunction with trading strategies like
- 20 SMA, 50 SMA, 200 SMA FS formation
- Force Bottom, Force Top FS formation
- UR1 and DR1 using EXE Bar
2-Candle Pattern + Highest/Lowest 10 (NLS)...................
Buy - Sell Hight Low Candle
RR 1:3
Winrate: 80%
...............................
Smart Risk Meter (Adaptive v2)How it works
The Smart Risk Meter reads momentum, distance from the long-term trend, and drawdown pressure, then adapts those signals to the asset’s volatility. Low-vol assets get tighter scaling, high-vol assets get wider scaling, so the 0–1 risk score stays meaningful on anything from SPX to BTC.
How to use it
• 0.0–0.4: Accumulation zone. Market is calm or recovering — ideal for building positions.
• 0.4–0.6: Neutral. Trend can go either way — manage sizing.
• 0.6–0.8: Elevated risk. Momentum is stretched — tighten stops or reduce exposure.
• 0.8–1.0: Overheated. High risk of sharp pullbacks — avoid chasing.
Use it as a bias filter, a DCA timing tool, or a simple risk-on/risk-off read. It won’t predict tops or bottoms, but it keeps you aligned with the market’s temperature.
CEDEARDataLibrary "CEDEARData"
getUnderlying(cedearTicker)
Parameters:
cedearTicker (simple string)
getRatio(cedearTicker)
Parameters:
cedearTicker (simple string)
getCurrency(cedearTicker)
Parameters:
cedearTicker (simple string)
isValidCedear(cedearTicker)
Parameters:
cedearTicker (simple string)
Volume Orderblock Breakout — Naaganeunja Lite v3.6Volume orderblocks breakout indicator
you can use it 5minutes (short trading)
or 4 hours(swing trading)
it is best indicator in the world
猛の掟・初動完成版//@version=5
indicator("猛の掟・初動スクリーナー_完成版", overlay=true)
// =============================
// 入力パラメータ
// =============================
emaLenShort = input.int(5, "短期EMA", minval=1)
emaLenMid = input.int(13, "中期EMA", minval=1)
emaLenLong = input.int(26, "長期EMA", minval=1)
macdFastLen = input.int(12, "MACD Fast", minval=1)
macdSlowLen = input.int(26, "MACD Slow", minval=1)
macdSignalLen = input.int(9, "MACD Signal", minval=1)
macdZeroTh = input.float(0.2, "MACDゼロライン近辺とみなす許容値", step=0.05)
volMaLen = input.int(5, "出来高平均日数", minval=1)
volMinRatio = input.float(1.3, "出来高倍率(初動判定しきい値)", step=0.1)
volStrongRatio = input.float(1.5, "出来高倍率(本物/三点シグナル用)", step=0.1)
highLookback = input.int(60, "直近高値の参照本数", minval=10)
pullbackMin = input.float(5.0, "押し目最小 ", step=0.5)
pullbackMax = input.float(15.0, "押し目最大 ", step=0.5)
breakLookback = input.int(15, "レジブレ後とみなす本数", minval=1)
wickBodyMult = input.float(2.0, "ピンバー:下ヒゲが実体の何倍以上か", step=0.5)
// ★ シグナル表示 ON/OFF
showMou = input.bool(true, "猛シグナルを表示")
showKaku = input.bool(true, "確シグナルを表示")
// =============================
// 基本指標計算
// =============================
emaShort = ta.ema(close, emaLenShort)
emaMid = ta.ema(close, emaLenMid)
emaLong = ta.ema(close, emaLenLong)
= ta.macd(close, macdFastLen, macdSlowLen, macdSignalLen)
volMa = ta.sma(volume, volMaLen)
volRatio = volMa > 0 ? volume / volMa : 0.0
recentHigh = ta.highest(high, highLookback)
prevHigh = ta.highest(high , highLookback)
pullbackPct = recentHigh > 0 ? (recentHigh - close) / recentHigh * 100.0 : 0.0
// ローソク足
body = math.abs(close - open)
upperWick = high - math.max(open, close)
lowerWick = math.min(open, close) - low
// =============================
// A:トレンド条件
// =============================
emaUp = emaShort > emaShort and emaMid > emaMid and emaLong > emaLong
goldenOrder = emaShort > emaMid and emaMid > emaLong
aboveEma2 = close > emaLong and close > emaLong
trendOK = emaUp and goldenOrder and aboveEma2
// =============================
// B:MACD条件
// =============================
macdGC = ta.crossover(macdLine, macdSignal)
macdNearZero = math.abs(macdLine) <= macdZeroTh
macdUp = macdLine > macdLine
macdOK = macdGC and macdNearZero and macdUp
// =============================
// C:出来高条件
// =============================
volInitOK = volRatio >= volMinRatio // 8条件用
volStrongOK = volRatio >= volStrongRatio // 三点シグナル用
volumeOK = volInitOK
// =============================
// D:ローソク足パターン
// =============================
isBullPinbar = lowerWick > wickBodyMult * body and lowerWick > upperWick and close >= open
isBullEngulf = close > open and open < close and close > open
isBigBullCross = close > emaShort and close > emaMid and open < emaShort and open < emaMid and close > open
candleOK = isBullPinbar or isBullEngulf or isBigBullCross
// =============================
// E:価格帯(押し目&レジブレ)
// =============================
pullbackOK = pullbackPct >= pullbackMin and pullbackPct <= pullbackMax
isBreakout = close > prevHigh and close <= prevHigh
barsSinceBreak = ta.barssince(isBreakout)
afterBreakZone = barsSinceBreak >= 0 and barsSinceBreak <= breakLookback
afterBreakPullbackOK = afterBreakZone and pullbackOK and close > emaShort
priceOK = pullbackOK and afterBreakPullbackOK
// =============================
// 8条件の統合
// =============================
allRulesOK = trendOK and macdOK and volumeOK and candleOK and priceOK
// =============================
// 最終三点シグナル
// =============================
longLowerWick = lowerWick > wickBodyMult * body and lowerWick > upperWick
macdGCAboveZero = ta.crossover(macdLine, macdSignal) and macdLine > 0
volumeSpike = volStrongOK
finalThreeSignal = longLowerWick and macdGCAboveZero and volumeSpike
buyConfirmed = allRulesOK and finalThreeSignal
// =============================
// 描画
// =============================
plot(emaShort, color=color.new(color.yellow, 0), title="EMA 短期(5)")
plot(emaMid, color=color.new(color.orange, 0), title="EMA 中期(13)")
plot(emaLong, color=color.new(color.blue, 0), title="EMA 長期(26)")
// シグナル表示(ON/OFF付き)
plotshape(showMou and allRulesOK, title="猛の掟 8条件クリア候補", location=location.belowbar, color=color.new(color.lime, 0), text="猛")
plotshape(showKaku and buyConfirmed, title="猛の掟 最終三点シグナル確定", location=location.belowbar, color=color.new(color.yellow, 0), text="確")
// =============================
// アラート条件
// =============================
alertcondition(allRulesOK, title="猛の掟 8条件クリア候補", message="猛の掟 8条件クリア候補シグナル発生")
alertcondition(buyConfirmed, title="猛の掟 最終三点シグナル確定", message="猛の掟 最終三点シグナル=買い確定")


















