Smart Renko @ShivShakti Algo v5🕉️ **Smart Renko @ShivShakti Algo v5** 🔱
A comprehensive trading system that combines Renko emulation, Universal ATR calculation, and intelligent stop-loss management. Perfect for all market types with automatic market detection.
✨ **KEY FEATURES:**
🎯 **Universal ATR System:**
- Auto-detects market type (Forex, Crypto, Stocks, Commodities, Indian Markets)
- Market-specific ATR calculations (5D/7D periods)
- Time-based ATR for different trading sessions
- Force consistency across all charts
📊 **Advanced Renko Emulator:**
- Traditional & ATR-based Renko styles
- Auto box size calculation with ATR multiplier
- Real-time brick formation with perfect chart sync
- Clean horizontal visualization
🚨 **Smart Trading Signals:**
- SuperTrend-based entry signals
- Renko trend filtering for accuracy
- Buy/Sell alerts with clear visual markers
- Market-adaptive signal generation
🛡️ **Intelligent Stop Loss:**
- Three methods: No Trail, One Time Trail, Every Candle Trail
- Horizontal SL lines (non-continuous)
- Real-time SL price in the dashboard
- Auto SL management with alerts
📈 **Enhanced Dashboard:**
- Real-time market information
- Trading session hours with weekly days
- Current position and SL status
- Box size and trend information
- Debug mode for advanced users
🔧 **Supported Markets:**
- **Forex:** EUR/USD, GBP/USD, etc. (24H × 5D)
- **Crypto:** BTC, ETH, etc. (24H × 7D)
- **Precious Metals:** XAU/USD, XAG/USD (23H × 5D)
- **Indian Markets:** NIFTY, BANKNIFTY (6H × 5D)
- **US/Global Stocks:** All major indices (6.5H × 5D)
⚙️ **Customizable Settings:**
- ATR timeframe selection
- Manual/Auto box sizing
- Signal multiplier adjustment
- Visual display options
- Alert configuration
🎨 **Clean Interface:**
- Color-coded trend indication
- Emoji-based status display
- Organized dashboard layout
- Non-intrusive design
⚠️ RISK DISCLAIMER:
Trading involves substantial risk and is not suitable for all investors. Past performance does not guarantee future results. This indicator is for educational purposes only and should not be considered as financial advice. Always consult with a qualified financial advisor before making trading decisions.
Perfect for swing trading, scalping, and position trading across all timeframes and markets!
Motif-Motif Chart
HoneG_CCIv22HoneG_CCIv22
This is a signal tool capable of both counter-trend and trend-following trading. Apply it to 1-minute charts.
For trend-following, it features a rapid-fire mode. When conditions align, rapid-fire mode activates, and two indicators signaling the rapid-fire timing will turn ON/OFF in sync with price extension moments.
逆張りも順張りも出来るサインツールです。1分足チャートに適用してください。
順張りには連打モードがあり、条件が揃うと連打モードが発動し、連打タイミングを知らせる二か所の表示が、価格が伸びるタイミングに合わせてON/OFFします。
REBOTE PRO EMA
//@version=5
indicator(title="REBOTE PRO EMA", overlay=true)
// === CONFIGURACIÓN ===
emaRapida = input.int(20, "EMA Rápida")
emaLenta = input.int(50, "EMA Lenta (Tendencia)")
rsiPeriodo = input.int(14, "RSI Periodo")
// === CÁLCULOS ===
emaFast = ta.ema(close, emaRapida)
emaSlow = ta.ema(close, emaLenta)
rsiVal = ta.rsi(close, rsiPeriodo)
// === CONDICIONES DE TENDENCIA ===
tendenciaAlcista = emaFast > emaSlow
tendenciaBajista = emaFast < emaSlow
// === CONDICIONES DE REBOTE ===
reboteBuy = tendenciaAlcista and low <= emaFast and close > emaFast and rsiVal > 40
reboteSell = tendenciaBajista and high >= emaFast and close < emaFast and rsiVal < 60
// === GRÁFICOS ===
plot(emaFast, color=color.orange, linewidth=2)
plot(emaSlow, color=color.red, linewidth=2)
// === SEÑALES ===
plotshape(reboteBuy,
title="BUY",
style=shape.triangleup,
location=location.belowbar,
color=color.lime,
size=size.small)
plotshape(reboteSell,
title="SELL",
style=shape.triangledown,
location=location.abovebar,
color=color.red,
size=size.small)
REBOTE PRO EMA//@version=5
indicator(title="REBOTE PRO EMA", overlay=true)
// === CONFIGURACIÓN ===
emaRapida = input.int(20, "EMA Rápida")
emaLenta = input.int(50, "EMA Lenta (Tendencia)")
rsiPeriodo = input.int(14, "RSI Periodo")
// === CÁLCULOS ===
emaFast = ta.ema(close, emaRapida)
emaSlow = ta.ema(close, emaLenta)
rsiVal = ta.rsi(close, rsiPeriodo)
// === CONDICIONES DE TENDENCIA ===
tendenciaAlcista = emaFast > emaSlow
tendenciaBajista = emaFast < emaSlow
// === CONDICIONES DE REBOTE ===
reboteBuy = tendenciaAlcista and low <= emaFast and close > emaFast and rsiVal > 40
reboteSell = tendenciaBajista and high >= emaFast and close < emaFast and rsiVal < 60
// === GRÁFICOS ===
plot(emaFast, color=color.orange, linewidth=2)
plot(emaSlow, color=color.red, linewidth=2)
// === SEÑALES ===
plotshape(reboteBuy,
title="BUY",
style=shape.triangleup,
location=location.belowbar,
color=color.lime,
size=size.small)
plotshape(reboteSell,
title="SELL",
style=shape.triangledown,
location=location.abovebar,
color=color.red,
size=size.small)
REBOTE PRO May//@version=5
indicator(title="REBOTE PRO EMA", overlay=true)
// === CONFIGURACIÓN ===
emaRapida = input.int(20, "EMA Rápida")
emaLenta = input.int(50, "EMA Lenta (Tendencia)")
rsiPeriodo = input.int(14, "RSI Periodo")
// === CÁLCULOS ===
emaFast = ta.ema(close, emaRapida)
emaSlow = ta.ema(close, emaLenta)
rsiVal = ta.rsi(close, rsiPeriodo)
// === CONDICIONES DE TENDENCIA ===
tendenciaAlcista = emaFast > emaSlow
tendenciaBajista = emaFast < emaSlow
// === CONDICIONES DE REBOTE ===
reboteBuy = tendenciaAlcista and low <= emaFast and close > emaFast and rsiVal > 40
reboteSell = tendenciaBajista and high >= emaFast and close < emaFast and rsiVal < 60
// === GRÁFICOS ===
plot(emaFast, color=color.orange, linewidth=2)
plot(emaSlow, color=color.red, linewidth=2)
// === SEÑALES ===
plotshape(reboteBuy,
title="BUY",
style=shape.triangleup,
location=location.belowbar,
color=color.lime,
size=size.small)
plotshape(reboteSell,
title="SELL",
style=shape.triangledown,
location=location.abovebar,
color=color.red,
size=size.small)
Consecutive Lower Highs/Higher LowsThis indicator is a minimalist price-action tool designed to visualize Pullback depth and Trend Ignition directly on the chart. It eliminates the need to manually count candles, helping traders instantly identify "Green 2" pullback setups and "Red 1" trend continuations.
This tool is specifically designed to synchronize with MarketInOut or Finviz scanners that look for Lower Highs (Pullbacks) and Higher Lows (Trend).
How It Works
The indicator prints a simple count above or below the candles to visualize the current market structure:
1. The "Trap" / Pullback Count (Green Numbers)
Logic: Counts consecutive bars with Lower Highs.
Location: Appears above the candle.
Usage: Used to identify low-risk entry points in an existing uptrend. When you see a Green "2" or "3", it confirms the stock is in a controlled pullback (a "Quiet Trap") and may be ready for an entry if it breaks the previous high.
Default Setting: Starts counting at 2 (The classic "Green 2" setup).
2. The "Ignition" / Trend Count (Red Numbers)
Logic: Counts consecutive bars with Higher Lows.
Location: Appears below the candle.
Usage: Used to visualize trend strength. A Red "1" indicates the stock has made a higher low and is potentially resuming its uptrend ("Ignition"). It can also be used to manage trailing stops by exiting if the streak is broken.
Default Setting: Starts counting at 1.
Key Features
Zero Clutter: No moving averages, lines, or background shapes. Only the raw data you need to make a decision.
Dynamic Labels: Labels automatically adjust their distance from the candle based on volatility (ATR), ensuring they never overlap with the price action.
Scanner Sync: The input settings allow you to match the "Minimum Count" exactly to your screener settings (e.g., set Pullback minimum to 2 to match a lower_highs 2 scan).
Max History: Hard-coded to display the maximum allowable history (500 bars) for effective backtesting of your eye.
Settings
Minimum lower highs (Trap): Sets the threshold for showing Green numbers. (Default: 2)
Minimum higher lows (Ignition): Sets the threshold for showing Red numbers. (Default: 1)
Show Numbers: Toggles the visibility of the text labels.
Strategy Application
This script is ideal for Momentum Trap and Breakout traders (e.g., Minervini, Qullamaggie styles) who need to quickly verify if a stock meets the "2-day pullback" or "Trend Resume" criteria without manually checking High/Low values.
Institutional Grade Technical Analysis Support & Resistance levels with zones
✅ Uptrend lines (green, connecting lows)
✅ Downtrend lines (orange, connecting highs)
✅ Order blocks (purple zones)
✅ Swing points (triangles)
✅ Live dashboard with trade setup
Key levels by Chav3zNY-Time Anchored Sessions
Visualizes the Asia, London, and New York sessions using customizable boxes or high/low lines. Unlike standard session indicators, this tool uses the America/New York time zone to ensure your session start and end times remain accurate throughout Daylight Savings changes.
2. Dynamic HTF Key Levels (PDH/PDL, PWH/PWL, PMH/PML)
Automatically plots the Previous Daily, Weekly, and Monthly Highs and Lows.
Clean Intraday Origin: To prevent "chart clutter," these lines do not drag across the entire historical data. They originate at the start of the current day (NY Midnight), providing a clean horizontal reference for the current trading session.
Lookback Control: Choose how many days of historical key levels you want to remain visible on your chart.
3. Custom Time-Anchored Levels
Includes two fully customizable "Price Anchors" (e.g., Midnight Open, 09:30 AM NY Open).
Origin Point Precision: Lines start exactly at the candle of the specified time (e.g., 09:30) and extend forward, rather than drawing through the pre-market.
Price Capture: Choose to anchor to the Open, High, or Low of that specific timestamp.
4. Full Aesthetic Customization
Every level (Daily, Weekly, Monthly, and Custom) can be individually styled:
Color & Visibility: Set each level to your preferred color (Defaulted to Black for a clean look).
Line Style: Toggle between Solid, Dashed, or Dotted lines.
Thickness: Adjust the line width (1px, 2px, etc.) for better visibility on high-resolution screens.
How to Use
Midnight Open: Set Level 1 to 0000 to track the Daily Open, a crucial level for determining daily bias.
NY Open: Set Level 2 to 0930 to mark the "Opening Range" anchor for the New York session.
Liquidity Targets: Use the PDH/PDL and PWH/PWL levels to identify draw-on-liquidity areas for intraday scalp or swing setups.
Bulkowski Breakout vPRO (5m) - Runtime FixedHere is the English translation of your strategy guide, tailored for international traders while maintaining your encouraging tone.Strategy Guide: Bulkowski Breakout vPROFor Aspiring "Golden Traders"This strategy is designed for beginners to trade with the "flow of power." In short, it is a momentum-following strategy that enters a trade when a strong price move (Long Body Candle + High Volume) breaks through a key psychological level (200 EMA).1. Core Concept: "The High-Energy Breakout"Based on the principles of Thomas Bulkowski, a legendary master of chart patterns, this strategy prioritizes high-energy moves over simple price touches. A signal (LONG or SHORT) is only generated when these three conditions align:200 EMA Break (The Baseline): The 200-period Exponential Moving Average is the "life-line" of the market. Price breaking above this line indicates a powerful shift from a bearish to a bullish trend.Long Body Candle (Volatility): The candle body must be at least 2x larger than the recent average. This serves as evidence of institutional or "whale" buying/selling.Volume Surge (Reliability): Trading volume at the moment of breakout must be 1.5x higher than the recent average. This confirms the move is genuine and not a "fake-out."2. Session Filter (Optimized for Peak Volatility)To avoid "choppy" sideways markets, this strategy only operates during the first two hours of the major global market opens, when liquidity is at its highest.MarketTime (KST / UTC+9)Market CharacteristicsAsia Session09:00 ~ 11:00Opening of Korean, Japanese, and Chinese markets.Europe Session16:00 ~ 18:00Volatility spikes as the London market opens.US Session22:00 ~ 24:00Peak global liquidity as New York opens.Signals only appear when the chart background is shaded blue. All other times are "resting periods" to protect your capital.3. Execution GuideEntryLONG (Buy): Enter when a large green candle breaks above the yellow 200 EMA with high volume. (Green triangle label appears).SHORT (Sell): Enter when a large red candle breaks below the yellow 200 EMA with high volume. (Red triangle label appears).Take Profit (TP) & Stop Loss (SL)Lines are automatically drawn on your chart once you enter:Orange Line (Stop Loss): Automatically set at the low (or high) of the last 3 candles. If the price touches this, the trade closes to prevent further loss.Green Line (Take Profit): Automatically set at 1.5x your risk. This ensures a healthy 1:1.5 Risk-to-Reward ratio.4. Pro-Tips for BeginnersOptimized for 5m: This strategy works best on the 5-minute (5m) timeframe. 1m is often too noisy, and 15m can be too slow for scalping.Watch Bitcoin: Even if an altcoin gives a LONG signal, be cautious if Bitcoin is currently crashing. BTC dictates the overall market direction.Adjusting Sensitivity: If signals are too rare, go to "Settings" and lower the Long Body Multiplier from 2.0 to 1.5.This indicator is built to help you trade based on statistical advantages, not emotions. We strongly recommend practicing with Paper Trading first to get a feel for the signals.To everyone dreaming of becoming a Golden Trader—Success is a marathon, not a sprint!
Multi-Indicator SuiteMain Chart Overlay:
9, 20, and 200 EMAs - Each with customizable colors and visibility toggles
Intraday VWAP - Automatically resets daily to show intraday volume-weighted average price
Separate Indicator Panes:
RSI (14-period default) - With overbought (70) and oversold (30) levels, customizable length
MACD - With histogram, MACD line, and signal line (12/26/9 default settings)
Features:
All indicators have customizable settings through the indicator settings panel
Color-coded RSI (red when overbought, green when oversold)
MACD histogram changes color based on positive/negative values
Built-in alert conditions for EMA crossovers, RSI levels, and MACD crossovers
Toggle visibility for each component independently
Asian Liquidity Sweep + NY Reversal [NY Only]Asian Liquidity Sweep + NY Reversal
Concept
Asia builds a tight range → liquidity pool
London / early NY raids that liquidity (stop hunt)
New York delivers the real move in the opposite direction
Sessions utc+3
Asia range: 04:00 – 10:00
Liquidity sweep: London open → pre-NY (≈10:00–14:00)
Execution window: NY Kill Zone 15:00 – 18:00
Step-by-Step Model
Define Asia Range
Mark:
Asia High
Asia Low
Liquidity Sweep (Stop Hunt)
Price must do ONE of the following:
Sweep above Asia High → bullish liquidity taken
Sweep below Asia Low → bearish liquidity taken
NY Reversal Confirmation (Key Part)
Wait for NY Kill Zone and look for:
Strong rejection candle
Displacement / impulsive move back inside range
Optional: small internal structure break on lower TF
Entry Rules (High Probability)
🔻 If Asia High is swept:
Bias: SELL
Entry:
After NY rejection
On pullback to:
Discount zone / FVG
OR Asia High retest
SL: Above sweep high
TP:
Asia Low (TP1)
NY session low / next HTF liquidity (TP2)
If Asia Low is swept:
Bias: BUY
Entry:
NY rejection + displacement
Pullback to imbalance / Asia Low
SL: Below sweep low
TP:
Asia High
Daily high / premium liquidity
arrows/labels-will show when to buy or sell
signal-once per day
Use volume profile (max) for confirmation of entry point
Lets win together
Engulfing + Pinbar + Inside BarThis indicator combines three powerful candlestick patterns in one tool:
Engulfing Candles (Bullish & Bearish)
Pinbars / Hammers (Reversal signals)
Inside Bars (Consolidation + breakout setup)
Each pattern can be enabled or disabled individually through the settings panel.
Candle colors and labels help you quickly identify strong price action zones.
Michael Ultimate Open session/sentiment.Overview This indicator is a precision tool designed for intraday traders who need a complete overview of market time and structure in a single, compact panel. It combines Session Liquidity Levels with Multi-Timeframe Trend Analysis, allowing you to spot alignments between session ranges and the broader market direction instantly.
Key Features
1. Advanced Session Tracking The dashboard monitors three key trading sessions with custom operational hours:
Asia (23:00 - 06:00): Captures the overnight range.
London (08:00 - 11:00): Focuses on the European open volatility.
New York (14:30 - 16:30): Targets the US market overlap.
For each session, the dashboard calculates and displays real-time data:
High & Low: Crucial for liquidity sweeps and breakout targets.
Midpoint: The equilibrium level of the session, often acting as dynamic support/resistance.
Status: A visual "Traffic Light" (🟢 Open / 🔴 Closed) indicating if the specific window is currently active.
2. Multi-Timeframe Trend Correlation Instead of a generic trend filter, this tool links each session to a relevant higher timeframe to provide context:
Asia Row ➔ Daily Trend (D1): Shows the macro bias.
London Row ➔ 4-Hour Trend (H4): Shows the structural bias.
New York Row ➔ 15-Minute Trend (M15): Shows the immediate execution momentum.
3. Visual Logic & Design
EMA 50 Strategy: Trends are determined by price action relative to the 50 EMA (Green = Bullish, Red = Bearish).
Modern UI: Features a sleek, dark-themed aesthetic with semi-transparent backgrounds to keep your chart clean and professional.
Instant Read: Uses color-coded icons (🟢/🔴) so you can assess market conditions in milliseconds.
How to Use Use this dashboard to find confluence. For example, if the London Session opens while the H4 Trend is Bullish (Green), look for buy setups near the Asia Midpoint or Asia Low.
Settings
Fully customizable session times.
Adjustable EMA length (Default: 50).
Table position and size can be modified to fit your screen.
Opening Range SetupOpening Range Setup
Track the opening range and identify high-probability breakout setups with precision.
What It Does
This indicator identifies the high and low price range during the first X minutes of the trading
session (5, 15, 30, or 60 minutes) and projects these levels throughout the day. The opening
range acts as dynamic support and resistance, providing key reference points for intraday
trading decisions.
Key Features
✓ Customizable Range Period - Choose from 5, 15, 30, or 60-minute opening ranges
✓ Extension Levels - Display multiples of the range size (0.5x, 1x, 1.5x, 2x) as profit targets
✓ Breakout Detection - Automatically highlights the first candle that breaks above/below the
range
✓ Moving Average Filter - Built-in SMA/EMA trend filter to avoid counter-trend trades
✓ Visual Clarity - Clean box fills, labels, and customizable line styles
✓ Multiple Themes - Dark, Light, Bull/Bear, and Custom color schemes
How to Use
- Long Setup: Wait for price to break above OR High (preferably with price above MA)
- Short Setup: Wait for price to break below OR Low (preferably with price below MA)
- Range Trading: Use OR High/Low as fade levels when price stays within range
- Targets: Use extension levels for profit-taking zones
Settings
- Configurable session time (default: 9:30 AM - 4:00 PM NY)
- Toggle individual lines, fills, and breakout highlights
- Optional MA trend filter with adjustable length and type
Perfect for day traders looking for structured, rule-based setups on futures, stocks, and forex.
---
License: Mozilla Public License 2.0
XCO Asia Range - Mike CohenThe XCO Asia Range is a precision tool designed for professional traders who value a clean and minimalist chart. Unlike standard session indicators that clutter the screen with excessive lines and noise, this tool focuses exclusively on the Asia Session liquidity, following a "less is more" philosophy.
Developed with ICT and Smart Money concepts in mind, this indicator allows you to identify the Asia High and Asia Low liquidity pools without obstructing your price action analysis.
Key Features:
Minimalist Default State: By default, the indicator only displays a subtle, transparent session box. Lines and text are hidden to keep your workspace clean.
Independent Controls: You have full control to toggle the High Line, Low Line, High Label, and Low Label independently. Customize it exactly to your strategy.
Smart Visibility:
Timeframe Filter: Automatically hides on timeframes of 1 Hour or higher to prevent noise on higher timeframes.
Auto-Cleaning: Includes a "Lookback" feature (default: 2 days) that automatically removes old session data, keeping your chart performance fast and lightweight.
Customization: Fully adjustable colors, text sizes, and line extension capabilities for both the buy-side and sell-side liquidity.
How to use: Simply apply the indicator to your chart. Use the settings panel to activate the specific lines or labels you need for your daily bias analysis.
Credits: Created by MikeCohen_XCO.
NY Session Start & End LinesDraws a vertical line at the start and end of regular trading hours for the NY session.
Horizontal Line - XCO by (Mike Cohen)Professional ICT Session Indicator engineered by Mike Cohen (XCO Trading).
This tool features a custom Multi-Timeframe (MTF) Engine that ensures session levels remain rock-solid and visible even on 1-minute charts, eliminating the common "disappearing line" issue.
Key Features:
M1 Stability: Uses 5m data to project precise levels on lower timeframes without lag.
Smart Visibility: Automatically hides lines on H1+ charts to keep your macro analysis clean.
Minimalist Design: Solid lines with floating headers for a clutter-free institutional look.
Fully Customizable: Pre-configured for Asia, London, and NY sessions.
Michael LipsiusTitle: Michael Multi-Timeframe Trend Dashboard (HTF Bias & LTF Execution)
Description:
Overview This indicator is a specialized Top-Down Analysis tool designed to assist traders in identifying the dominant market direction across multiple timeframes instantly. Built around the principles of Michael's Trading Strategy and institutional trend following, this dashboard eliminates the noise and provides a clear, color-coded directional bias (Prognosis) for both High Time Frame (HTF) structure and Low Time Frame (LTF) momentum.
Core Functionality The dashboard generates a real-time matrix displayed directly on the chart, analyzing price action relative to the 50-period Exponential Moving Average (EMA). This specific metric is chosen to filter out minor fluctuations and reveal the true institutional flow of money.
1. High Time Frame (HTF) Prognosis – The "Compass" The indicator monitors the Daily (D1) and 4-Hour (H4) timeframes to establish the macro trend.
Bullish 🟢: Price is holding above the 50 EMA. This indicates that Smart Money is accumulating, and traders should focus primarily on Long setups.
Bearish 🔴: Price is trading below the 50 EMA. This suggests institutional distribution, meaning Short setups have a higher probability of success.
Purpose: The HTF modules act as your safety filter. By respecting the D1/H4 signals, you avoid trading against the major trend, significantly reducing the risk of being stopped out by macro flows.
2. Low Time Frame (LTF) Execution – The "Trigger" Simultaneously, the indicator analyzes the 1-Hour (H1) and 15-Minute (M15) timeframes.
These timeframes are crucial for timing entries and managing intraday volatility.
Conflict Warning: If the HTF is Bullish (Green) but the LTF is Bearish (Red), the market is likely in a pullback phase. This warns the trader to wait for the LTF to realign with the HTF before entering.
How to Use This Tool This dashboard is designed to be the first step in your trading routine:
Check Confluence: Look for a "Full Green" or "Full Red" board. When D1, H4, and H1 align, the probability of a successful trade increases exponentially.
Identify Pullbacks: If D1/H4 are Green, but M15 is Red, do not sell. Instead, treat this as a discount phase and wait for the M15 to flip back to Green for a high-precision entry.
Risk Management: Use the HTF bias to determine your risk exposure. Trade with full risk only when HTF and LTF are aligned.
Settings & Customization
Table Position: Fully adjustable (Top Right, Bottom Right, etc.) to fit your workspace.
EMA Period: Default is set to 50 (Standard Michael Strategy), but can be adjusted to fit other strategies.
Visuals: Clean, non-intrusive design with clear color coding for instant readability.
Disclaimer This tool is for informational purposes only and serves as a trend-confirmation aid. It should be used in conjunction with price action analysis, key levels, and proper risk management.
Horizontal Line - XCO by (Mike Cohen)Professional indicator designed for ICT trading sessions (Asia, London, NY). It features MTF (Multi-Timeframe) technology to visualize stable session levels on 1-minute charts without disappearing. Created by Mike Cohen for XCO Trading.
#XCO #MikeCohen
Minervini TT + IBD RS + ENTRY What this script does (overall)
This indicator implements a Minervini-style stock selection and entry system with mechanical risk control:
Trend Template (TT)
Uses 50 / 150 / 200 SMA alignment
Requires price to be above key moving averages
Ensures the stock is sufficiently above its 52-week low and not too far from its 52-week high
Relative Strength (IBD-style proxy vs TOPIX)
Compares the stock’s performance against TOPIX
Requires RS to be rising and making new relative highs
Detects RS breakdowns as “no-add / exit watch” warnings
ENTRY conditions (Pivot + Volume + VCP)
Breakout above a pivot high
Volume expansion on breakout
Volatility contraction using ATR% (VCP-like behavior)
Visual signals
BUY label: quality conditions pass
ENTRY label: valid breakout entry
RS BREAK label: relative strength deterioration
What was newly added / updated (important)
🔴 Mechanical stop-loss logic (NEW)
After each ENTRY signal, the script now:
Draws two horizontal stop-loss lines
SL -5% from the ENTRY bar’s high
SL -8% from the ENTRY bar’s high
Lines extend to the right automatically
Detects stop-loss touches
When price (low or close, configurable) crosses below:
SL -5% → SL5 trigger
SL -8% → SL8 trigger
Displays an upward arrow on the bar where each SL is touched
Sends alerts with fixed (const) messages
Handles multiple trades cleanly
If a stop-loss was hit and a new ENTRY appears later:
The previous SL lines are grayed out and dotted
Past exit markers (arrows) remain visible
Prevents inconsistent calculations by evaluating crossunders on every bar
👉 This enables fully mechanical, Minervini-style loss control without discretionary judgment.






















