Zero Lag Trend Strategy (MTF)🧠 Strategy Overview
The Zero Lag Trend Signals Strategy (MTF) is a high-precision, multi-timeframe trend-following system designed for traders seeking early trend entries and intelligent exits. Built around ZLEMA-based signal detection, based on the original indicator Zero Lag Trend Signals (MTF) from AlgoAlpha, now built as a strategy with several improvements for Exit Criteria include RR, ATR Stop Loss, Trailing stop loss, etc. See below.
This momentum strategy works much better for higher timeframes, typically 4 hours or higher. This particular combination only contains 57 trades because this captures larger trend moves. The dataset contains realistic commission and slippage. You can try to run this on a smaller timeframe, but you will need to try different combinations of length, band multiplier, risk-reward ratios, and other stop loss criteria.
🔍 Key Components
1️⃣ ZLEMA Trend Engine
ZLEMA (Zero-Lag EMA) forms the foundation of the trend signal system.
Detects bullish and bearish momentum by analyzing price action crossing custom ZLEMA bands.
Optional confirmation using 5-bar ZLEMA slope filters (up/down trends) ensures high-conviction entries.
2️⃣ Volatility-Based Signal Bands
Dynamic bands are calculated using ATR (volatility) stretched over 3× period length.
These bands define entry zones (outside the bands) and trend strength.
Price crossing above/below the bands triggers trend change detection.
3️⃣ Entry Logic
Primary long entries occur when price crosses above the upper ZLEMA band.
Short entries (optional) trigger on downside cross under the lower band.
Re-entry logic allows continuation trades during strong trends.
Filters include date range, ZLEMA confirmation, and previous position state.
4️⃣ Exit Logic & Risk Management
Supports multiple customizable exit mechanisms:
🔺 Stop-Loss & Take-Profit
ATR-Based SL/TP: Uses ATR multipliers to dynamically set levels based on volatility.
Fixed Risk-Reward TP: Targets profit based on predefined RR ratios.
Break-Even Logic: Automatically moves SL to entry once a threshold RR is hit.
EMA Exit: Optional trailing exit based on price vs. short EMA.
🔀 Trailing Stop
Follows price action using a trailing ATR-based buffer that tightens with trend movement.
🔁 Trend-Based Exit
Automatically closes positions when the detected trend reverses.
5️⃣ Multi-Option Trade Filtering
Enable/disable short trades, ZLEMA confirmations, re-entries, etc.
Time-based backtesting filters for isolating performance within custom periods.
6️⃣ Visual Feedback & Annotations
Trend shading overlays: Green for bullish, red for bearish zones.
Up/Down triangle markers show when ZLEMA is rising/falling for 5 bars.
Stop-loss, TP, trailing lines drawn dynamically on the chart.
Floating stats table displays live performance (PnL, win %, GOA, drawdown, etc.).
Trade log labels annotate closed trades with entry/exit, duration, and reason.
7️⃣ CSV Export Integration
Seamless export of trade data including:
Entry/exit prices
Bars held
Encoded exit reasons
Enables post-processing or integration with external optimizers.
⚙️ Configurable Parameters
All key elements are customizable:
Entry band length and multiplier
ATR lengths, multipliers, TP/SL, trailing stop, break-even
Profit target RR ratio
Toggle switches for confirmations, trade types, and exit methods
Indicators and strategies
NCrypt30 Breadth Strategy (Long Only, SMA 60, 7% SL)Breadth indication is the top 30 coin on coinbase by marketcap excluding BTC ETH & Stables to show overall alts sentiment. Trade will trigger when breadth hits 0 = the top 30 tokens on coinbase are all under the 60sma on the 4hr timeframe. The strategy has the trade close when breadth hits 100 or hits the stop loss which i have set at 7%, although is changeable to your risk tolerance.
MTF strategy with (CE, TT, Bernoulli,DMF,RSI filters)Strategy Overview
The strategy designed to be highly customizable, allowing users to select and configure different components.
Key Components:
1. Entry Signal Source
You can choose between two primary signal generators:
Chandelier Exit: A volatility-based indicator that provides buy/sell signals when the price moves a certain multiple of the Average True Range (ATR) away from a high or low.
Configurable parameters: ATR Period, ATR Multiplier, and whether to use the Close price for extremums.
Trend Trader: This appears to be a custom combination of MACD and ADX. It generates buy/sell signals based on MACD crossovers when the ADX is above a certain threshold (25, indicating a trending market).
Configurable parameters: Fast Length, Slow Length, Signal Smoothing (for MACD), ADX Length, and DI Length.
2. Take Profit (TP) Settings
The strategy offers flexible Take Profit options:
Enable/Disable: You can choose whether to use Take Profit at all.
Method:
Percentage: Closes the trade when a specified percentage profit is reached.
Risk/Reward Ratio: Calculates the Take Profit level based on a multiple of the initial Stop Loss distance.
Hold Until Stop: An option to override Take Profit and reverse signals, keeping the trade open until the Stop Loss is hit.
3. Stop Loss (SL) Settings (by chadmex)
This section defines how Stop Loss is calculated and managed:
Type:
Trailing: The Stop Loss dynamically adjusts as the trade moves in profit, locking in gains.
Fixed: The Stop Loss remains at its initial calculated level.
ATR Length: Period for ATR calculation, used in determining the Stop Loss distance.
Use Structure (High/Low): If enabled, the Stop Loss is calculated relative to recent Highs/Lows; otherwise, it's based on the Close price.
Lookback: The period for finding recent Highs/Lows for structure-based Stop Loss.
ATR Multiplier: A multiplier applied to the ATR value to set the Stop Loss distance.
4. Alert Settings
Customizable messages for various trade events:
Long Entry
Short Entry
Take Profit Hit
Stop Loss Hit
5. Filtering Mechanisms
The strategy includes a wide array of filters that can be independently enabled and configured to refine trade entries:
EMA Crossover Filter: Allows trades only when a fast EMA is above a slow EMA (for long) or vice versa (for short).
Configurable parameters: Timeframe, Fast EMA Length, Slow EMA Length.
RSI + Bollinger Bands + EMA Filter: Filters trades based on the relationship between an RSI-based Moving Average (Fast or Slow EMA of RSI) and the Bollinger Band Basis of RSI.
Configurable parameters: Timeframe, RSI Length, BB Length, BB Multiplier, Fast EMA Length, Slow EMA Length.
RSI EMA Level Filter: Prevents trades when RSI EMA is in overbought (for long) or oversold (for short) regions.
Configurable parameters: Upper Level (forbid longs), Lower Level (forbid shorts).
MFI (Custom) Filter: Filters trades based on a custom Money Flow Index (MFI) indicator. Default is long for MFI > 0, short for MFI < 0, with an option to reverse the logic.
Configurable parameters: Timeframe, MFI Period.
RSI+MFI (by VuManChu) Filter: Filters trades based on a combined RSI and MFI indicator. Default is long for indicator > 0, short for < 0, with an option to reverse the logic.
Configurable parameters: Timeframe, RSI+MFI Period, Multiplier, Y Position Offset.
OBV (On-Balance Volume) Filter: Two options for filtering based on OBV and its EMAs/SMAs.
Option 1: Fast EMA of OBV vs. OBV SMA.
Option 2: Fast EMA of OBV vs. OBV SMA and Slow EMA.
Configurable parameters: Timeframe, OBV BB Length, OBV Fast EMA Length, OBV Slow EMA Length, and an option to invert the logic.
Bernoulli (by kocurekc) Filter: Filters trades using a Bernoulli entropy indicator. Default is long for value > 0, short for < 0, with options to reverse the logic and block trades in a "gray zone" (close to zero).
Configurable parameters: Timeframe, Entropy Length, Averaging Length, Trade Band (gray zone), Measurement Type, Bernoulli Purest, Probability Smoother, Include Source (price), Include Volume.
EMA Deviation (v2) Filter: Prevents trades after significant price deviations from EMAs, indicating potential overextension.
Configurable parameters: Timeframe, Fast EMA Length, Slow EMA Length, Average Lookback, Signal Multiplier.
Advanced RSI Conditions Filter (Forbidding): Allows defining multiple conditions based on RSI, its EMAs, and Bollinger Bands that, if any are met, forbid a trade. Includes "Death Cross" and "Golden Cross" variations.
Configurable parameters: Timeframe, RSI Length, BB Length, BB Multiplier, Fast EMA Length, Slow EMA Length, and numerous toggleable rules with customizable operators (Above/Below) and values for BB, RSI, and EMA relationships.
Advanced RSI Conditions Filter - 2 (Allowing): Similar to the forbidding filter, but trades are only allowed if all enabled conditions are met.
Configurable parameters: Same as the forbidding filter, but for allowing rules.
DMF (Dynamic Money Flow) Filter: Filters trades based on a custom Dynamic Money Flow indicator and its moving averages.
Configurable parameters: Timeframe, Period, Moving Average Type (EMA, WMA, T3, FRAMA), Fast Length, Slow Length.
Detailed Long/Short Conditions: Allows precise control over the DMF value, fast MA, and slow MA ranges, and cloud conditions for both long and short entries.
Trade Execution Logic:
Signal Generation: Either Chandelier Exit or Trend Trader generates a raw buy or sell signal.
Filter Application: The raw signal is then passed through all enabled filters.
For forbidding filters, if any of their active rules are met, the trade is blocked.
For allowing filters, all of their active rules must be met for the trade to proceed.
Combined Filters: All active filters must allow a trade for it to be considered valid.
Entry: If a valid buySignal and allowLong conditions are met (and not holding until stop, or if holding until stop, there's no open position), a "Long" entry is executed. The same applies for "Short" entries.
Stop Loss Calculation: Upon entry, an initial Stop Loss price is calculated based on the chosen type (Fixed/Trailing) and parameters.
For trailing SL, the active_long_stop or active_short_stop is updated to trail the price.
Take Profit Calculation: If useTakeProfit is true and holdUntilStop is false, a Take Profit target is calculated based on the chosen method (Percentage or Risk/Reward).
Exit:
If the price hits the Stop Loss, the position is closed.
If the price hits the Take Profit target, the position is closed (unless holdUntilStop is active).
Plotting:
The script plots:
Calculated Stop Loss and Take Profit levels (as white lines, typically for visual debugging).
The active Trailing Stop Loss lines (green for long, red for short).
Multi-Indicator Trend-Following Strategy v7This strategy is a trend-following system that combines multiple technical indicators into a single, optimized indicator to help identify high-probability Buy and Sell opportunities while maintaining a clean and uncluttered chart.
✅ How It Works:
This script utilizes a combination of Exponential Moving Averages (EMAs), Relative Strength Index (RSI), Volume, MACD, and Average True Range (ATR) to determine trade entries and exits.
🟢 Buy Conditions:
Trend Crossover Entry:
A Buy signal is generated when the Fast EMA crosses above the Slow EMA, indicating a potential bullish trend.
Oversold Reversal Entry:
Alternatively, a Buy is triggered when:
The Slow EMA is significantly below the Fast EMA (oversold market behavior),
The current price is well below the Fast EMA,
A volume spike occurs, suggesting a possible reversal.
🔴 Sell Conditions:
Trend Crossover Exit:
A Sell signal is generated when the Fast EMA crosses below the Slow EMA, indicating a bearish shift.
Overbought Reversal Exit:
A Sell is triggered when:
The Slow EMA is above the Fast EMA by a wide margin,
The price is well above the Fast EMA,
A volume spike suggests downward reversal pressure.
📏 Risk Management:
Uses ATR-based stop-loss and take-profit levels to dynamically manage risk per trade.
Includes adjustable input options for ATR multipliers, moving average lengths, volume filters, and more.
🧩 Why Use This Strategy?
Rather than juggling multiple indicators manually, this script combines and simplifies them into a single, convenient strategy. It’s ideal for traders who want:
Clean visual signals,
Robust entry/exit logic backed by volume and trend behavior,
A modular and customizable setup for testing and optimization.
⚠️ Disclaimer: This script is for educational and informational purposes only. It does not constitute financial advice. Always backtest strategies thoroughly and use proper risk management when trading live.
VWAP + EMA20 + EMA200 + RSI + SR + Panel vwap ema 20 + ema 200 con senales de entrada y soportes dinamicos ideal 1 hora
IKODO Engulfing Strategy with Dynamic RR# 📈 ELITE ENGULFING STRATEGY - PUBLICATION DESCRIPTION
## **🎯 TITLE:**
**Elite Engulfing Strategy with Dynamic Risk Management - Advanced Pattern Recognition System**
---
## **📊 DESCRIPTION:**
### **🚀 OVERVIEW:**
The **Elite Engulfing Strategy** is a sophisticated trading system that combines advanced pattern recognition with dynamic risk management. This strategy identifies high-probability engulfing patterns while using the 50 EMA as a trend filter, ensuring trades align with the dominant market direction.
### **🔍 KEY FEATURES:**
**📈 ADVANCED PATTERN RECOGNITION:**
- Enhanced engulfing pattern detection with mathematical validation
- Quality filters including wick analysis and body-to-body ratio
- Volume confirmation for signal strength
- ATR-based volatility filtering for optimal entry timing
**🎯 DYNAMIC RISK MANAGEMENT:**
- Customizable Risk-Reward ratio (0.5x to 10x)
- Fibonacci-based take profit levels using swing highs/lows
- ATR-enhanced stop loss placement with buffer zones
- Real-time position sizing based on market volatility
**📊 INTELLIGENT FILTERING SYSTEM:**
- 50 EMA trend filter for directional bias
- Volume multiplier confirmation (1.0x to 3.0x average)
- Minimum engulfing ratio validation (0.01 to 1.0)
- Maximum wick ratio quality control (10% to 80%)
**🔔 COMPREHENSIVE ALERT SYSTEM:**
- Real-time entry signals with price and RR information
- Both alertcondition() and alert() functions for maximum compatibility
- Detailed signal descriptions for manual verification
### **📋 STRATEGY LOGIC:**
**🟢 LONG ENTRY CONDITIONS:**
- Price above 50 EMA (bullish trend confirmation)
- Current bullish candle completely engulfs previous bearish candle
- Current candle's low penetrates previous candle's low
- Volume exceeds average by specified multiplier
- ATR volatility meets minimum threshold
- Wick size within acceptable parameters
**🔴 SHORT ENTRY CONDITIONS:**
- Price below 50 EMA (bearish trend confirmation)
- Current bearish candle completely engulfs previous bullish candle
- Current candle's high penetrates previous candle's high
- Volume and volatility confirmations as above
### **⚙️ CUSTOMIZABLE PARAMETERS:**
**🎯 Risk Management:**
- Risk-Reward Ratio: 0.5 to 10.0 (default: 2.0)
- Fibonacci TP Level: 0.236 to 1.0 (default: 0.618)
- Use Fibonacci toggle for advanced exit strategy
**📈 Trend Analysis:**
- EMA Length: 1 to 200 periods (default: 50)
- EMA Source: OHLC4, Close, HL2, etc.
**🔍 Pattern Quality:**
- Minimum Engulfing Ratio: 0.01 to 1.0 (default: 0.1)
- Maximum Wick Ratio: 10% to 80% (default: 30%)
**🔧 Advanced Filters:**
- Volume Filter: On/Off with 1.0x to 3.0x multiplier
- ATR Filter: 1 to 50 periods with 0.1 to 2.0 ratio threshold
### **📊 PERFORMANCE METRICS:**
- Real-time P&L tracking
- Current trend identification
- ATR volatility measurement
- Risk-reward ratio display
- Strategy parameter overview
### **🎨 VISUAL ELEMENTS:**
- 50 EMA trend line with dynamic coloring
- Entry signals with triangular markers
- Stop loss and take profit levels
- Entry price reference line
- Comprehensive information table
### **💡 BEST PRACTICES:**
- Recommended for 1H to 4H timeframes
- Works best in trending markets
- Combine with higher timeframe analysis
- Use proper position sizing (1-2% risk per trade)
- Monitor during high-impact news events
### **🔧 COMPATIBILITY:**
- Pine Script v6
- Compatible with all TradingView account types
- Optimized for both free and premium users
- Works on all asset classes (Forex, Crypto, Stocks, Indices)
### **⚠️ DISCLAIMER:**
This strategy is for educational purposes only. Past performance does not guarantee future results. Always use proper risk management and never risk more than you can afford to lose. Test thoroughly on paper trading before live implementation.
## **📝 USAGE INSTRUCTIONS:**
1. Add the strategy to your chart
2. Adjust parameters according to your risk tolerance
3. Set up alerts for automated notifications
4. Backtest on your preferred timeframe and asset
5. Start with paper trading to validate performance
6. Implement proper position sizing for live trading
**🎯 Ready to elevate your trading game with professional-grade pattern recognition!**
Wx2 strategy(2Min)Institutional Entry Strategy
Time Frame: 2Min
Entry: at Highlited Candle
Exit : at exit signal
Stop Loss 1 Bar
Simple MA AI Strategy + All Pattern Recognition (Reversed)just try m1 chart only 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
[Mustang Algo] Channel Strategy# Mustang Algo Channel Strategy - Universal Market Sentiment Oscillator
## 🎯 ORIGINAL CONCEPT
This strategy employs a unique market sentiment oscillator that works on ALL financial assets. It uses Bitcoin supply dynamics combined with stablecoin market capitalization as a macro sentiment indicator to generate universal timing signals across stocks, forex, commodities, indices, and cryptocurrencies.
## 🌐 UNIVERSAL APPLICATION
- **Any Asset Class:** Stocks, Forex, Commodities, Indices, Crypto, Bonds
- **Market-Wide Timing:** BTC/Stablecoin ratio serves as a global risk sentiment gauge
- **Cross-Market Signals:** Trade any instrument using macro liquidity conditions
- **Ecosystem Approach:** One oscillator for all financial markets
## 🧮 METHODOLOGY
**Core Calculation:** BTC Supply / (Combined Stablecoin Market Cap / BTC Price)
- **Data Sources:** DAI + USDT + USDC market capitalizations
- **Signal Generation:** RSI(14) applied to the ratio, double-smoothed with WMA
- **Timing Logic:** Crossover signals filtered by overbought/oversold zones
- **Multi-Timeframe:** Configurable timeframe analysis (default: Daily)
## 📈 TRADING STRATEGY
**LONG Entries:** Bullish crossover when market sentiment is oversold (<48)
**SHORT Entries:** Bearish crossover when market sentiment is overbought (>55)
**Universal Timing:** These macro signals apply to trading any financial instrument
## ⚙️ FLEXIBLE RISK MANAGEMENT
**Three SL/TP Calculation Modes:**
- **Percentage Mode:** Traditional % based (4% SL, 12% TP default)
- **Ticks Mode:** Precise tick-based calculation (50/150 ticks default)
- **Pips Mode:** Forex-style pip calculation (50/150 pips default)
**Realistic Parameters:**
- Commission: 0.1% (adjustable for different asset classes)
- Slippage: 2 ticks
- Position sizing: 10% of equity (conservative)
- No pyramiding (single position management)
## 📊 KEY ADVANTAGES
✅ **Universal Application:** One strategy for all asset classes
✅ **Macro Foundation:** Based on global liquidity and risk sentiment
✅ **False Signal Filtering:** Overbought/oversold zones reduce noise
✅ **Flexible Risk Management:** Multiple SL/TP calculation methods
✅ **No Lookahead Bias:** Clean backtesting with realistic results
✅ **Cross-Market Correlation:** Captures broad market risk cycles
## 🎛️ CONFIGURATION GUIDE
1. **Asset Selection:** Apply to stocks, forex, commodities, indices, crypto
2. **Timeframe Setup:** Daily recommended for swing trading
3. **Sentiment Bounds:** Adjust 48/55 levels based on market volatility
4. **Risk Management:** Choose appropriate SL/TP mode for your asset class
5. **Direction Filter:** Select Long Only, Short Only, or Both
## 📋 BACKTESTING STANDARDS
**Compliant with TradingView Guidelines:**
- ✅ Realistic commission structure (0.1% default)
- ✅ Appropriate slippage modeling (2 ticks)
- ✅ Conservative position sizing (10% equity)
- ✅ Sustainable risk ratios (1:3 SL/TP)
- ✅ No lookahead bias (proper historical simulation)
- ✅ Sufficient sample size potential (100+ trades possible)
## 🔬 ORIGINAL RESEARCH
This strategy introduces a revolutionary approach to financial markets by treating the BTC/Stablecoin ratio as a global risk sentiment gauge. Unlike traditional indicators that analyze individual asset price action, this oscillator captures macro liquidity flows that affect ALL financial markets - from stocks to forex to commodities.
## 🎯 MARKET APPLICATIONS
**Stocks & Indices:** Risk-on/risk-off sentiment timing
**Forex:** Global liquidity flow analysis for major pairs
**Commodities:** Risk appetite for inflation hedges
**Bonds:** Flight-to-safety vs. risk-seeking behavior
**Crypto:** Native application with direct correlation
## ⚠️ RISK DISCLOSURE
- Designed for intermediate to long-term trading across all timeframes
- Market sentiment can remain extreme longer than expected
- Always use appropriate position sizing for your specific asset class
- Adjust commission and slippage settings for different markets
- Past performance does not guarantee future results
## 🚀 INNOVATION SUMMARY
**What makes this strategy unique:**
- First to use BTC/Stablecoin ratio as universal market sentiment indicator
- Applies macro-economic principles to technical analysis across all assets
- Single oscillator provides timing signals for entire financial ecosystem
- Bridges traditional finance with digital asset insights
- Combines fundamental liquidity analysis with technical precision
ETHUSDT 1H - Momentum Breakout with ATR TP/SL (Long & Short)momentum candle untuk pair ethusdt TF 1H
• Timeframe: 1H
• Entry Long:
• Price Up ≥ 2% in1 candle
• Breakout high from 10 candles before
• Entry Short:
• Price Down ≥ 2% in 1 candle
• Breakdown low from 10 candles before
• TP: Use ATR × multiplier (default: 1.5)
• SL:
• Long → Low from candle momentum
• Short → High from candle momentum
Dual TF Stochastic StrategyCore Strategy Components:
Uses two Stochastic oscillators (Primary and Reference)
Both use 15-second timeframe (15S)
Primary Stochastic settings:
K Length: 12
K Smoothing: 12
D Length: 12
Reference Stochastic settings:
K Length: 12
K Smoothing: 15
D Length: 30
Entry Logic:
Long Entries occur when:
Primary %K crosses over %D
AND either:
Reference %D is ≥ 50 or < 20
OR Primary %K is close to Reference %D (within 0.15)
AND price is above Moving Average (if MA filter enabled)
AND during regular market hours (9:30 AM - 4:00 PM ET)
Short Entries occur when:
Primary %K crosses under %D
AND either:
Within tolerance of Reference %D
OR specific crossunder conditions met
AND price is below Moving Average
AND during regular market hours
Exit Logic:
Time-based exits:
At 3:30 PM ET
End of regular market hours
Technical exits:
Long positions: When Primary %K crosses under Reference %D
Short positions: When Primary %K crosses over Reference %D and Reference %D > 20
Pattern Detection:
Higher Low Pattern:
Current crossover %K > Previous crossover %K
Bullish continuation pattern
Lower High Pattern:
Current crossunder %K < Previous crossunder %K
Bearish continuation pattern
Risk Management:
Price difference filters:
Maximum price difference: 0.1%
Minimum price difference for shorts: 0.1%
Reference %D tolerance: 0.1%
Close %K tolerance: 0.7%
Strengths:
Multiple confirmation layers (dual timeframes, MA filter)
Clear entry/exit rules
Pattern recognition for trend continuation
Time-based filters to avoid volatile periods
Comprehensive alert system
Potential Limitations:
Short timeframe (15S) may generate more false signals
Tight price difference filters might miss some opportunities
Relies heavily on Reference %D levels
No stop-loss implementation visible in the code
Suggested Improvements:
Add stop-loss mechanisms
Implement position sizing rules
Add volume confirmation
Consider adding RSI or other momentum filters
Add backtesting statistics tracking
Best Use Cases:
Day trading in liquid markets
Markets with clear trends
Time periods with normal volatility
When price action aligns with Stochastic signals
Risk Considerations:
High-frequency trading due to 15S timeframe
Multiple entries possible in short timeframes
No explicit risk management beyond entry/exit rules
Market hours limitation might miss opportunities
Crypto Swing Trading Strategy (1-5 Day)Crypto Swing Trading Strategy Overview
This Pine Script implements a comprehensive 1-5 day swing trading strategy designed specifically for cryptocurrencies like BITSTAMP:BTCUSD (BTC), COINBASE:ETHUSD (ETH), and COINBASE:XRPUSD (XRP).
Here's what makes this strategy effective:
Core Philosophy: "Trade With The Trend"
The strategy follows the fundamental principle of trend-following - only taking trades in the direction of the prevailing market trend to maximize probability of success.
Key Components:
🔍 Trend Identification
Uses 50-day and 200-day EMAs to determine market direction
Only goes long when 50 EMA > 200 EMA (uptrend)
Only goes short when 50 EMA < 200 EMA (downtrend)
⚡ Smart Entry Timing
Waits for pullbacks within the trend (price near 50 EMA)
Uses RSI to identify oversold conditions in uptrends (RSI < 45) or overbought conditions in downtrends (RSI > 70)
Enters when momentum confirms trend resumption (RSI crosses back)
🛡️ Advanced Risk Management
ATR-based stop losses that adapt to market volatility
Position sizing ensures consistent 1% risk per trade
Wider stops in volatile markets, tighter stops in calm markets
💰 Profit Optimization
Takes 50% profit at 2:1 reward-to-risk ratio
Trails remaining position with ATR-based stops
Lets winners run while protecting gains
Why It Works:
High Probability Setups: Only trades with the trend during pullbacks
Volatility Adaptive: ATR ensures stops aren't too tight or too wide
Emotion-Free: All rules are clearly defined for automated execution
Capital Preservation: Strong risk management prevents large losses
Best Used For:
4-hour timeframes on major cryptocurrencies - Such as BTC - ETH - XRP
Trending markets (avoid during sideways consolidation)
Traders who want systematic, rule-based approach
This strategy combines the reliability of trend-following with the precision of momentum indicators, creating a robust system for capturing crypto market swings while managing downside risk effectively.
Advanced Doji Breakout StrategyTo identify high-probability breakout trades by detecting Doji candles that form near the 21-period EMA, with additional filters to avoid low-volatility and extreme price action conditions.
Vix FIX / StochRSI StrategyVix FIX / StochRSI Strategy — Smart Gold Trading with Market Fear Detection
Pine Script Version 6 | Timeframe: 1H | Supports Long & Short
🔍 Strategy Overview:
This strategy is designed for trading gold and other highly volatile assets. It combines three powerful components:
Williams VIX Fix (WVF) – A fear-based volatility indicator inspired by the CBOE VIX Index, adapted for non-index assets.
Stochastic RSI – Measures overbought and oversold momentum, used as an exit trigger.
Price Action Filters – Confirms strong bullish or bearish bars to trigger high-conviction entries.
📌 Entry Conditions:
✅ Long Entry
WVF indicates the end of fear (mean reversion signal).
Bullish momentum bar (upRange).
Price is higher than n bars ago but still below medium/long-term recent highs.
✅ Short Entry
WVF indicates the market just cooled down from fear.
Bearish momentum bar (downRange).
Price is lower than n bars ago but still above recent lows.
📌 Exit Conditions:
🔴 Exit Long when Stochastic Overbought + %K cross below %D
🔵 Exit Short when Stochastic Oversold + %K cross above %D
📊 Key Features:
Dual-side entries (Long & Short)
Timeframe-limited to 1 Hour (60 minutes) for consistent signal quality
Ideal for gold and volatile assets (crypto, index CFDs)
Backtested with strong performance across major pairs
Turtle Trading System (Full Version)The turtle trader strategy by Richard Dennis, buys from breakouts and uses volatility for sizing. Accurate on most asset classes, best on Gold.
Turtle 2.0 – Backtest Strategy for Trend ConfirmationA simple backtesting tool for traders who want to test and understand their own ideas.
This is not a signal provider. Not a finished system. Not financial advice.
Purpose of this Script
This strategy is not intended for live trading, but rather as an analytical and educational tool.
It is based on a simplified, trend-following Turtle-style logic and helps you explore the question:
“When does a strategy work – and when does it fail?”
I (Tom) am not a professional trader myself, but someone who is between beginner and intermediate.
This tool helps me (and hopefully you too) think more systematically and back up (or challenge) my own ideas.
Core Idea
Most trading strategies only work under certain market conditions.
This script helps you analyze:
– Does your logic work better in clear trends?
– Do trend filters help – and when do they hurt?
– How do sideways phases affect performance?
– Is your setup robust across different timeframes and assets?
Adjustable Settings
The script is designed to be flexible. In the settings panel, you can configure:
• Enable EMA trend filter – Activate or deactivate trend filtering
• EMA 1–4 – Length of exponential moving averages (e.g. 21, 50, etc.)
• Show pivots – Display local highs and lows as reference
• Pivot length – Number of candles to each side to define a pivot
• Show signals – Enable or disable signal visualization
All parameters can be adjusted directly in the TradingView settings menu.
If You Decide to Trade with It (Not Recommended)
If you still want to test this strategy with real trading, please consider:
Always analyze market context (trend, volatility, news)
Use your own stop-loss and take-profit logic
Avoid choppy or sideways markets
Test across different timeframes and instruments
Combine it with volume, support/resistance, or candlestick patterns
Note: The script is non-repainting – signals are shown only after the bar is closed.
Possible Use Cases
– Only show signals in trend phases
– Analyze: When does your setup perform well or poorly?
– Review “what-if” scenarios
– Base for experimentation and further development
Feedback Welcome
If you have ideas, questions, or suggestions – feel free to reach out.
I'd love to hear your thoughts or see how you use or modify the script.
Background & Development
This script was initially inspired by publicly available code from parsimaj.
It was completely rewritten, modernized, documented, and customized to my own requirements.
The goal was to create a simple, robust, and flexible learning and testing tool.
License & Disclaimer
– No guarantee of profitability. Not financial advice.
– Use at your own risk. Educational and analytical use only.
Author: Tom & ChatGPT
Version: Turtle 2.0 – Backtest Edition
Platform: TradingView – Pine Script v5
PMZ's Triple Filter Trend Strategy {Darkoexe}This strategy is a rule-based trend and momentum trading system that combines three unique technical models into a single composite engine. It’s designed for traders who prefer well-filtered entries, limited noise, and clear trade structure.
🔍 Core Logic
PMZ’s Composite Strategy integrates the following systems:
✅ 1. ASO (Advanced Sentiment Oscillator)
Measures bullish vs. bearish dominance using custom formulas that blend intrabar pressure with group-range dynamics. Three calculation modes give flexibility in emphasis.
✅ 2. SSL Channel
A classic trend-following method based on moving averages of highs and lows. It helps filter out false signals and align trades with broader market direction.
✅ 3. MBI (Momentum Breakout Indicator)
Looks for breakouts above/below recent extremes. It acts as the final trigger mechanism when other filters are aligned.
Trades are only taken when:
A fresh ASO/SSL trend agreement occurs
A MBI breakout happens in the same direction
A recent crossover (bullish or bearish) confirms the signal
⚙️ Strategy Settings
Backtesting Toggle – Define start and end time for historical testing.
Take Profit / Stop Loss via ATR – Risk-managed exits using user-defined ATR multipliers.
No Reentries – The strategy waits until the current trade is closed before opening a new one (no overlapping trades).
📊 How It Works
🟢 Long Entry: Triggered when all 3 modules turn bullish together, with confirmation from an ASO trend crossover.
🔴 Short Entry: Triggered when all 3 modules align bearish.
📉 Stop Loss / Take Profit: Calculated dynamically using ATR to adapt to volatility.
🔧 Customizable Inputs
ASO Period & Method
SSL Moving Average Period
MBI Breakout Lookback
ATR period + TP/SL Ratios
Backtest Date Range Controls
🛑 Disclaimer
This strategy is a technical tool and not financial advice. Past performance is not indicative of future results. Always forward test and evaluate performance in live or paper environments before trading with real capital.
Medico Action Zone self adjust TFput "buy" and "sell" signal by using EMA 12/26 and you can adjust TF for short term or long term.
Holy Grail (100% Win Rate)tldr:
1. Here you go folks – no repaint, no dodgy stuff, and 100% win rate
2. DO NOT TRADE THIS
________________________________________
Key points:
• Assets to trade: SPY, NASDAQ, DAX, FTSE, Bitcoin
• Time Frame: 1D or higher
________________________________________
What does the script do?
The script buys a certain amount of the asset every time we're in a pullback, and sells when we make a new All-Time High (ATH). More specifically, it waits for the first green candle after the lowest point of the pullback, and then adds to the position. We assume that when we see a green candle, the pullback is over. If we go even lower – we wait for another green candle. The script sells on the first red candle after an ATH.
The pullback is identified using a simple moving average (MA) – if we're below the MA, we're in a pullback.
You can set the MA length in the settings. I considered adding different types of MAs, but decided against it as it wouldn't change much in terms of the general idea.
You can also set the percentage of your account to invest on the very first candle – this is an initial pre-filling of the position, so you have something to sell if the price goes straight up after you start trading. If you think we’re in a bear market and the only way is up, you might want to set a higher number. On the other hand, if you believe we’re near the top of a bull market, set a lower one.
You can set the percentage of the position to sell on each red candle after ATH under Settings → Input → Exit % . Similarly, you can set the percentage to buy on each green candle after a pullback low under Settings → Properties → Order Size . Since bull markets tend to last longer than bear market pullbacks, you’ll typically want Exit % to be larger than Order Size — though this may vary depending on your initial pre-fill.
________________________________________
Why these assets?
These are assets that are expected to go up over the long run. I call them “number go up” assets. Meaning: no matter where they are now, at some point in the future they’ll make a new ATH. That’s why this might not work on individual stocks like Nvidia or Tesla — there’s no guarantee they won’t go bust tomorrow. We all remember big companies from the past (Enron, Lehman Brothers, etc.) that collapsed unexpectedly.
With SPY, you're betting on the American economy. And the American economy will go up at least because of inflation. If you believe inflation will continue, then you believe we’ll eventually see a new ATH in SPY. It may take years — like from 2007 to 2013 — but it happened. And there was a bull run after that.
And if you think the American economy will never grow again — well, if that’s true, we’ll all have much bigger problems than trading scripts.
________________________________________
Why this time frame?
Because, as mentioned, it may take a long time to reach a new ATH. You can use a shorter time frame, but that requires a higher TradingView subscription plan to view multi-year data.
Also, if you choose a shorter time frame, you should reduce the Order Size and Exit % accordingly, because the script will jump in on every new green candle after a pullback. On a 1-minute chart, that could mean 100x more entries compared to daily. Conversely, if you go to a higher time frame, increase the sizes — otherwise, too much of your capital will just sit unused.
________________________________________
So if everything is so great and it has a real 100% win rate – why not trade it?
If you turn on the “buy & hold equity” curve, you’ll see that the profit from all closed trades (with a 100% win rate) is smaller than if you had simply bought the asset and held it for years.
Real-world slippage and fees will reduce your actual profits even more.
If you’re unlucky and start trading at the very top of a bull market, it might take 10 years before even a single trade is closed.
Some assets that seem like they can only go up long-term... might not. Take Bitcoin. Many believe it can only go up in the long term, but it could still die — just like anything else. The only reason I included it is because many people treat it as a “number go up” asset. And I know some will try to trade it. You've been warned. But I don’t want to start holy wars in the holy grail description (pun intended), so let’s move on.
________________________________________
What if, after all this, you do decide to trade this strategy?
Why would you? Maybe not for profit, but just to impress your friends with a 100% win rate. Or maybe you skipped the entire explanation above and just want to jump in because it sounds like a sure win.
Whatever your reason, first you should research the asset’s historical max time (in years) between ATHs. That’s how long you might need to keep a trade open. My other script – Cycles Analysis – might help with this.
Second, experiment with the input parameters. There aren't many, so it should be easy to find what works best for your asset. You can also enable “Show stats table” in settings – it’ll help you see how many entries/exits the script makes, which will help you find the right Order Size to Exit % ratio.
Yes, this might lead to over-optimization — but hey, if we’re at this stage, who cares, right?
That said, I did find some rare cases where specific parameter setups caused performance to dip below 100% due to a mandatory close at the wrong time.
Also, since trades can last for years, don’t use this with futures — you'd have to keep rolling them over. Use ETFs or similar long-holdable assets.
________________________________________
The final word
In short, this is a glorified “Buy the Dip” strategy. It only works long-term on a very limited set of assets, and in most cases performs worse than just buying and holding for the same period.
I created this script as a teaching tool — to show new traders that win rate isn’t everything. Even if the win rate is 100%. Trust me: it’s extremely hard to beat the market (especially without leverage), and this script is just more proof of that.
Mahnam BTC with breake outThis strategy is designed and coded specifically for trading Bitcoin in the 15-minute timeframe.
Of course, those who are skilled in coding can use it in other timeframes and currencies by changing its codes and personalizing it.
Of course, it is strongly recommended that people who want to use it first perform the necessary backtests or test this strategy on demo sites and then trade on the Tetri platform.
In this strategy, it only checks the entry and exit conditions and connects to the exchange using the API code and trades completely automatically.
This strategy determines the stop loss and take profit points on the exchange at the same time as entering the transaction and sets them.