Padrões gráficos
Mustang Algo - Momentum Trend Zone Backtest🐎 MUSTANG ALGO - Momentum Trend Zone Strategy
A complete trading system combining MACD momentum analysis with visual trend zones, full backtesting capabilities, and advanced risk management tools.
══════════════════════════════════════════════════════════════════════════
🔹 OVERVIEW
Mustang Algo transforms traditional MACD analysis into a powerful visual trading system. It instantly identifies market bias through colored background zones and provides clear entry/exit signals with customizable stop loss and take profit management.
══════════════════════════════════════════════════════════════════════════
🔹 KEY FEATURES
✅ Visual Trend Zones (Green = Bullish | Red = Bearish)
✅ Clear Buy/Sell Triangles on Chart
✅ Full Backtesting Engine
✅ Multiple Stop Loss Types
✅ Multiple Take Profit Types
✅ Trailing Stop Option
✅ Time Filter for Backtesting
✅ Real-time Info Panel
✅ Customizable Alerts
══════════════════════════════════════════════════════════════════════════
🔹 HOW IT WORKS
The strategy uses a smoothed MACD system to detect trend changes:
- MACD Line (White): Fast EMA minus Slow EMA - shows raw momentum
- Signal Line (Yellow): EMA of MACD - shows smoothed trend direction
- Trend Zone: Changes when the smoothed signal line crosses zero
- Entry Signals: Generated at zone transitions
When the trend line crosses above zero → GREEN zone → BUY signal 🔺
When the trend line crosses below zero → RED zone → SELL signal 🔻
══════════════════════════════════════════════════════════════════════════
🔹 STOP LOSS OPTIONS
🛑 Percentage: Fixed percentage from entry price
🛑 ATR-Based: Dynamic SL based on market volatility
🛑 Fixed Points: Set number of points/pips
🛑 Swing Low/High: Uses recent swing levels as stops
══════════════════════════════════════════════════════════════════════════
🔹 TAKE PROFIT OPTIONS
🎯 Percentage: Fixed percentage target
🎯 ATR-Based: Dynamic TP based on volatility
🎯 Fixed Points: Set number of points/pips
🎯 Risk Reward: Automatic TP based on R:R ratio (e.g., 2:1, 3:1)
══════════════════════════════════════════════════════════════════════════
🔹 TRAILING STOP
📈 Percentage-Based: Trail by a fixed percentage
📈 ATR-Based: Trail using ATR multiplier for dynamic adjustment
══════════════════════════════════════════════════════════════════════════
🔹 SETTINGS
MACD Parameters:
- Fast Length (default: 12)
- Slow Length (default: 26)
- Signal Length (default: 9)
- Trend Smoothing (default: 5)
Risk Management:
- Enable/Disable Stop Loss
- Enable/Disable Take Profit
- Enable/Disable Trailing Stop
- Customize all SL/TP parameters
Visual Options:
- Show/Hide Buy/Sell Triangles
- Show/Hide SL/TP Lines
- Show/Hide Labels
Time Filter:
- Set Start Date for backtest
- Set End Date for backtest
══════════════════════════════════════════════════════════════════════════
🔹 SIGNALS EXPLAINED
🟢 GREEN TRIANGLE (Below Bar):
Bullish zone detected - Consider LONG entry
🔴 RED TRIANGLE (Above Bar):
Bearish zone detected - Consider SHORT entry
🟢 GREEN BACKGROUND:
Currently in bullish trend zone
🔴 RED BACKGROUND:
Currently in bearish trend zone
══════════════════════════════════════════════════════════════════════════
🔹 INFO PANEL
The real-time info panel (top right) displays:
- Current Trend Zone status
- MACD value
- Signal Line value
- Active SL Type
- Active TP Type
══════════════════════════════════════════════════════════════════════════
🔹 ALERTS
Set up alerts for:
🔔 Buy Signals: "🐎 Mustang Algo: BUY Signal on {ticker} at {price}"
🔔 Sell Signals: "🐎 Mustang Algo: SELL Signal on {ticker} at {price}"
══════════════════════════════════════════════════════════════════════════
🔹 BEST PRACTICES
1. Use higher timeframes (1H, 4H, Daily) for more reliable signals
2. Combine with price action and support/resistance levels
3. Adjust ATR multipliers based on asset volatility
4. Use Risk Reward ratio for consistent risk management
5. Backtest on your preferred asset before live trading
══════════════════════════════════════════════════════════════════════════
🔹 RECOMMENDED TIMEFRAMES
⏱️ Scalping: 5M, 15M (more signals, more noise)
⏱️ Day Trading: 1H, 4H (balanced signals)
⏱️ Swing Trading: Daily, Weekly (fewer but stronger signals)
══════════════════════════════════════════════════════════════════════════
🔹 MARKETS
Works on all markets:
📈 Forex
📈 Crypto
📈 Stocks
📈 Indices
📈 Commodities
📈 Futures
══════════════════════════════════════════════════════════════════════════
🐎 RIDE THE TREND WITH MUSTANG ALGO!
══════════════════════════════════════════════════════════════════════════
⚠️ DISCLAIMER
This indicator/strategy is for educational and informational purposes only. It is not financial advice. Trading involves substantial risk of loss and is not suitable for all investors. Past performance is not indicative of future results. Always use proper risk management, do your own research, and consider consulting a financial advisor before making any trading decisions. Use at your own risk.
══════════════════════════════════════════════════════════════════════════
📝 VERSION HISTORY
v1.0 - Initial Release
- MACD-based trend detection
- Visual trend zones
- Multiple SL/TP options
- Full backtesting support
- Trailing stop functionality
- Time filter
- Info panel
- Alert system
══════════════════════════════════════════════════════════════════════════
💬 FEEDBACK
If you find this strategy useful, please leave a comment or suggestion!
Your feedback helps improve future updates.
🐎 Happy Trading!
ICT/SMC Holy GrailThe Holy Grail, with its backtesting feature to check win rates, is all you need to do when placing orders!
CSP Institutional Filter PRO This indicator evaluates whether a ticker qualifies for a high-probability Cash-Secured Put (CSP) based on an institutional options-selling framework. It checks RSI, momentum, support levels, ATR-based risk, IVR, DTE, and earnings timing to determine if the setup meets either the Standard CSP Module (30–45 DTE) or the Pre-Earnings CSP Module (7–21 days before earnings). The script visually marks valid setups, highlights risk zones, and provides an on-chart diagnostic summary.
4H Bias: Previous Candle FocusStructural Bias Confirmation Checklist
Has price broken a significant swing high/low on the 4HR?
Has price held beyond this level for at least one complete 4HR
candle?
Does the candle anatomy (OHLC vs OLHC pattern) confirm
directional intent?
Are subsequent 4HR candles showing continued momentum in
the bias direction?
Has a liquidity sweep occurred into the previous structure before
the continuation?
Breakout Pullback Continuation//@version=5
indicator("Breakout Pullback Continuation", overlay=true)
// === Parameters ===
lookback = 20 // Look for breakouts above this many bars
volumeFactor = 1.3 // How much volume needs to exceed average
pullbackDepth = 3 // Max bars to wait for pullback + green
// === Track State ===
var float breakoutLevel = na
var int breakoutBar = na
volumeSMA = ta.sma(volume, 20)
// === Detect Breakout ===
recentHigh = ta.highest(high, lookback)
breakout = close > recentHigh
if breakout
breakoutLevel := close
breakoutBar := bar_index
// === Check for Pullback After Breakout
pullbackOccurred = na(breakoutLevel) ? false : close < breakoutLevel and bar_index > breakoutBar
// === Check for Confirmation Candle
greenCandle = close > open
decentRange = (high - low) > (close * 0.003)
volumeSpike = volume > volumeSMA * volumeFactor
confirmation = pullbackOccurred and greenCandle and decentRange and volumeSpike and (bar_index - breakoutBar <= pullbackDepth)
// === Signal Plot ===
plotshape(confirmation, title="Pullback Continuation", location=location.belowbar, color=color.lime, style=shape.triangleup)
alertcondition(confirmation, title="Breakout Pullback Alert", message="🚀 {{ticker}} breakout-pullback-confirmation at {{close}}")
Smart Bottom Catcher @ Le DReversal strategy using recent lowest lows and a fast RSI. Long entries trigger on extreme drops, exits occur when RSI crosses a set threshold. Includes optional SMA55 filter and allows up to 3 pyramids.
Grok/Claude Turtle Trend Pro Strategy Turtle Trend Pro Strategy: A Modern Implementation of the Legendary Turtle Trading System
Historical Background: The Original Turtle Experiment
In 1983, legendary commodities trader Richard Dennis made a bet with his partner William Eckhardt: could successful trading be taught, or was it an innate skill? To settle the debate, Dennis recruited and trained a group of novices—whom he called "Turtles" (inspired by turtle farms he'd visited in Singapore)—teaching them a complete mechanical trading system. The results were remarkable: over the next four years, the Turtles reportedly earned over $175 million, proving that systematic, rule-based trading could be taught and replicated.
The strategy you've shared is a faithful modern adaptation of those original Turtle rules, enhanced with contemporary technical filters.
Core Turtle Principles Preserved in This Strategy
1. Donchian Channel Breakouts (The Heart of Turtle Trading)
The original Turtles used Donchian Channels—a simple concept where you track the highest high and lowest low over a specific lookback period. This strategy implements both original Turtle systems:
System 1 (Default): 20-period entry breakout, 15-period exit
System 2 (Optional): 55-period entry breakout, 20-period exit
The logic is elegantly simple:
Go long when price breaks above the highest high of the last 20 (or 55) periods
Go short when price breaks below the lowest low of the last 20 (or 55) periods
This captures the Turtle philosophy of trend-following through momentum breakouts—the idea that markets trending strongly in one direction tend to continue.
2. ATR-Based Position Sizing and Stops
The Turtles were pioneers in using Average True Range (ATR) for risk management. This strategy preserves that approach:
Stop Loss: Set at 2× ATR from entry (the original Turtle rule)
ATR Period : 20 days (matching the original)
The ATR stop adapts to market volatility—wider stops in volatile markets, tighter stops in calm ones—preventing premature exits while still protecting capital.
3. Opposite Channel Exit
Rather than using arbitrary profit targets, the Turtles exited positions when price broke the opposite channel:
Exit longs when price breaks below the 15-period (or 20-period) low
Exit shorts when price breaks above the 15-period (or 20-period) high
This allows winning trades to run while providing a systematic exit that doesn't rely on prediction.
Modern Enhancements Beyond the Original System
While the core mechanics remain true to 1983, this strategy adds sophisticated filters the original Turtles didn't have access to:
Trend Filter (200 EMA)
Only takes long trades when price is above the 200-period moving average (and the MA is sloping up), and vice versa for shorts. This aligns trades with the major trend, reducing whipsaws in choppy markets. Set of off by default and fully adjustable in settings.
ADX Filter (Trend Strength)
The Average Directional Index ensures trades are only taken when the market is actually trending (ADX > 20 threshold). The original Turtles suffered significant drawdowns in ranging markets—this filter addresses that weakness.
Optional RSI Filter
Adds overbought/oversold confirmation to entries, though this is disabled by default to stay closer to the original system.
Volume Confirmation
Optional requirement for volume surges on breakouts, adding conviction to signals.
The Strategy's Risk Management Framework
Parameter Setting Turtle Origin Position Size 10% of equity. Turtles used volatility-adjusted sizing.
Stop Loss2× ATR.
Original Turtle rule Commission 0.075%. Modern crypto exchange rate.
Pyramiding Disabled.
Turtles did pyramid, but simplified here.
Visual Elements and Regime Detection
The strategy includes a "Neural Fusion Pro" styled display that would make the original Turtles jealous:
Color-coded Donchian Channels: Green (bullish), Red (bearish), Yellow (neutral)
Trend Strength Meter: Combines ADX, price vs. MA distance, channel position, and DI spread
Regime Classification : Automatically identifies Bull, Bear, or Neutral market conditions
Information Panel: Real-time display of all key metrics
Why Turtle Trading Still Works
The genius of the Turtle system lies in its mechanical discipline. It removes emotion from trading by providing explicit rules for:
What to trade (anything with sufficient liquidity and volatility)
When to enter (channel breakouts)
How much to trade (volatility-adjusted position sizing)
When to exit (opposite breakout or ATR stop)
This strategy faithfully preserves that mechanical approach while adding modern filters to improve the win rate in today's markets.
MA Crossover Scalper [4H]//@version=5
indicator("MA Crossover Scalper ", overlay=false)
// Market Cap Filter (Volume as proxy)
volumeValid = volume >= 500000 and volume <= 4000000
// MA Crossover System
ma9 = ta.sma(close, 9)
ma21 = ta.sma(close, 21)
bullishCross = ta.crossover(ma9, ma21) and close > ma21
bearishCross = ta.crossunder(ma9, ma21) and close < ma21
// Volume Confirmation
volumeSpike = volume > ta.sma(volume, 20) * 1.3
// Final Signals
bullSignal = bullishCross and volumeSpike and volumeValid
bearSignal = bearishCross and volumeSpike and volumeValid
// Output for Screener
plot(bullSignal ? 1 : 0, "Bull MA Cross", color=color.green)
plot(bearSignal ? 1 : 0, "Bear MA Cross", color=color.red)
Dynamic Support and Resistance with Trend LinesMain Purpose
The indicator identifies and visualizes dynamic support and resistance levels using multiple strategies, plus it includes trend analysis and trading signals.
Key Components:
1. Two Support/Resistance Strategies:
Strategy A: Matrix Climax
Identifies the top 10 (configurable) most significant support and resistance levels
Uses a "matrix" calculation method to find price levels where the market has historically reacted
Shows these as horizontal lines or zones on the chart
Strategy B: Volume Extremes
Finds support/resistance levels based on volume analysis
Looks for areas where extreme volume occurred, which often become key price levels
2. Two Trend Line Systems:
Trend Line 1: Pivot Span
Draws trend lines connecting pivot high and pivot low points
Uses configurable pivot parameters (left: 5, right: 5 bars)
Creates a channel showing the trend direction
Styled in pink/purple with dashed lines
Trend Line 2: 5-Point Channel
Creates a channel based on 5 pivot points
Provides another perspective on trend direction
Solid lines in pink/purple
3. Trading Signals:
Buy Signal: Triggers when Fast EMA (9-period) crosses above Slow EMA (21-period)
Sell Signal: Triggers when Fast EMA crosses below Slow EMA
Displays visual shapes (labels) on the chart
Includes alert conditions you can set up in TradingView
4. Visual Features:
Dashboard: Shows key information in a table (top-right by default)
Visual Matrix Map: Displays a heat map of support/resistance zones
Color themes: Dark Mode or Light Mode
Timezone adjustment: For accurate time display
5. Customization Options:
Universal lookback length (100 bars default)
Projection bars (26 bars forward)
Adjustable transparency for different elements
Multiple calculation methods available
Fully customizable colors and line styles
What Traders Use This For:
Entry/Exit Points: The EMA crossovers provide clear buy/sell signals
Risk Management: Support/resistance levels help set stop-losses and take-profit targets
Trend Confirmation: Multiple trend lines confirm trend direction
Key Price Levels: Identifies where price is likely to react (bounce or break through)
The indicator is quite feature-rich and combines technical analysis elements (pivots, EMAs, volume, support/resistance) into one comprehensive tool for trading decisions.
Avengers Ultimate V5 (Watch Profit)"Designed as a trend-following system, this strategy integrates the core principles of legends like Mark Minervini, Stan Weinstein, William O'Neil, and Jesse Livermore. It has been fine-tuned for the Korean market and provides distinct entry and exit protocols for different market scenarios."
Gould 10Y + 4Y patternDescription:
Overview This indicator is a comprehensive tool for macro-market analysis, designed to visualize historical market cycles on your chart. It combines Edson Gould’s famous Decennial Pattern with a Customizable 4-Year Cycle (e.g., 2002 base) to help traders identify long-term trends, potential market bottoms, and strong bullish years.
This tool is ideal for long-term investors and analysts looking for cyclical confluence on monthly or yearly timeframes (e.g., SPX, NDX).
Key Concepts
Edson Gould’s Decennial Pattern (10-Year Cycle)
Based on the theory that the stock market follows a psychological cycle determined by the last digit of the year.
5 (Strongest Bull): Historically the strongest performance years.
7 (Panic/Crash): Years often associated with market panic or crashes.
2 (Bottom/Buy): Years that often mark major lows.
Custom 4-Year Cycle (Target Year Strategy)
Identify recurring 4-year opportunities based on a user-defined base year.
Default Setting (Base 2002): Highlights years like 2002, 2006, 2010, 2014, 2018, 2022... which have historically been significant market bottoms or excellent buying opportunities.
When a "Target Year" arrives, the indicator highlights the background and displays a distinct Green "Target Year" Label.
Features
Real-time Dashboard: A table in the top-right corner displays the current year's status for both the 10-Year and 4-Year cycles, including a countdown to the next target year.
Dynamic Labels: Automatically marks every year on the chart with its Decennial status (e.g., "Strong Bull (5)", "Panic (7)").
Visual Highlighting:
Target Years: Distinct green background and labels for easy identification of the 4-year cycle.
Significant Decennial Years: Special small markers for years ending in 5 and 7.
Fully Customizable: You can change the base year for the 4-year cycle, toggle the dashboard, and adjust colors via the settings menu.
How to Use
Apply this indicator to high-timeframe charts (Weekly or Monthly) of major indices like S&P 500 or Nasdaq.
Look for confluence between the 10-Year Pattern (e.g., Year 6 - Bullish) and the 4-Year Cycle (Target Year) to confirm long-term bias.
Disclaimer This tool is for educational and research purposes only based on historical cycle theories. Past performance is not indicative of future results. Always manage your risk.
RSI مبسط//@version=5
indicator("RSI مبسط", overlay=false)
// حساب RSI
rsiValue = ta.rsi(close, 14)
// رسم خط RSI
plot(rsiValue)
// رسم المستويات
plot(95, "Level 95")
plot(78.6, "Level 78.6")
plot(61.8, "Level 61.8")
plot(38.2, "Level 38.2")
plot(21.4, "Level 21.4")
plot(5, "Level 5")
Highlight Running 30m CandleThis script highlight 30 minute running candle.
mostly used for crypto trading
HD Trades📊 ICT Confluence Toolkit (FVG, OB, SMT)
This All-in-One indicator is designed for Smart Money Concepts (SMC) traders, providing visual confirmation and signaling for three critical Inner Circle Trader (ICT) tools directly on your chart: Fair Value Gaps (FVG), Order Blocks (OB), and Smart Money Technique (SMT) Divergence.
It eliminates the need to load multiple indicators, streamlining your analysis for high-probability setups.
🔑 Key Features
1. Fair Value Gaps (FVG)
Automatic Detection: Instantly highlights bullish (buy-side) and bearish (sell-side) imbalances using the standard three-candle pattern.
Real-Time Mitigation: Gaps are drawn until price trades into the FVG zone, at which point the indicator automatically "mitigates" and removes the box, ensuring your chart stays clean.
2. Order Blocks (OB)
Impulse-Based Logic: Identifies valid Order Blocks (the last opposing candle) confirmed by a strong, structure-breaking impulse move, quantified using an Average True Range (ATR) multiplier for dynamic sensitivity.
Mitigation Tracking: Bullish OBs are tracked until broken below the low, and Bearish OBs until broken above the high, distinguishing between active supply/demand zones.
3. SMT Divergence (Smart Money Technique)
Multi-Asset Comparison: Utilizes the Pine Script request.security() function to compare the swing structure of the current chart against a correlated asset (e.g., EURUSD vs. GBPUSD, or ES vs. NQ).
Signal Labels: Plots clear 🐂 SMT (Bullish) or 🐻 SMT (Bearish) labels directly on the chart when a divergence in market extremes is detected, signaling a potential reversal or continuation based on internal market weakness.
⚙️ Customization
All three components are toggleable and feature customizable colors and lookback periods, allowing you to fine-tune the indicator to your specific trading strategy and preferred timeframes.
Crucial Setup: For SMT Divergence to function, you must enter a correlated symbol (e.g., NQ1!, ES1!, or a related Forex pair) in the indicator settings.
PyraTime Harmonic 369Concept and Methodology PyraTime Harmonic 369 is a quantitative time-projection tool designed to apply Modular Arithmetic to market analysis. Unlike linear time indicators, this tool projects non-linear integer sequences derived from Digital Root Summation (Base-9 Reduction).
The core logic utilizes the mathematical progression of the 3-6-9 constants. By anchoring to a user-defined "Origin Pivot," the script projects three distinct harmonic triads to identify potential Temporal Confluence—moments where mathematical time cycles align with price action.
Technical Features This script focuses on the Standard Scalar (1x) projection of the Digital Root sequence:
The Root-3 Triad (Red): Projects intervals of 174, 285, 396. (Mathematical Sum: 1+7+4=12→3)
The Root-6 Triad (Green): Projects intervals of 417, 528, 639. (Mathematical Sum: 4+1+7=12→3, inverted)
The Root-9 Triad (Blue): Projects intervals of 741, 852, 963. (Mathematical Sum: 7+4+1=12→3... completion to 9)
How to Use
Set Anchor: Input the time of a significant High or Low in the settings.
Select Resolution: This tool is optimized for 1-minute (Micro-Harmonics) and 15-minute (Intraday Harmonics) charts.
Analyze Clusters: The vertical lines represent calculated harmonic intervals. Traders look for "Clusters" where a Root-3 and Root-9 cycle land on adjacent bars, indicating a high-probability pivot.
System Architecture & Version Comparison This script represents the foundational layer of the PyraTime ecosystem.
This Script (PyraTime Harmonic 369):
Scalar: Standard 1x Multiplier only.
Focus: Intraday & Micro-structure (1m, 15m).
Engine: Core Digital Root Integers.
PyraTime Harmonic Matrix (Advanced Edition):
Scalar Engine: Unlocks Quad-Fractal (4x), Tri-Fractal (3x), and Bi-Fractal (2x) multipliers for institutional cycle analysis.
Apex Logic: Auto-detection of the "963" Completion Sequence (Gold Highlight).
Event Horizon: Includes a live Predictive Dashboard that calculates the time-delta to the next harmonic event across all scalar groups.
Disclaimer This tool is for the educational analysis of Number Theory in financial markets. It projects time intervals and does not predict price direction. Past performance does not guarantee future results.
Railway Track Fixed Zone (Daily)Railway Track Fixed Zone (Daily)-- This indicator creates a railway track line per day, Below sell above buy
Crypto Signals & Overlays –29-11-2025Nebula Crypto Signals & Overlays
Nebula is a multi-timeframe trend and momentum indicator designed for high-cap crypto pairs (BTC, ETH, SOL, DOGE, etc.).
• Uses 21/50/200 EMAs + higher-timeframe EMA for trend filtering
• RSI and Bollinger Bands for momentum and squeeze detection
• Generates BUY/SELL labels on trend-side pullbacks
• ATR line as a dynamic stop/target guide, plus pivot-based support/resistance zones
• Background colors: green = bullish regime, red = bearish regime, yellow = low-volatility squeeze
Not financial advice. Always backtest and use proper risk management before trading live.
GOLD EMA Crossover Strategy This EMA Crossover Strategy is designed for intraday trading on the 5-minute chart.
It uses three EMAs (fast, mid, slow) to identify momentum shifts and trigger long or short entries. Risk management is dollar-based, with default settings of $100 risk per trade and $300 profit target. Entries are taken when the fast EMA crosses above/below the mid or slow EMA, with stops and targets calculated dynamically. The strategy runs across all hours and uses fixed position sizing (default 3 contracts). It is intended as a framework for traders to adapt and optimize to their own instruments and risk preferences.






















