Deviation Momentum For Loop | Lyro RSThe Deviation Momentum For Loop is a directional momentum tool that evaluates the persistence of price deviation from a moving average over a historical range using a custom loop-based scoring function. It quantifies relative momentum strength by comparing current deviation to previous values, assigning a net score used to assess trend bias, reversals, and volatility-adjusted strength.
Key Features
Deviation-Based Momentum: Calculates standardized deviation from a selected moving average by subtracting the MA from price and normalizing via standard deviation and a scaling constant. This standardization adjusts for volatility and creates a consistent scoring base across assets and timeframes.
Historical For-Loop Scoring: Implements a user-defined for-loop function that compares current deviation to values from earlier bars (configurable range). Each comparison adds or subtracts from a cumulative score based on whether current deviation exceeds historical ones, producing a dynamic momentum read.
Threshold-Based Signal Logic: Applies user-defined thresholds for long and short signals. If the loop score exceeds the long threshold, a bullish bias is inferred; if it drops below the short threshold, a bearish bias is indicated. These thresholds are plotted for visual clarity.
Multi-Palette Visual System:
Predefined Palettes – Choose from Classic, Mystic, Accented, or Royal schemes for bullish and bearish colors.
Custom Colors – Toggle on custom color selection to manually define bullish (UpC) and bearish (DnC) tones.
Dynamic Visuals – Oscillator line, threshold markers, background shading, bar and candle coloring are applied in real time based on trend state
.
Glow and Overlay Effects: Layered glow lines and optional bar/candle coloring reinforce signal strength and trend status directly on the chart.
Built-In Alerts: Provides alert conditions when the for-loop score crosses above or below the defined thresholds, enabling automated monitoring of trend conditions.
How It Works
MA Calculation – Applies the selected moving average to the chosen price source (e.g., close, open, high). Offers 16 moving average types including SMA, EMA, WMA, TEMA, JMA, FRAMA, ZLSMA, KAMA, and others via the LyroRS/LMAs/1 library.
Deviation Computation – Measures the deviation of price from its moving average, normalized by standard deviation and scaled by a fixed constant factor to account for volatility.
Loop Function – Iterates from user-defined indices (From → To) and compares current deviation to past deviations. Increments score for each instance where current > past, decrements when current < past. The resulting value is plotted as the primary oscillator.
Signal Logic – Long and short threshold values are configurable inputs. Crossing above the long threshold signals bullish bias; crossing below the short threshold signals bearish pressure.
Color Coding & Visual Feedback
Palette or custom colors reflect oscillator's directional state.
Additional glow lines increase signal emphasis.
Background shading highlights crossovers with mid-threshold for enhanced visibility.
Optional bar and candle coloring aligns price visualization with indicator signals.
Practical Use
Momentum Confirmation – Use a score rising above the long threshold as a potential bullish signal; falling below the short threshold may indicate bearish strength.
Volatility Normalization – Standardized deviation ensures consistency across assets of different volatility profiles.
Multi-Timeframe Adaptation – The wide selection of moving averages and loop depth settings allows calibration for scalping, swing, or long-term analysis.
Visual Clarity – Color-coordinated candles, bars, oscillator lines, and background simplify interpretation of signal context and trend structure.
Customization
Select from 16 moving average types to control sensitivity and smoothing.
Adjust loop depth (From/To) to define how far back deviation is compared.
Set custom threshold levels to reflect your preferred sensitivity to momentum shifts.
Customize visuals with predefined palettes or manual color settings for full chart integration.
⚠️Disclaimer
This indicator is a tool for technical analysis and does not provide guaranteed results. It should be used in conjunction with other analysis methods and proper risk management practices. The creators of this indicator are not responsible for any financial decisions made based on its signals.
Moving Averages
ezzy Golden Cross mit Target und StopA simple crossover system based on SMA 50 and SMA 200 including percentage target and stop loss.
BNF (Kotegawa) Strategy [CB Algos]STRATEGY: BNF (Kotegawa) Mean Reversion Strategy
DEVELOPED BY: CB Algos
DESCRIPTION:
This indicator replicates the trading style of Takashi Kotegawa (BNF).
It calculates the percentage deviation of the price from the 25-period SMA.
HOW TO USE:
1. Look for 'Lime' bars (Extreme Buy) or 'Teal' bars (Moderate Buy). These indicate the price has dropped significantly below the average.
2. Look for 'Red' bars (Extreme Sell) as profit-taking zones.
3. Use the Info Panel to see the exact current deviation %.
SB - Print MachineIntraday Trading, Observation - Nifty 50, Trade - Nifty Options, Buying only
Rules for Call Options Buying - Observe Nifty 50 Index
1. VWDEMA turns Green (Bullish).
2. VDema turns Green and crossing VWDEMA upside (Bullish).
3. ATR turns Green (Bullish)
4. VPC background turns Green (Bullish). Now Enter Call Side and enjoy the day....
Rules for Put Options Buying - Observe Nifty 50 Index
1. VWDEMA turns Red (Bearish).
2. VDema turns Red and crossing VWDEMA Downside (Bearish).
3. ATR turns Green (Bearish)
4. VPC background turns Red (Bearish). Now Enter Put Side and enjoy the day.....
Exit Rules - As per your own appitite :)
Settings :
VWDEMA Length - 44
VDEMA Length - 21
ATR Length - 14
ATR Multiplier - 1.5
BB - Ignore (Disable/Hide)
Pivot Calculation Method - Wick
Pivot Left Length (Low/High) - 4
Pivot Right Length (Low/High) - 1
Pivot Lebels - Enable All
Pivot Markers - Disable All
Pivot Values - Disable All
VPC Length - 14
VPC Time Frame - 3 Minutes
Main Chart Time Frame - 5 Minutes
Display Settings - As per your own eye comfort
Note - All/Many parameters used here are customisable and come with a dynamic colour coding(Different colour code for uptrend and downtrend)
Settings shared here are best suited to me in terms of output. You can check for your own the settings which suits you the best.
Good Luck !!
MAD Supertrend [Alpha Extract]A sophisticated SuperTrend implementation that replaces traditional ATR calculations with Mean Absolute Deviation methodology for adaptive volatility measurement and band construction. Utilizing SMA baseline with MAD-based deviation bands and optional adaptive factor adjustments, this indicator delivers institutional-grade trend detection with strength-based filtering and dynamic visual feedback. The system's MAD approach provides superior noise reduction compared to ATR while maintaining responsiveness to genuine volatility changes, combined with momentum-based strength calculations for high-conviction signal generation.
🔶 Advanced MAD-Based Band Construction
Implements Mean Absolute Deviation calculation as volatility proxy, measuring absolute price deviations from mean and smoothing for stable band generation without ATR dependency. The system calculates SMA baseline, computes MAD from configurable lookback period, applies factor multipliers to create upper and lower bands, then implements classic SuperTrend ratcheting logic where bands only adjust when price violates previous levels or calculations warrant updates.
// Core MAD SuperTrend Framework
SMA_Value = ta.sma(src, SMA_Length)
Mean = ta.sma(src, MAD_Length)
Abs_Deviation = abs(src - Mean)
MAD_Value = ta.sma(Abs_Deviation, MAD_Length)
// Band Construction with Ratcheting
Upper_Band = SMA_Value + MAD_Factor * MAD_Value
Lower_Band = SMA_Value - MAD_Factor * MAD_Value
// Ratcheting logic prevents premature band adjustments
🔶 Adaptive Factor Adjustment Engine
Features optional adaptive multiplier system that modulates MAD factor based on normalized MAD magnitude relative to recent extremes, creating bands that automatically expand during high-volatility regimes and contract during consolidation. The system applies min-max normalization to MAD values over configurable lookback, multiplies by adaptation parameter, and adds to base factor for dynamic volatility sensitivity without manual recalibration.
🔶 Momentum-Based Strength Filter
Implements sophisticated strength calculation measuring price momentum relative to baseline divided by volatility-adjusted MAD bands, producing normalized 0-1 strength scores with exponential smoothing. The system calculates distance from SMA baseline, normalizes by MAD-derived band width, and applies configurable minimum threshold requiring sufficient momentum before trend signals activate, filtering weak or choppy market conditions.
🔶 SuperTrend Direction Logic
Utilizes classic SuperTrend methodology adapted for MAD bands where trend direction flips on opposite band violations with state persistence until confirmation. The system tracks whether price closes above upper band (bearish flip to bullish) or below lower band (bullish flip to bearish), maintains directional state until opposing violation occurs, and generates binary +1/-1 trend signals suitable for systematic position management.
🔶 Intelligent Candle Sticking System
Provides advanced line positioning option that anchors SuperTrend line to candle wicks or bodies rather than pure calculation values for enhanced visual clarity. The system supports two modes: Wick (positions at high/low extremes based on trend direction) and Body (constrains line between calculation and candle extremes), creating cleaner chart presentation while maintaining mathematical integrity of underlying signals.
🔶 Dynamic Gradient Visualization Framework
Implements color intensity modulation based on smoothed strength calculations, transitioning from muted to vivid hues as momentum conviction increases. The system applies gradient interpolation using strength ratio, creating visual feedback where strong trending moves display intense colors while weak or consolidating conditions show faded tones across trend line, channel bands, and candle coloring for immediate regime assessment.
🔶 MAD Channel Architecture
Features volatility-adjusted channel bands centered on baseline or candle-stuck line with configurable multiplier for support/resistance visualization. The system calculates upper and lower bounds using MAD values scaled by adaptive factors and channel multipliers, applies dynamic transparency based on trend strength, and creates filled regions that intensify during strong trends and fade during weak conditions.
🔶 Multi-Layer Glow Effect System
Provides sophisticated line rendering with triple-layer plot system creating glow effect through progressively wider and more transparent outer layers. The system plots core trend line at specified width with full color intensity, adds inner glow layer at +2 width with moderate transparency, and outer glow at +4 width with higher transparency, creating visual depth and emphasis without cluttering chart space.
🔶 Strength-Based State Management
Implements intelligent trend state logic requiring both directional signal and minimum strength threshold breach before confirming trend transitions. The system calculates raw SuperTrend direction, evaluates smoothed strength against configurable minimum, generates filtered trend state that can be bullish (+1), bearish (-1), or neutral (0), and maintains state persistence using hold logic that prevents oscillation during ambiguous conditions.
🔶 Comprehensive Alert Integration
Generates trend flip alerts when filtered state transitions from bearish to bullish or bullish to bearish with full confirmation requirements satisfied. The system detects state changes through comparison with previous bar, triggers single alert per transition rather than continuous notifications, and provides customizable message templates for automated trading system integration or manual notification preferences.
🔶 Performance Optimization Architecture
Utilizes efficient calculation methods with null value handling, nz() functions preventing errors during initialization bars, and optimized gradient calculations. The system includes intelligent state persistence minimizing recalculation overhead, streamlined MAD computation avoiding redundant mean calculations, and smooth visual updates maintaining consistent performance across extended historical periods.
This indicator delivers sophisticated SuperTrend analysis through Mean Absolute Deviation methodology providing superior statistical properties compared to traditional ATR-based approaches. MAD calculations offer more robust volatility measurement resistant to extreme outliers while maintaining sensitivity to genuine market regime changes. The system's adaptive factor adjustment, momentum-based strength filtering, and dynamic visual feedback make it essential for traders seeking reliable trend-following signals with reduced false breakouts during choppy conditions. The combination of MAD bands, candle-sticking options, gradient strength visualization, and comprehensive filtering creates institutional-grade trend detection suitable for systematic approaches across cryptocurrency, forex, and equity markets with clear entry/exit signals and comprehensive alert capabilities.
MA 9 & MA 20 Crossover + EMA200 + CONFIRMED + RSI OB/OS (Alerts)Tesing this strategy. This will not work for all coins. this is short specific coins
Zap Super Line// Zap - Close Line Color by SMA20, MACD, RSI
// Description: Line turns green when close > SMA20 and MACD rising or above signal; red otherwise. RSI > 70 turns purple; RSI < 30 turns gray.
// Author: Ron Belson
// Email: ronbelson@gmail.com
Dynamic Zone TraderDynamic Zone Trader - MACD-based trading system with adaptive stop loss and take profit zones.
This indicator generates buy/sell signals from MACD histogram crossovers and automatically adjusts position sizing based on market conditions.
Key Features:
Detects breakout trades and expands targets to capture larger moves
Identifies choppy/ranging conditions and tightens stops to reduce risk
Shows supply and demand zones based on pivot highs/lows
Displays three take profit levels (TP1, TP2, TP3) that scale with trade quality
Entry signals filtered by 50 EMA to trade with the trend
Signal strength score displayed on each entry marker
How It Works:
The indicator analyzes recent price structure and movement to classify each trade:
Breakout trades (breaking recent highs/lows) get 1.6x larger zones
Normal trades get standard 1.0x sizing
Choppy weak signals get 0.75x smaller zones
This allows you to take bigger positions on high-conviction setups while limiting risk during low-quality trades.
Settings:
MACD parameters (default 8/21/5)
Base stop loss: 60 ticks
Base take profit: 80 ticks
EMA filter: 50 period
Optional ADX trend filter
Adjustable breakout detection sensitivity
Works on any timeframe and instrument, but optimized for index futures like NQ/MNQ.
EMA 8 x EMA 80 Indicator Trend Filter for the 123 PatternEMA 8 x EMA 80 Indicator Trend Filter for the 123 Pattern
This indicator displays two Exponential Moving Averages EMA with 8 and 80 periods, designed to assist in trend identification and to act as a filter for trading the 123 buy and sell pattern.
General usage rules
123 Buy: recommended only when trading in an uptrend
123 Sell: recommended only when trading in a downtrend
Moving average filter
Buy setups 123 Buy tend to be more reliable when price is above the 80 period EMA
Sell setups 123 Sell tend to be more reliable when price is below the 8 period EMA
Neutral zone attention
The area between the EMA 8 and EMA 80 is considered a neutral zone
Trading the 123 pattern within this range is riskier, as it often indicates consolidation or lack of clear trend direction
Important disclaimer
This indicator does not generate buy or sell signals by itself. It should be used as a supporting tool, together with proper risk management, market context, and additional analysis.
This is not financial advice.
SB - Print MachineIntraday Trading @ 5 Minutes TF -Observation @ Nifty 50 Index , Trade on - Nifty options
Rules : Call options (ATM) Entry :
1. VWDEMA is Green (Bullish)
2. Vdema is Green and Crossing VWDema upside (Bullish)
3. ATR Turns Green (Bullish)
4. Vwap Channel Background is Green
Put Options (ATM) Entry :
1. VWDEMA is RED (Bearish)
2. Vdema is Red and Crossing VWDema downside(Bearish)
3. ATR Turns Red (Bearish)
4. Vwap Channel Background is red
Settings :
VWDEMA - 44
VDema - 21
ATR - 14
ATR Multiplier - 1.5
BB - Skip
Pivot Calculation Method - Wick
Left length - 4
Right Length - 1
Pivot Lebels - Enable all
Pivot arkers - Skip All
Pivot Values - Skip All
VPC Length - 14
VPC Time Frame - 3 minutes
Main Chart Time Frame - 5 Minutes
Colour Display Settings : As per you eyes comfort. Parameters have dynamic colour coding (different for uptrend and downtrend, use accordingly)
Parameters here are customisable, Shared here is what I am using and getting good results. Test your settings which suits you best. Good Luck !!
EMA as Support/Resistance with Backtests (by Visual Sectors)Knowing what works for a specific stock is the game changer!
This script returns 3 years' backtest of EMA acting as Support or Resistance
Wins and Losses are defined as closing above/below the EMA 50. Settings can be changed to any EMA length.
Actionability is % of time EMA was within range, so a EMA 500 will have very low actionability, while EMA 5 - extremely high
Daily Support/Resistance Points (Historical Days)indicator plots support and resistance levels derived from historical price action. It analyzes higher‑timeframe candles (Daily/Weekly/Monthly) and ranks levels by strength and number of touches, then draws the most relevant levels around the current price. If no strong levels are found, it falls back to touch‑based levels so you still get meaningful lines.
How to Use:
Add the script to any chart.
Choose Levels Timeframe:
Auto (recommended): follows the chart timeframe (D/W/M).
D / W / M: force a specific timeframe.
Set lookback windows:
Lookback Days (D) – default 200
Lookback Weeks (W) – default 104
Lookback Months (M) – default 60
Adjust sensitivity:
Min Strength – filters weaker levels.
Volume Multiplier – requires higher volume for stronger levels.
Time Decay – gives more weight to recent data.
Min Touches (Fallback) – used when no strong levels are found.
Optional: enable Show Debug Info to see how many levels are detected.
Open Source & License:
This script is open source under the MIT License. You are свободно to use, modify, and share it with attribution.
Author / Contact:
Ron Belson
For questions or requests, contact: ronbelson@gmail.com
EMA 6/50 Cross + ADX 20 + AlertsThis indicator is designd to filter noise off the EMA cross with the ADX greater than 20 condition.
SB - Print MachineIntraday Trading (Buying Only), Observation - Nifty 50, Trade - Nifty options (ATM)
Rules Call Options (ATM):
1. VWDEMA turns Green (Bullish)
2. VDema turns Green and crossing VWDema upside (Bullish)
3. ATR turns Green (Bullish)
4. VCP background turns Green (Bullish)
Rules Put Options (ATM):
1. VWDEMA turns Red (Bearish)
2. VDema turns Red and crossing VWDema downside (Bearish)
3. ATR turns Red (Bearish)
4. VCP background turns Red (Bearish)
Indicator Settings :
1. VWDEMA Length - 44
2. VDema Length - 21
3. ATR Length - 14
4. ATR Multiplier - 1.5
5. BB - Ignore and Skip (Hide)
6. Pivot Calculation Method - Wick
7. Pivot Left Length (Low/High) - 4
8. Pivot Right Length (Low/High) - 1
9. Pivot Levels - Enable All
10. Pivot Markers - Disable
11. Pivot Values - Disable
12. VPC Length - 14
13. VPC Time Frame - 3 Minutes
14. Main Chart Time Frame - 5 Minutes
Display Settings : As per your eye comfort
Note - All settings are customisable here and most are with dynamic colour code (Different colours for upside and downside movement)
Setting shown here are used by me and deliver good results to me only, you can find out your own settings which suits you the best.
Good Luck !!
EMA 9, 20, 30, 200 (Buy Trend Filter Only)EMA 9, 20, 30, 200 (Buy Trend Filter Only) simple ema crossing analysis
200W SMA Dynamic Extension Bands (MTF, Auto Asset)Summary
200W SMA Dynamic Extension Bands is a multi-timeframe TradingView indicator that plots extension bands (multiples) around the 200-week simple moving average. It’s designed to work on any chart timeframe (1m → 1D → 1W) while anchoring the bands to the latest confirmed weekly data, so the long-term reference is consistent and non-repainting across timeframes.
This is a macro “valuation/temperature gauge” style tool: it helps you quickly see when the price is cheap vs. the 200W mean and when it is extended/expensive.
What it plots
The indicator always computes:
200-week SMA (weekly)
Band m2
Band m3
Band m4
Bands are defined as:
Bandk(t)=SMA200W(t)⋅mk
Where the multipliers mk are chosen automatically depending on the asset type (or manually via input).
Key features
Works on any timeframe: weekly SMA is fetched via request.security(..., "W", ...).
Non-repainting weekly anchor: uses barmerge.lookahead_off to avoid peeking into future weekly bars.
Auto asset presets:
Crypto: wider extensions (bigger cycles)
Gold: moderate extensions
Equities: tighter than crypto
FX: very tight extensions
Futures: moderate fallback
Zone coloring (optional):
Cheap zone (below 1×)
Fair zone (1× → m2)
Hot zone (m2 → m3)
Expensive zone (m3 → m4)
Info table (optional): shows selected preset, current multiple, and % extension vs 200W SMA.
Alerts (optional): “entered cheap” and “entered expensive” style triggers.
Presets (default multipliers)
These are intentionally conservative templates (tune to your market):
Crypto: 1.0,1.5,2.0,3.0
Gold: 1.0,1.2,1.5,2.0
Equities: 1.0,1.15,1.30,1.60
FX: 1.0,1.05,1.10,1.20
Futures: 1.0,1.25,1.50,2.00
Auto mode uses syminfo.type plus a simple heuristic for Gold tickers containing XAU / GOLD (because some platforms classify XAUUSD as forex).
How to use (practical)
Macro context / cycle temperature
Price below 1× (200W SMA): historically “cheap zone” for highly cyclical assets (especially BTC).
Price above m3: often “expensive/extended” and higher risk of mean reversion.
Not a standalone trading system
Use with trend confirmation (market structure), volume, and risk management.
Extensions can persist in strong trends—treat bands as regime context, not precise reversal points.
Settings you can change
SMA Length (Weeks): default 200
Band preset: Auto / Crypto / Gold / Equities / FX / Futures
Toggle:
Zone fills
Info table
Alerts
Included alertconditions:
Cross below 1× (entered cheap zone)
Cross above m3 (entered expensive zone)
High level guideline:
Green Zone: BUY (Below 1.0× - Undervalued)
Yellow Zone: HOLD (1.0× - 1.5× - Fair Value)
Orange Zone: CAUTION (1.5× - 2.0× - Getting Hot)
Red Zone: SELL (2.0× - 3.0× - Overvalued)
Notes / limitations
The “cheap/expensive” zones are heuristics. They do not guarantee future returns.
Auto classification is best-effort; if your symbol is unusual, set the preset manually.
For newly listed assets with limited weekly history, the 200W SMA may be na until enough data exists.
Big Trend Catcher: Quad-Gate & VCP & ATR trailing Swing TradeThe Strategy Philosophy
This is designed for Daily Charts to capture the large chunks if not all of a primary trend. It focuses on the "VCP" (Volatility Contraction Pattern), combined with high-grade momentum filtering.
1. How VCP (The Quiet Zone) is Calculated
The script identifies "Volatility Contraction" by measuring the Bollinger Band Width (BBW).
* The Math: It calculates the standard BBW: $(Upper Band - Lower Band) / Mid Band$.
* The "Quiet" Threshold: It compares the current width to its own 50-period Simple Moving Average.
* The Signal: When the current width is narrower than the 50-period average, the stock is in a "Quiet Zone" (represented by the blue background). This indicates energy is coiling for a potential breakout.
2. How Rate of Change (ROC) is Calculated
Unlike a standard ROC, this "Wizard" version uses a smoothed momentum filter to reduce whipsaws:
* Raw ROC: First, it calculates the raw percentage change over 15 bars: $100 x (Close / Close(15) - 1).
* Smoothing: This raw value is then smoothed using a 10-period EMA.
* The Gate: The ROC Gate only turns green when this smoothed value is greater or equal to 0, ensuring the stock has genuine upward velocity before you enter.
3. What the Indicators on the Chart Show
* Yellow Line (20 EMA): Your "Tactical Line." It tracks short-term momentum and acts as a trigger for Phoenix re-entries.
* Blue/Gray Line (100 EMA): Your "Regime Filter." It turns Blue when the trend slope is positive and Gray when negative.
* Thin Gray Outer Bands: These are Bollinger Bands set at 3 Standard Deviations from the 100 EMA. They mark extreme "Climax Zones" where price is statistically overextended.
* Stepped Red/Green Line (ATR Stop): The "Iron Floor." It uses a 20-period ATR with a 3.0 multiplier and an HHV (Highest High Value) lookback to ensure the stop only moves up, never down.
* Yellow Crosses (Gate Wait): These small icons appear above the bars when a signal has been detected but one or more "Wizard Gates" (such as the ROC or 100 EMA Slope) are not yet satisfied, signifying the strategy is waiting for full confirmation.
4. How to Trade This Strategy
* Step 1: The Setup: Look for the Blue Background on the daily chart, signifying a Volatility Contraction.
* Step 2: The Entry: An Initial Entry (Lime Triangle) fires when the price breaks out of the Quiet Zone with a volume spike. This volume must be greater than 1.3 times the 20-period Simple Moving Average of volume to confirm significant buying interest. An entry only occurs when all Quad-Gates (ROC, EMA Slope, Price > ATR) are satisfied.
* Step 3: Pyramiding: If the trend gains "Velocity" (price > 10% from entry), the script will signal a second unit to maximize gains during runaway moves.
* Step 4: The Exit: Sell the entire position if the price closes below the ATR Trailing Stop (Trend Death) or if the 100 EMA trend turns down.
5. The Phoenix Re-entry
If you are stopped out but the stock immediately recovers above the 20 EMA within 10 bars, a Phoenix Entry (Orange Triangle) will fire. This allows you to catch "Power Resumptions" where the initial shakeout was a bear trap.
Session Liquidity Sweep + Trend ConfirmationThis strategy aims to capture high-probability intraday trades by combining liquidity sweeps with a trend confirmation filter. It is designed for traders who want a systematic approach to trade breakouts during specific market sessions while controlling risk with ATR-based stops.
How it Works:
Session Filter: Trades are only considered during a defined session (default 9:30 - 11:00). This helps avoid low-volume periods that can lead to false signals.
Trend Confirmation: The strategy uses a 50-period EMA to identify the market trend. Long trades are only taken in an uptrend, and short trades in a downtrend.
Liquidity Sweep Detection:
A long entry occurs when price dips below the prior N-bar low but closes back above it, indicating a potential liquidity sweep that stops being triggered before the trend continues upward.
A short entry occurs when price spikes above the prior N-bar high but closes below it, signaling a potential sweep of stops before the downward trend resumes.
ATR-Based Risk Management:
Stop loss is calculated using the Average True Range (ATR) multiplied by a configurable factor (default 1.5).
Take profit is set based on a risk-reward ratio (default 2.5x).
Position Sizing: Default position size is 5% of equity per trade, making it suitable for risk-conscious trading.
Inputs:
Session Start/End (HHMM)
Liquidity Lookback Period (number of bars to define prior high/low)
ATR Length for stop calculation
ATR Stop Multiplier
Risk-Reward Ratio
EMA Trend Filter Length
Visuals:
Prior Liquidity High (red)
Prior Liquidity Low (green)
EMA Trend (blue)
Why Use This Strategy:
Captures stop-hunt moves often triggered by larger market participants.
Only trades with trend confirmation, reducing false signals.
Provides automatic ATR-based stop loss and take profit for consistent risk management.
Easy to adjust session time, ATR, EMA length, and risk-reward to suit your trading style.
Important Notes:
Assumes 0.05% commission and 1-pip slippage. Adjust according to your broker.
Not financial advice; intended for educational, backtesting, or paper trading purposes.
Always test strategies thoroughly before applying to live accounts.
ezzy_goldencross This strategy is a simple crossover trading strategy using SMA 50 and SMA 200 (long only). I also implemented a percentage profit target and stop loss.
Minervini Trend Template Screener (v5)This script is a screening tool based on Mark Minervini’s “Trend Template.”
It is designed to identify stocks that are in a strong, institutional-quality uptrend.
It checks whether:
Price is above the 50-day, 150-day, and 200-day moving averages
Moving averages are aligned 50 > 150 > 200, with the 200-day MA trending upward
Price is at least 30% above the 52-week low
Price is within 25% of the 52-week high
The stock shows strong relative performance vs a benchmark (e.g., SPY)
Only stocks that pass all conditions are highlighted, helping to focus on
high-quality trend leaders favored by momentum and growth investors.
このスクリプトは、**マーク・ミネルビニの「Trend Template(トレンド・テンプレート)」**に基づいて、
**強い上昇トレンドにある銘柄だけを自動で抽出(スクリーニング)**するためのものです。
主に以下を確認しています:
株価が 50日・150日・200日移動平均線の上 にある
50日 > 150日 > 200日 の並びで、200日線も上向き
株価が 52週安値から30%以上上昇している
株価が 52週高値から25%以内に位置している
ベンチマーク(例:SPY)と比べて 相対的に強い値動きをしている
すべての条件を満たした銘柄にだけシグナルを出し、
**「機関投資家が買いやすい、教科書的な強トレンド銘柄」**を見つける目的のスクリプトです。
Minervini TT RS Break (vs TOPIX)his script selects “buyable” stocks using Minervini’s Trend Template and filters for market leaders by relative strength versus TOPIX. A BUY signal appears when all TT conditions are met (price above 50/150/200-day MAs, 50>150>200 alignment, rising 200-day MA, +30% from 52-week low, within 25% of 52-week high) and RS is above the threshold, trending up, and making new highs. While BUY is active, an ENTRY signal is shown only when a pivot breakout (above the prior N-day high) occurs with a volume surge (multiple of average volume) and volatility contraction (lower ATR%). An RS BREAK is flagged when relative strength weakens (below its MA or MA turning down), indicating no-add and exit watch. Use BUY to build a watchlist, act only on ENTRY signals, and stop adding while prioritizing exit decisions when RS BREAK appears.
EMA Ribbon [PTrades]Multiple EMAs that you can change color and width in the input window so that you can easily see which EMA length that you are adjusting.






















