Indicadores e estratégias
1 Triple EMA Crossover Strategy (x, 3x, 9x)An excellent EMA strategy.
x, 3x, and 9x: These represent the periods of the EMAs. For example, if 'x' is 10, then you would have a 10-day EMA, a 30-day EMA, and a 90-day EMA.
Crossover: The strategy relies on identifying when the price or the shorter-term EMAs cross above or below the longer-term EMAs, signaling potential buy or sell opportunities.
How the Strategy Works:
1. Trend Identification:
The relationship between the three EMAs indicates the overall trend. If the 3x EMA is above the 9x EMA, and the x EMA is above both, it suggests an uptrend. Conversely, if the 3x EMA is below the 9x EMA, and the x EMA is below both, it indicates a downtrend.
2. Buy Signals:
A buy signal might be generated when the shortest EMA (x) crosses above the medium EMA (3x) and then both cross above the longest EMA (9x), suggesting a potential breakout.
3. Sell Signals:
A sell signal might be generated when the shortest EMA (x) crosses below the medium EMA (3x) and then both cross below the longest EMA (9x), suggesting a potential breakdown.
---------------------------------------------------------------------------------------------------------
Unlocking Trends with the Triple EMA Crossover Strategy (x, 3x, 9x)
Welcome to an intuitive yet powerful trend-following strategy designed for clarity and actionable signals: the Triple EMA Crossover. This Pine Script® indicator leverages the Exponential Moving Average (EMA) to help traders identify prevailing trends, potential breakouts, and breakdowns with enhanced precision. Built on a simple, scalable 'x, 3x, 9x' methodology, it provides a dynamic framework for navigating market movements.
Understanding the x, 3x, 9x EMA Foundation
At its core, this strategy utilizes three Exponential Moving Averages, each acting as a distinct lens on price action. Unlike Simple Moving Averages (SMAs) which give equal weight to all data points, EMAs place a greater emphasis on recent prices, making them more responsive to current market conditions—a crucial advantage in fast-paced environments like intraday trading.
The "x, 3x, 9x" nomenclature is elegantly simple:
x EMA (Fast EMA): This is your shortest-period EMA, highly sensitive to immediate price changes. It acts as the leading indicator, quickly reacting to shifts in momentum.
3x EMA (Medium EMA): Calculated with three times the 'x' period, this EMA provides a smoother, yet still responsive, view of the short-to-medium term trend. It often acts as dynamic support or resistance.
9x EMA (Slow EMA): Representing nine times the 'x' period, this is your longest EMA. It filters out much of the market noise, giving you a clear picture of the underlying dominant trend.
The beauty of this setup lies in its adaptability. By simply adjusting the Base EMA Period (x) input in the script settings, you can automatically calibrate all three EMAs to suit different instruments, volatility levels, or even your preferred trading style. A common starting point for 'x' in intraday trading on a 5-minute chart is 10, which translates to 10, 30, and 90-period EMAs.
How the Strategy Works: Signals and Trend Identification
The power of the Triple EMA Crossover lies in the interplay and alignment of these three moving averages.
1. Trend Identification
The relative positioning of the EMAs paints a clear picture of the market's trend:
Uptrend (Bullish): When the emaX (fast) is above the ema3X (medium), and the ema3X is, in turn, above the ema9X (slow), it indicates a strong bullish trend. This "stacked" alignment suggests robust upward momentum.
Downtrend (Bearish): Conversely, if the emaX (fast) is below the ema3X (medium), and the ema3X is below the ema9X (slow), it signals a clear bearish trend.
2. Buy Signals 🟢
A buy signal is generated when the swift emaX crosses above the ema3X, AND simultaneously, the ema3X is already above the ema9X. This combined condition ensures that the shorter-term momentum is shifting upward while the underlying medium-term trend remains strong and aligned with the longer-term direction. This reduces false signals often seen with simple two-EMA crossovers, aiming to capture high-probability upward moves. The script will plot a green upward-pointing triangle below the candle to visually alert you to this entry.
3. Sell Signals 🔴
A sell signal occurs when the quick emaX crosses below the ema3X, AND the ema3X is already below the ema9X. This indicates that the short-term momentum is shifting downwards, confirming a bearish bias within the broader downtrend. This comprehensive confirmation helps identify potential breakdowns and exit points for long positions or entry points for short trades. A red downward-pointing triangle will appear above the candle to mark this signal.
The strategy also includes an intuitive exit mechanism: if a buy signal is active and a sell condition is met, the long position will be closed, and vice-versa for short positions. This ensures you're always aligned with the most recent confirmed trend direction.
Key Advantages for Traders
Clarity: Provides visually clear trend direction and momentum shifts.
Responsiveness: EMAs react faster to price changes compared to SMAs, making them ideal for dynamic markets.
Confirmation: The three-EMA alignment significantly reduces false signals, leading to higher-conviction trades.
Adaptability: The x input allows you to fine-tune the strategy for various assets and market conditions.
Simplicity: Despite its effectiveness, the logic remains straightforward and easy to understand.
Important Considerations for Day Trading
For optimal performance in intraday trading, it's highly recommended to apply this strategy on a 5-minute chart. This timeframe strikes the perfect balance between capturing rapid price action and filtering out excessive market noise, allowing the EMA crossovers to provide meaningful signals. Always combine this technical analysis with sound risk management, including stop-loss orders, and consider other indicators or fundamental analysis for further confirmation.
Customization and Disclaimer
Feel free to experiment with the Base EMA Period (x) input to find the optimal settings that resonate with your trading style and the specific instruments you trade. Remember, no single strategy guarantees profits, and past performance is not indicative of future results. This script is provided for educational and illustrative purposes. Always conduct your own research and risk assessment before trading with real capital. Happy Trading!
Estrategia de NY ORB por CPThis strategy marks the New York market opening range during the first 15 minutes and confirms a buy or sell entry once the price returns and retests that range. It’s designed to capture trades of 60 points or more after the range has been retested. I suggest complementing the strategy with an indicator that highlights FVGs (Fair Value Gaps) or order blocks to better understand what price is doing and where it’s heading.
esta estrategia te marca el rango de apertura del mercado de ny de los primeros 15 minutos y te confirma entrada en venta o compra una vez que el precio regrese y retestee el rango. esta diseñada para tener trades de 60 puntos o mas una vez que el rango sea retesteado. sugiero acompañar la estrategia con algun indicador que marque fvg o order blocks para tener una mejor de lo que el precio esta haciendo y hacia donde se dirige.
POCTraderX Pro— Structure & Precision Algorithm POCTraderX Pro is a market analysis system designed to accurately identify key interest zones and price turning points. It combines advanced Price Action reading with a dynamic filtering process that adapts signals according to market volatility and internal structure.
Methodology
The algorithm analyzes the sequence of relevant highs and lows (HH, HL, LL, LH) along with the price location in relation to Point of Control levels and consolidation ranges.
It uses multi–timeframe confirmations to filter out false breakouts and optimize trade entries.
In high–volatility conditions, it automatically adjusts validation levels to maintain a favorable risk/reward ratio.
Configuration
Recommended timeframes: from 1–minute to daily, depending on the trading style.
Applicable markets: indices, forex, commodities, and cryptocurrencies.
Adjustable parameters:
Structure detection sensitivity.
Enable/disable volatility filters.
Show/hide control zones and previous ranges.
Purpose
Provide a clear reading of market structure and critical zones to help traders execute trades with greater consistency and avoid entries in low–probability areas.
Important Notes
This script is closed–source to protect its internal methodology, but it is based on an original combination of structural analysis and zone validation not available in free indicators.
It does not produce automatic buy or sell signals without context; it is intended to be integrated into a complete trading strategy.
4H RSI + EMA (Fib optional) with 3:1 R:R + Hybrid ExitAs above.
RSI + 50 EMA & 200MA
3:1 R:R
Exit based on RSI extreme or 200MA Opposition or 3:1 R:R
3-Minute RSI and EMA Crossover Strategy3-Minute RSI and EMA Crossover Sell Strategy with Exit Conditions and Re-entry
RSI AND EMA BASED STRATEGY.. WORK ON MINUTES RSI SETTINGS.
AI Demand Strategy (Long Only) professionals.aiThe "AI Demand Strategy (Long Only) professionals.ai" is a TradingView strategy designed for USDT-based spot trading.
It focuses on long-only entries, incorporates optional trend filtering, and includes configurable risk-to-reward settings for exit targets.
It provides:
Customizable parameters for sensitivity, risk/reward ratio, and trend filtering
Automated entry and exit management
Stop-loss and take-profit level plotting on the chart
Visual buy/sell markers for trade signals
Optional SMA filter for trend confirmation
Built-in alert conditions to connect with external trading automation systems
This setup allows traders to visually monitor trade levels, backtest performance, and automate alerts without manually tracking market conditions.
MACD EMA 200 Strategy (Roche 5min Scalp)Free to use, stay blessed.
I don't believe charging for something that everyone can use.
Please enjoy it.
ZapTeam Pro Strategy v6 — EMA The Pro Strategy v6 script is a versatile trading strategy for TradingView that combines trend indicators, filters, and levels.
Main features:
EMA 21, EMA 50, EMA 200 — trend detection and entry signals via EMA crossovers.
Ichimoku Cloud (optional) — trend filtering and price position relative to the cloud.
ETH Dominance filter (optional) — filters trades based on Ethereum dominance (ETH.D).
ATR Stop-Loss — dynamic stop-loss based on volatility.
Two take-profits (TP1 and TP2) with optional 50/50 split.
Dynamic Fibonacci Levels — automatic or manual swings, with 1.272 and 1.618 extensions.
Custom S/R Levels — user-defined support/resistance levels.
Level lines extend across the chart and automatically adjust when zooming or panning.
Designed for trading in trending market conditions on any timeframe.
The strategy calculates position size based on percentage risk per equity.
VIP LONG BTC 15MThis strategy is designed to trade Bitcoin on the 15M timeframe, focusing exclusively on long positions. It uses an advanced system adapted to price action, combined with automated risk management through stop loss and take profit.
It is optimized to adapt to the high volatility and speculative nature of BTC, seeking out trend-driven momentum opportunities and avoiding low-probability periods detected through historical analysis.
Important: This strategy does not guarantee future profits and should be used after testing and analyzing in a simulated environment. A disciplined approach and appropriate risk management are recommended for the cryptocurrency market.
CP Strat ORBnew york opening range breakout and retest allows you to enter a trade with a better clarity if the price comes back and retest the range
Expanded Reversal System (4 Pattern Types)Overview
This is the final, refined version of a comprehensive candlestick reversal strategy, built with a core focus on reliability and safety. Its unique execution logic is designed to prevent common backtesting errors and ensure that the integrated risk management works precisely as intended on any timeframe.
The strategy aims to capture high-momentum reversals by identifying an expanded set of classic candlestick patterns and waiting for confirmation before entering a trade.
The "Confirm and Execute" Engine 🛡️
To eliminate bugs seen in simpler backtesting models, this strategy uses a deliberate, three-step execution process:
Signal: It first identifies a high-probability reversal pattern on a "Signal Candle."
Confirmation: It then waits for the next candle to break the high or low of the signal candle. This confirms momentum is moving in the desired direction.
Execution: Finally, it enters a market order on the open of the following candle.
This method ensures a robust and stable entry, allowing the Stop Loss and Take Profit orders to function with 100% reliability.
An Expanded Arsenal of Reversal Signals
This strategy looks for four distinct types of bullish and bearish patterns, giving it more opportunities to find valid trades:
Flexible Pin Bars: Loosened rules for Hammers and Shooting Stars to capture more opportunities.
Classic Engulfing Patterns: Identifies powerful, full-body engulfing candles.
Piercing Patterns & Dark Cloud Covers: Recognizes strong two-candle reversal signals.
Built-in Professional Risk Management 🎯
Automated Position Sizing: Every trade is automatically sized to risk exactly 2% of your current account equity.
Defined Exits: Once a trade is open, it is held until either the pre-calculated Stop Loss or Take Profit is hit. The strategy will not exit early or be influenced by new signals while in a trade.
Asymmetrical Risk/Reward: The strategy targets a 1:6 R:R for long trades and a 1:4 R:R for short trades.
How To Use
Apply the strategy to your chart.
Set your chart's timeframe. This version produced very strong results on the 3-Minute chart.
Review the detailed performance report in the 'Strategy Tester' tab.
Disclaimer: This strategy is provided for informational and educational purposes. All trading involves substantial risk, and past performance is not a guarantee of future results. Please use and adapt this tool responsibly.
Candle stick pattern strategy - No EMA 5MTFOverview
This strategy is designed to maximize trade frequency by identifying an expanded range of high-probability candlestick reversal patterns. It is an unfiltered system, meaning it will act on every valid signal it finds on the 5min timeframe, making it a very active strategy.
The core of the system is its ability to recognise not just the most common reversal signals, but also powerful "second-tier" patterns that often precede strong market moves.
An Expanded Arsenal of Signals 🏹
In addition to the flexible Pin Bars (Hammers/Shooting Stars) and classic Engulfing patterns, this strategy has been upgraded to include two new, powerful two-candle reversal patterns:
Piercing Pattern (Bullish): A strong bullish signal where a green candle opens below the prior red candle's close and then "pierces" more than halfway up into the body of that red candle, showing a decisive rejection of lower prices.
Dark Cloud Cover (Bearish): The opposite of a piercing pattern. A red candle opens above the prior green candle's high and then closes more than halfway down into the body of the green candle, signaling that sellers are taking control.
The inclusion of these patterns significantly increases the number of trading opportunities the strategy can capture.
Trade & Risk Management
Trade Logic: Once a trade is entered, it is held until it reaches its original Stop Loss or Take Profit. The strategy will ignore all new signals while a position is active to ensure each trade follows its plan.
Automated Risk: Every trade is automatically sized to risk exactly 2% of your account equity, providing consistent risk management.
Risk/Reward: The strategy targets a 1:6 R:R for long trades and a 1:4 R:R for short trades.
How To Use
Apply the strategy script to your chart.
Set the chart's timeframe to 5 min
Review the performance and individual trades in the 'Strategy Tester' tab at the bottom of your screen.
Disclaimer: This script is for educational and informational purposes. Trading involves substantial risk, and past performance is not a guarantee of future results. Use this tool at your own risk.
SulCryptoversity_4H_BuySell_CryptoIndicatorThis strategy is designed specifically for the 4-hour timeframe on trading charts. It works primarily for Bitcoin (BTC) but can also be applied to other high-market-cap cryptocurrencies such as Ethereum (ETH), Solana (SOL), Ripple (XRP), Sui (SUI), and even various other coins.
Please note that this is not financial advice—trading involves significant risk, and you should only proceed at your own discretion. We are not liable for any losses incurred from following these signals.
This strategy may be more effective in leverage trading to maximize gains, but leverage trading is highly risky and only recommended for highly skilled traders, as you could lose all your money. For regular purposes, use spot trading.
To use it effectively, focus on the "Buy" and "Sell" signals for your entry and exit points. While an "Exit Buy" signal may appear, rely solely on the main Buy and Sell indicators for decision-making.
-SulCryptoversity aka yo4Q
Robotic-ATM V6.6 Professional🤖 Robotic-ATM V6.6 Pro - Advanced Multi-Indicator Algorithmic Trading Strategy
Professional algo system combining 4 proven indicators: R-ATM KISS V5 trend detection, LG_TRSpeed momentum analysis, R-ATM Oscillator scoring, WaveTrend wave analysis. Features 3 signal modes (ALL_IMMEDIATE/ALL_SYNC/PARTIAL_SYNC), advanced risk mgmt with stop-loss/profit targets, daily P&L limits, position controls, and volatility filtering. Real-time dashboard tracks trades, win rate, profit/loss, and drawdown. $300/month subscription, 21-day FREE trial, cancel anytime. 3+3 months free when paying quarterly. Educational purposes only. Past performance doesn't guarantee future results. Trading involves substantial risk. Only trade with capital you can afford to lose. Contact: support@robotic-atm.com | robotic-atm.com | Robotic-ATM Inc.
Engulfing & Pin Bar Breakout StrategyOverview
This strategy automates a classic, powerful trading methodology based on identifying key candlestick reversal patterns and trading the subsequent price breakout. It is designed to be a complete, "set-and-go" system with built-in risk and position size management.
The core logic operates on the 1-Hour timeframe, scanning for four distinct high-probability reversal signals: two bullish and two bearish. An entry is only triggered when the market confirms the signal by breaking a key price level, aiming to capture momentum following a potential shift in market sentiment.
The Strategy Logic
The system is composed of two distinct modules: Bullish (Long) and Bearish (Short).
🐂 Bullish (Long) Setup
The script initiates a long trade based on the following strict criteria:
Signal: Identifies either a Hammer or a Bullish Engulfing pattern. These patterns often indicate that sellers are losing control and buyers are stepping in.
Confirmation: Waits for the very next candle after the signal.
Entry Trigger: A long position is automatically opened as soon as the price breaks above the high of the signal candle.
Stop Loss: Immediately set just below the low of the signal candle.
Take Profit: A fixed target is placed at a 1:5 Risk/Reward Ratio.
🐻 Bearish (Short) Setup
The script initiates a short trade based on the following strict criteria:
Signal: Identifies either a Shooting Star or a Bearish Engulfing pattern. These patterns suggest buying pressure is fading and sellers are taking over.
Confirmation: Waits for the very next candle after the signal.
Entry Trigger: A short position is automatically opened as soon as the price breaks below the low of the signal candle.
Stop Loss: Immediately set just above the high of the signal candle.
Take Profit: A fixed target is placed at a 1:4 Risk/Reward Ratio.
Key Feature: Automated Risk Management
This strategy is designed for disciplined trading. You do not need to calculate position sizes manually.
Fixed Risk: The script automatically calculates the correct position size to risk exactly 2% of your total account equity on every single trade.
Dynamic Sizing: The position size will adjust based on the distance between your entry price and your stop loss for each specific setup, ensuring a consistent risk profile.
How To Use
Apply the script to your chosen chart (e.g., BTC/USD).
Crucially, set your chart's timeframe to 1-Hour (H1). The strategy is specifically calibrated for this interval.
Navigate to the "Strategy Tester" tab below your chart to view backtest results, including net profit, win rate, and individual trades.
Disclaimer: This script is provided for educational and informational purposes only. It is not financial advice. All trading involves substantial risk, and past performance is not indicative of future results. Please use this tool responsibly and at your own risk.
Robotic-ATM V6.6.3/IO🤖 Robotic-ATM V6.6 3.3 IO - Advanced Multi-Indicator Algorithmic Trading Strategy
Professional algo system combining 4 proven indicators: R-ATM KISS V5 trend detection, LG_TRSpeed momentum analysis, R-ATM Oscillator scoring, WaveTrend wave analysis. Features 3 signal modes (ALL_IMMEDIATE/ALL_SYNC/PARTIAL_SYNC), advanced risk mgmt with stop-loss/profit targets, daily P&L limits, position controls, and volatility filtering. Real-time dashboard tracks trades, win rate, profit/loss, and drawdown. $300/month subscription, 21-day FREE trial, cancel anytime. 3+3 months free when paying quarterly. Educational purposes only. Past performance doesn't guarantee future results. Trading involves substantial risk. Only trade with capital you can afford to lose. Contact: sales@robotic-atm.com | robotic-atm.com | Robotic-ATM Inc.
Hammer & Shooting Star — StrategyHammer & Shooting Star Strategy for Intraday Trading
This strategy identifies two candlestick patterns commonly used in technical analysis:
Hammer Candles (a bullish reversal signal):
A hammer candle has a small body at the top with a long lower wick. The strategy goes long on the next bar open when a hammer is detected, with a stop loss at the low of the hammer bar and a target at the high.
Shooting Star Candles (a bearish reversal signal):
A shooting star candle has a small body at the bottom with a long upper wick. The strategy goes short on the next bar open when a shooting star is detected, with a stop loss at the high of the shooting star bar and a target at the low.
RSI-Adaptive T3 [ChartPrime] — Strategy (Long Only, 1D)This trade has been successfully converted from an individual setup to a full strategy, and the results are truly outstanding. I’m currently testing this for Tesla options trading on the 1-day chart, and it appears to be working extremely well.
A special thanks to ChartPrime for creating such a beautifully designed indicator — it’s performing impressively in these tests.
If anyone would like to try it out, feel free to download and see the results for yourself. Thank you!
BB & RSI Trailing Stop StrategySimple BB & RSI generated using AI, gets 60% on S&P 500 with the right settings
AIChannel StrategyAIChannel Strategy is a long-only breakout system that trades when price closes above a dynamic upper band derived from a Gaussian-style filter. The channel width adapts to volatility using True Range, so signals naturally thin out during quiet markets and expand during trends.
How it works (under the hood)
Builds a Gaussian-like smoothing filter by cascading EMAs (AIFilter) using a tunable number of poles.
Optionally applies lag reduction (simple look-ahead compensation) and a Fast Response mode (averages with a 1-pole version).
Computes upper/lower bands:
upper = filter + (filter of True Range) × multiplier
lower = filter − (filter of True Range) × multiplier
Entry: when close crosses above the upper band and the bar time is within the selected date range.
Exit: when close crosses back below the upper band.
Includes an equity-line plot and optional (commented) CAGR / Max-DD ratio calculation for quick performance diagnostics.
Inputs (quick guide)
Source (src) – default hlc3.
Poles (1–9) – more poles → smoother, slower filter. Default 4.
Period – base smoothing length (default 144).
Range Multiplier – scales band width (default 1.414).
Reduced Lag – simple lag compensation toggle.
Fast Response – blends in a 1-pole filter for snappier turns.
Start/End Date – trades only inside this window (default 2018-01-01 → 2069-01-01).
Default backtest settings (in code)
1D timeframe (recommended for BTCUSD).
100% of equity per trade (strategy.percent_of_equity = 100).
Commission 0.1%, 1 tick slippage.
No shorts, no pyramiding beyond one position.
Best use
Designed for trend-following on assets with powerful expansions (e.g., BTCUSD 1D).
If your market is choppy, consider increasing Period and/or Range Multiplier, or enabling Fast Response off (for fewer signals).
Notes & Limitations
Exits are only by crossunder of the upper band; there is no explicit stop-loss or take-profit in this base version.
The CAGR/Max-DD lines are computed but plots are commented out—uncomment if you want to visualize them.
As with all backtests, results depend on exchange feed, session, commissions, and slippage.
Disclaimers
This script is for research/education. It is not financial advice. Always validate on your own data and risk parameters before live use.
Keywords / Tags
Trend, Breakout, Gaussian, EMA, Volatility, True Range, BTCUSD, Long-Only, Daily, Systematic
ETH/SOL 1D Dynamic Trend Core - STRATEGY v 45Overview
The Dynamic Trend Core is a sophisticated, multi-layer trading engine designed to identify high-probability, trend-following opportunities. Its core philosophy is rooted in confluence, meaning it requires multiple conditions across trend, momentum, and volume to align before generating a signal. This approach aims to filter out market noise and provide a clearer view of the underlying trend.
The script includes a comprehensive backtesting engine for strategy optimization and a rich, intuitive visual interface for real-time analysis.
How It Works: Core Logic
The engine validates signals through several sequential layers:
Primary Trend Analysis (SAMA): The foundation is a Self-Adjusting Moving Average (SAMA) that dynamically determines the primary market direction (Bullish, Bearish, or Consolidation).
Momentum Confirmation: Signals are then qualified using a blend of the Natural Market Slope and a Cyclic RSI to ensure momentum is firmly aligned with the established trend.
Advanced Filtering Suite: A suite of optional filters provides robust confirmation and allows for deep customization:
Volume & ADX: Confirms that trades are supported by sufficient market participation and trend strength.
Market Regime: Gauges broad market health (e.g., using TOTAL market cap) to avoid trading against the entire market.
Multi-Timeframe (MTF) Analysis: Aligns signals with the dominant trend on a higher timeframe (e.g., Weekly).
BTC Cycle Analysis: Positions trades within the context of historical Bitcoin cycles using models like the Halving Cycle or Mayer Multiple.
On-Chart Visuals & Features
The script provides full transparency into its logic with a powerful on-chart interface.
IMPORTANT: For the live visual elements to function correctly, you must enable "Recalculate on every tick" in the script's settings (Settings > Properties).
Power Core Gauge: Located at the bottom-center of the chart, this gauge is the heart of the system. It displays the number of filter conditions currently met (e.g., 5/6) and "powers up" by glowing brighter as more conditions align, indicating a fully confirmed signal is ready.
Live Conditions Panel: This panel in the bottom-right corner acts as a real-time pre-flight checklist. It shows the status (pass/fail) of every individual filter, so you know exactly why a signal is, or is not, being generated.
Energized Trendline: The primary SAMA trendline changes color and intensity based on the strength and direction of the trend, offering immediate visual context.
BTC Halving Cycle Visualizer: Provides a background color guide to the different phases of the Bitcoin halving cycle for macro context.
How to Use & Configure
Select Operation Mode:
Backtest Mode: Use this to test different settings on historical data and find optimal configurations for a specific asset and timeframe.
Alerts-Only Mode: Use this for live trading to generate alert signals without cluttering the chart with backtest data. (Contact publisher for access to this version)
Configure Your Filters:
Start with the default filter settings.
If a potential setup is missed, check the Live Conditions Panel to see which specific filter blocked the signal.
Enable, disable, or adjust filters in the script's settings to match your trading style and the asset's characteristics.
Manage Your Risk:
Go to the "Risk & Exit" settings to configure your Stop Loss and Take Profit parameters to match your personal risk tolerance.
Disclaimer: This script is for educational and informational purposes only. It is not financial advice. All trading involves risk, and past performance is not indicative of future results. Please conduct your own research and backtesting before making any trading decisions.
Gemini Trend Following SystemStrategy Description: The Gemini Trend Following System
Core Philosophy
This is a long-term trend-following system designed for a position trader or a patient swing trader, not a day trader. The fundamental goal is to capture the majority of a stock's major, multi-month or even multi-year uptrend.
The core principle is: "Buy weakness in a confirmed uptrend, and sell only when the uptrend's structure is fundamentally broken."
It operates on the belief that it's more profitable to ride a durable trend than to chase short-term breakouts or worry about daily price fluctuations. It prioritizes staying in a winning trade over frequent trading.
The Three Pillars of the Strategy
The script's logic is built on three distinct pillars, processed in order:
1. The Regime Filter: "Is This Stock in a Healthy Uptrend?"
Before even considering a trade, the script acts as a strict gatekeeper. It will only "watch" a stock if it meets all the criteria of a healthy, long-term uptrend. This is the most important part of the strategy as it filters out weak or speculative stocks.
A stock passes this filter if:
The 50-day Simple Moving Average (SMA) is above the 200-day SMA. This is the classic definition of a "Golden Cross" state, indicating the medium-term trend is stronger than the long-term trend—a hallmark of a bull market for the stock.
The stock's performance over the last year is positive. The Rate of Change (ROC) must be above a minimum threshold (e.g., 15%). This ensures we are only looking at stocks that have already demonstrated significant strength.
The 200-day SMA itself is rising. This is a crucial check to ensure the very foundation of the trend is solid and not flattening out or beginning to decline.
If a stock doesn't meet these conditions, the script ignores it completely.
2. The Entry Trigger: "When to Buy the Dip"
Once a stock is confirmed to be in a healthy uptrend, the script does not buy immediately. Instead, it patiently waits for a point of lower risk and higher potential reward—a pullback.
The entry trigger is a specific, two-step sequence:
The stock price first dips and closes below its 50-day SMA. This signifies a period of temporary weakness or profit-taking.
The price then recovers and closes back above the 50-day SMA within a short period (10 bars).
This sequence is a powerful signal. It suggests that institutional buyers view the 50-day SMA as a key support level and have stepped in to defend it, overpowering the sellers. The entry occurs at this point of confirmed support, marking the likely resumption of the uptrend. On the chart, this event is highlighted with a teal background.
3. The Exit Strategy: "When is the Trend Over?"
The exit logic is designed to keep you in the trade as long as possible and only sell when the trend's character has fundamentally changed. It uses a dual-exit system:
Primary Exit (Trend Failure): The main reason to sell is a "Death Cross"—when the 50-day SMA crosses below the 200-day SMA. This is a robust, albeit lagging, signal that the long-term uptrend is over and a bearish market structure is taking hold. This exit condition is designed to ignore normal market corrections and only trigger when the underlying trend has truly broken. On the chart, this is highlighted with a maroon background.
Safety-Net Exit (Catastrophic Stop-Loss): To protect against a sudden market crash or a company-specific disaster, a "safety-net" stop-loss is placed at the time of entry. This stop is set far below the entry price, typically underneath the 200-day SMA. It is a "just-in-case" measure that should only be triggered in a severe and rapid decline, protecting your capital from an unexpected black swan event.
Who is This Strategy For?
Position Traders: Investors who are comfortable holding a stock for many months to over a year.
Patient Swing Traders: Traders who want to capture large price swings over weeks and months, not days.
Investors using a Rules-Based Approach: Anyone looking to apply a disciplined, non-emotional system to their long-term portfolio.
Ideal Market Conditions
This strategy excels in markets with clear, durable trends. It performs best on strong, leading stocks during a sustained bull market. It will underperform significantly or generate losses in choppy, sideways, or range-bound markets, where the moving averages will frequently cross back and forth, leading to "whipsaw" trades.