Trend Following $ZEC - Multi-Timeframe Structure Filter + Revers โ€” Strategy by ssun_6

By ssun_6

Performance Metrics

Description

Dec 11# Trend Following ZEC - Strategy Guide## ๐Ÿ“Š Strategy OverviewTrend Following ZEC is an enhanced Turtle Trading system designed for cryptocurrency spot trading, combining Donchian Channel breakouts, multi-timeframe structure filtering, and ATR-based dynamic risk management for both long and short positions.---## ๐ŸŽฏ Core Features1. Multi-Timeframe Structure Filtering - Uses Swing High/Low to identify market structure - Customizable structure timeframe (default: 1 minute) - Only enters trades in the direction of the trend, avoiding counter-trend positions2. Reverse Signal Exit - No fixed stop-loss or fixed-period exits - Exits only when a reverse entry signal triggers - Maximizes trend profits, reduces premature exits3. ATR Dynamic Pyramiding - Adds positions when price moves 0.5 ATR in favorable direction - Supports up to 2 units maximum (adjustable) - Pyramid scaling to enhance profitability4. Complete Risk Management - Fixed position size (5000 USD per unit) - Commission fee 0.06% (Binance spot rate) - Initial capital 10,000 USD---## ๐Ÿ“ˆ Trading LogicEntry Conditionsโœ… Long Entry: - Close price breaks above 20-period high- Structure trend is bullish (price breaks above Swing High)โœ… Short Entry: - Close price breaks below 20-period low- Structure trend is bearish (price breaks below Swing Low)Add Position Conditions- Long: Price rises โ‰ฅ 0.5 ATR- Short: Price falls โ‰ฅ 0.5 ATR- Maximum 2 units including initial entryExit Conditions- Long Exit: When short entry signal triggers (price breaks 20-period low + structure turns bearish)- Short Exit: When long entry signal triggers (price breaks 20-period high + structure turns bullish)---## โš™๏ธ Parameter SettingsChannel Settings- Entry Channel Period: 20 (Donchian Channel breakout period)- Exit Channel Period: 10 (reserved parameter, actually uses reverse signal exit)ATR Settings- ATR Period: 20- Stop Loss ATR Multiplier: 2.0 (reserved parameter)- Add Position ATR Multiplier: 0.5Structure Filter- Swing Length: 160 (Swing High/Low calculation period)- Structure Timeframe: 1 minute (can change to 5/15/60, etc.)Position Management- Maximum Units: 2 (including initial entry)- Capital Per Unit: 5000 USD---## ๐ŸŽจ Visualization FeaturesBackground Colors- Light Green: Bullish structure- Light Red: Bearish structure- Dark Green: Long entry- Dark Red: Short entryOptional Display (Default: OFF)- Entry/exit channel lines- Structure high/low lines- ATR stop-loss line- Next add position indicator- Entry/exit labels---## ๐Ÿ“ฑ Alert Message FormatStrategy sends notifications on entry/exit with the following format:- Entry: `1m Long EP:428.26`- Add Position: `15m Add Long 2/2 EP:429.50`- Exit: `1m Close Long Reverse Signal`Where:- `1m`/`15m` = Current chart timeframe- `EP` = Entry Price---## ๐Ÿ’ฐ Backtest SettingsCapital Allocation- Initial Capital: 10,000 USD- Per Entry: 5,000 USD (split into 2 entries)- Leverage: 0x (spot trading)Trading Costs- Commission: 0.06% (Binance spot VIP0)- Slippage: 0---## ๐ŸŽฏ Use Casesโœ… Best Scenarios- Trending markets- Moderate volatility assets- 1-minute to 4-hour timeframesโš ๏ธ Not Suitable For- Highly volatile choppy markets- Low liquidity small-cap coins- Extreme market conditions (black swan events)---## ๐Ÿ“Š Usage RecommendationsTimeframe Suggestions| Timeframe | Trading Style | Suggested Parameter Adjustment ||-----------|--------------|-------------------------------|| 1-5 min | Scalping | Swing Length 100-160 || 15-30 min | Short-term | Swing Length 50-100 || 1-4 hour | Swing Trading | Swing Length 20-50 |Optimization Tips1. Adjust swing length based on backtest results2. Different coins may require different parameters3. Recommend backtesting on 1-minute chart first before live trading4. Enable labels to observe entry/exit points---## โš ๏ธ Risk Disclaimer1. Past Performance Does Not Guarantee Future Results - Backtest data is for reference only - Live trading may be affected by slippage, delays, etc.2. Market Condition Changes - Strategy performs better in trending markets - May experience frequent stops in ranging markets3. Capital Management - Do not invest more than you can afford to lose - Recommend setting total capital stop-loss threshold4. Commission Impact - Frequent trading accumulates commission fees - Recommend using exchange discounts (BNB fee reduction, etc.)---## ๐Ÿ”ง TroubleshootingQ: No entry signals?A: Check if structure filter is too strict, adjust swing length or timeframeQ: Too many labels displayed?A: Turn off "Show Labels" option in settingsQ: Poor backtest performance?A: 1. Check if the coin is suitable for trend-following strategies2. Adjust parameters (swing length, channel period)3. Try different timeframesQ: How to set alerts?A: 1. Click "Alert" in top-right corner of chart2. Condition: Select "Strategy - Trend Following ZEC"3. Choose "Order filled"4. Set notification method (Webhook/Email/App)---## ๐Ÿ“ž Contact InformationStrategy Name: Trend Following ZECVersion: v1.0Pine Script Version: v6Last Updated: December 2025---## ๐Ÿ“„ Copyright NoticeThis strategy is for educational and research purposes only.All risks of using this strategy for live trading are borne by the user.Commercial use without authorization is prohibited.---## ๐ŸŽ“ Learning ResourcesTo understand the strategy principles in depth, recommended reading:- "The Complete TurtleTrader" - Curtis Faith- "Trend Following" - Michael Covel- TradingView Pine Script Official Documentation---Happy Trading! Remember to manage your risk ๐Ÿ“ˆDec 11Release Notes# Trend Following ZEC - Strategy Guide## ๐Ÿ“Š Strategy OverviewTrend Following ZEC is an enhanced Turtle Trading system designed for cryptocurrency spot trading, combining Donchian Channel breakouts, multi-timeframe structure filtering, and ATR-based dynamic risk management for both long and short positions.---## ๐ŸŽฏ Core Features1. Multi-Timeframe Structure Filtering - Uses Swing High/Low to identify market structure - Customizable structure timeframe (default: 1 minute) - Only enters trades in the direction of the trend, avoiding counter-trend positions2. Reverse Signal Exit - No fixed stop-loss or fixed-period exits - Exits only when a reverse entry signal triggers - Maximizes trend profits, reduces premature exits3. ATR Dynamic Pyramiding - Adds positions when price moves 0.5 ATR in favorable direction - Supports up to 2 units maximum (adjustable) - Pyramid scaling to enhance profitability4. Complete Risk Management - Fixed position size (5000 USD per unit) - Commission fee 0.06% (Binance spot rate) - Initial capital 10,000 USD---## ๐Ÿ“ˆ Trading LogicEntry Conditionsโœ… Long Entry: - Close price breaks above 20-period high- Structure trend is bullish (price breaks above Swing High)โœ… Short Entry: - Close price breaks below 20-period low- Structure trend is bearish (price breaks below Swing Low)Add Position Conditions- Long: Price rises โ‰ฅ 0.5 ATR- Short: Price falls โ‰ฅ 0.5 ATR- Maximum 2 units including initial entryExit Conditions- Long Exit: When short entry signal triggers (price breaks 20-period low + structure turns bearish)- Short Exit: When long entry signal triggers (price breaks 20-period high + structure turns bullish)---## โš™๏ธ Parameter SettingsChannel Settings- Entry Channel Period: 20 (Donchian Channel breakout period)- Exit Channel Period: 10 (reserved parameter, actually uses reverse signal exit)ATR Settings- ATR Period: 20- Stop Loss ATR Multiplier: 2.0 (reserved parameter)- Add Position ATR Multiplier: 0.5Structure Filter- Swing Length: 160 (Swing High/Low calculation period)- Structure Timeframe: 1 minute (can change to 5/15/60, etc.)Position Management- Maximum Units: 2 (including initial entry)- Capital Per Unit: 5000 USD---## ๐ŸŽจ Visualization FeaturesBackground Colors- Light Green: Bullish structure- Light Red: Bearish structure- Dark Green: Long entry- Dark Red: Short entryOptional Display (Default: OFF)- Entry/exit channel lines- Structure high/low lines- ATR stop-loss line- Next add position indicator- Entry/exit labels---## ๐Ÿ“ฑ Alert Message FormatStrategy sends notifications on entry/exit with the following format:- Entry: `1m Long EP:428.26`- Add Position: `15m Add Long 2/2 EP:429.50`- Exit: `1m Close Long Reverse Signal`Where:- `1m`/`15m` = Current chart timeframe- `EP` = Entry Price---## ๐Ÿ’ฐ Backtest SettingsCapital Allocation- Initial Capital: 10,000 USD- Per Entry: 5,000 USD (split into 2 entries)- Leverage: 0x (spot trading)Trading Costs- Commission: 0.06% (Binance spot VIP0)- Slippage: 0---## ๐ŸŽฏ Use Casesโœ… Best Scenarios- Trending markets- Moderate volatility assets- 1-minute to 4-hour timeframesโš ๏ธ Not Suitable For- Highly volatile choppy markets- Low liquidity small-cap coins- Extreme market conditions (black swan events)---## ๐Ÿ“Š Usage RecommendationsTimeframe Suggestions| Timeframe | Trading Style | Suggested Parameter Adjustment ||-----------|--------------|-------------------------------|| 1-5 min | Scalping | Swing Length 100-160 || 15-30 min | Short-term | Swing Length 50-100 || 1-4 hour | Swing Trading | Swing Length 20-50 |Optimization Tips1. Adjust swing length based on backtest results2. Different coins may require different parameters3. Recommend backtesting on 1-minute chart first before live trading4. Enable labels to observe entry/exit points---## โš ๏ธ Risk Disclaimer1. Past Performance Does Not Guarantee Future Results - Backtest data is for reference only - Live trading may be affected by slippage, delays, etc.2. Market Condition Changes - Strategy performs better in trending markets - May experience frequent stops in ranging markets3. Capital Management - Do not invest more than you can afford to lose - Recommend setting total capital stop-loss threshold4. Commission Impact - Frequent trading accumulates commission fees - Recommend using exchange discounts (BNB fee reduction, etc.)---## ๐Ÿ”ง TroubleshootingQ: No entry signals?A: Check if structure filter is too strict, adjust swing length or timeframeQ: Too many labels displayed?A: Turn off "Show Labels" option in settingsQ: Poor backtest performance?A: 1. Check if the coin is suitable for trend-following strategies2. Adjust parameters (swing length, channel period)3. Try different timeframesQ: How to set alerts?A: 1. Click "Alert" in top-right corner of chart2. Condition: Select "Strategy - Trend Following ZEC"3. Choose "Order filled"4. Set notification method (Webhook/Email/App)---## ๐Ÿ“ž Contact InformationStrategy Name: Trend Following ZECVersion: v1.0Pine Script Version: v6Last Updated: December 2025---## ๐Ÿ“„ Copyright NoticeThis strategy is for educational and research purposes only.All risks of using this strategy for live trading are borne by the user.Commercial use without authorization is prohibited.---## ๐ŸŽ“ Learning ResourcesTo understand the strategy principles in depth, recommended reading:- "The Complete TurtleTrader" - Curtis Faith- "Trend Following" - Michael Covel- TradingView Pine Script Official Documentation---Happy Trading! Remember to manage your risk ๐Ÿ“ˆDec 11Release Notes# Trend Following ZEC - Strategy Guide## ๐Ÿ“Š Strategy OverviewTrend Following ZEC is an enhanced Turtle Trading system designed for cryptocurrency spot trading, combining Donchian Channel breakouts, multi-timeframe structure filtering, and ATR-based dynamic risk management for both long and short positions.---## ๐ŸŽฏ Core Features### 1. Multi-Timeframe Structure Filtering- Uses Swing High/Low to identify market structure- Customizable structure timeframe (default: 1 minute)- Only enters trades in the direction of the trend, avoiding counter-trend positions### 2. Reverse Signal Exit- No fixed stop-loss or fixed-period exits- Exits only when a reverse entry signal triggers- Maximizes trend profits, reduces premature exits### 3. ATR Dynamic Pyramiding- Adds positions when price moves 0.5 ATR in favorable direction- Supports up to 2 units maximum (adjustable)- Pyramid scaling to enhance profitability### 4. Complete Risk Management- Fixed position size (5000 USD per unit)- Commission fee 0.06% (Binance spot rate)- Initial capital 10,000 USD---## ๐Ÿ“ˆ Trading Logic### Entry Conditionsโœ… Long Entry: - Close price breaks above 20-period high- Structure trend is bullish (price breaks above Swing High)โœ… Short Entry: - Close price breaks below 20-period low- Structure trend is bearish (price breaks below Swing Low)### Add Position Conditions- Long: Price rises โ‰ฅ 0.5 ATR- Short: Price falls โ‰ฅ 0.5 ATR- Maximum 2 units including initial entry### Exit Conditions- Long Exit: When short entry signal triggers (price breaks 20-period low + structure turns bearish)- Short Exit: When long entry signal triggers (price breaks 20-period high + structure turns bullish)---## โš™๏ธ Parameter Settings### Channel Settings- Entry Channel Period: 20 (Donchian Channel breakout period)- Exit Channel Period: 10 (reserved parameter, actually uses reverse signal exit)### ATR Settings- ATR Period: 20- Stop Loss ATR Multiplier: 2.0 (reserved parameter)- Add Position ATR Multiplier: 0.5### Structure Filter- Swing Length: 160 (Swing High/Low calculation period)- Structure Timeframe: 1 minute (can change to 5/15/60, etc.)### Position Management- Maximum Units: 2 (including initial entry)- Capital Per Unit: 5000 USD---## ๐ŸŽจ Visualization Features### Background Colors- Light Green: Bullish structure- Light Red: Bearish structure- Dark Green: Long entry- Dark Red: Short entry### Optional Display (Default: OFF)- Entry/exit channel lines- Structure high/low lines- ATR stop-loss line- Next add position indicator- Entry/exit labels---## ๐Ÿ“ฑ Alert Message FormatStrategy sends notifications on entry/exit with the following format:- Entry: `1m Long EP:428.26`- Add Position: `15m Add Long 2/2 EP:429.50`- Exit: `1m Close Long Reverse Signal`Where:- `1m`/`15m` = Current chart timeframe- `EP` = Entry Price---## ๐Ÿ’ฐ Backtest Settings### Capital Allocation- Initial Capital: 10,000 USD- Per Entry: 5,000 USD (split into 2 entries)- Leverage: 0x (spot trading)### Trading Costs- Commission: 0.06% (Binance spot VIP0)- Slippage: 0---## ๐ŸŽฏ Use Cases### โœ… Best Scenarios- Trending markets- Moderate volatility assets- 1-minute to 4-hour timeframes### โš ๏ธ Not Suitable For- Highly volatile choppy markets- Low liquidity small-cap coins- Extreme market conditions (black swan events)---## ๐Ÿ“Š Usage Recommendations### Timeframe Suggestions| Timeframe | Trading Style | Suggested Parameter Adjustment ||-----------|--------------|-------------------------------|| 1-5 min | Scalping | Swing Length 100-160 || 15-30 min | Short-term | Swing Length 50-100 || 1-4 hour | Swing Trading | Swing Length 20-50 |### Optimization Tips1. Adjust swing length based on backtest results2. Different coins may require different parameters3. Recommend backtesting on 1-minute chart first before live trading4. Enable labels to observe entry/exit points---## โš ๏ธ Risk Disclaimer1. Past Performance Does Not Guarantee Future Results - Backtest data is for reference only - Live trading may be affected by slippage, delays, etc.2. Market Condition Changes - Strategy performs better in trending markets - May experience frequent stops in ranging markets3. Capital Management - Do not invest more than you can afford to lose - Recommend setting total capital stop-loss threshold4. Commission Impact - Frequent trading accumulates commission fees - Recommend using exchange discounts (BNB fee reduction, etc.)---## ๐Ÿ”ง Troubleshooting### Q: No entry signals?A: Check if structure filter is too strict, adjust swing length or timeframe### Q: Too many labels displayed?A: Turn off "Show Labels" option in settings### Q: Poor backtest performance?A: 1. Check if the coin is suitable for trend-following strategies2. Adjust parameters (swing length, channel period)3. Try different timeframes### Q: How to set alerts?A: 1. Click "Alert" in top-right corner of chart2. Condition: Select "Strategy - Trend Following ZEC"3. Choose "Order filled"4. Set notification method (Webhook/Email/App)---## ๐Ÿ“ž Contact Information- Strategy Name: Trend Following ZEC- Version: v1.0- Pine Script Version: v6- Last Updated: December 2025---## ๐Ÿ“„ Copyright NoticeThis strategy is for educational and research purposes only.All risks of using this strategy for live trading are borne by the user.Commercial use without authorization is prohibited.---## ๐ŸŽ“ Learning ResourcesTo understand the strategy principles in depth, recommended reading:- "The Complete TurtleTrader" - Curtis Faith- "Trend Following" - Michael Covel- TradingView Pine Script Official Documentation---Happy Trading! Remember to manage your risk ๐Ÿ“ˆDec 12Release Notes# Trend Following Strategy GuideApplicable to ZEC and AXL---## Strategy OverviewTrend Following is an enhanced Turtle Trading system designed for cryptocurrency spot trading, combining Donchian Channel breakouts, multi-timeframe structure filtering, and ATR-based dynamic risk management for both long and short positions.This strategy is particularly suitable for ZEC (Zcash) and AXL (Axelar), cryptocurrencies with good liquidity and trending characteristics.---## Core Features1. Multi-Timeframe Structure Filtering Uses Swing High/Low to identify market structure. Customizable structure timeframe (default: 1 minute). Only enters trades in the direction of the trend, avoiding counter-trend positions.2. Reverse Signal Exit No fixed stop-loss or fixed-period exits. Exits only when a reverse entry signal triggers. Maximizes trend profits and reduces premature exits.3. ATR Dynamic Pyramiding Adds positions when price moves 0.5 ATR in favorable direction. Supports up to 2 units maximum (adjustable). Pyramid scaling to enhance profitability.4. Complete Risk Management Fixed position size (5000 USD per unit). Commission fee 0.06% (Binance spot rate). Initial capital 10,000 USD.---## Trading LogicEntry ConditionsLong Entry:Close price breaks above 20-period high and structure trend is bullish (price breaks above Swing High)Short Entry:Close price breaks below 20-period low and structure trend is bearish (price breaks below Swing Low)Add Position ConditionsLong: Price rises โ‰ฅ 0.5 ATRShort: Price falls โ‰ฅ 0.5 ATRMaximum 2 units including initial entryExit ConditionsLong Exit: When short entry signal triggers (price breaks 20-period low + structure turns bearish)Short Exit: When long entry signal triggers (price breaks 20-period high + structure turns bullish)---## Parameter SettingsChannel SettingsEntry Channel Period: 20 (Donchian Channel breakout period)Exit Channel Period: 10 (reserved parameter, actually uses reverse signal exit)ATR SettingsATR Period: 20Stop Loss ATR Multiplier: 2.0 (reserved parameter)Add Position ATR Multiplier: 0.5Structure FilterSwing Length: 160 (Swing High/Low calculation period)Structure Timeframe: 1 minute (can change to 5/15/60, etc.)Position ManagementMaximum Units: 2 (including initial entry)Capital Per Unit: 5000 USD---## Visualization FeaturesBackground ColorsLight Green: Bullish structureLight Red: Bearish structureDark Green: Long entryDark Red: Short entryOptional Display (Default: OFF)Entry/exit channel lines, structure high/low lines, ATR stop-loss line, next add position indicator, entry/exit labels---## Alert Message FormatStrategy sends notifications on entry/exit with the following format:Entry: 1m Long EP:428.26Add Position: 15m Add Long 2/2 EP:429.50Exit: 1m Close Long Reverse SignalWhere:1m/15m = Current chart timeframeEP = Entry Price---## Backtest SettingsCapital AllocationInitial Capital: 10,000 USDPer Entry: 5,000 USD (split into 2 entries)Leverage: 0x (spot trading)Trading CostsCommission: 0.06% (Binance spot VIP0)Slippage: 0---## Use CasesBest ScenariosTrending markets, moderate volatility assets, 1-minute to 4-hour timeframesNot Suitable ForHighly volatile choppy markets, low liquidity small-cap coins, extreme market conditions (black swan events)---## Usage RecommendationsTimeframe Suggestions1-5 minutes (Scalping): Suggested Swing Length 100-16015-30 minutes (Short-term): Suggested Swing Length 50-1001-4 hours (Swing Trading): Suggested Swing Length 20-50Optimization Tips1. Adjust swing length based on backtest results2. Different coins may require different parameters3. Recommend backtesting on 1-minute chart first before live trading4. Enable labels to observe entry/exit pointsSpecial Recommendations for ZEC and AXLZEC: As a privacy coin with higher volatility, recommend starting with shorter timeframes (5-15 minutes)AXL: As a cross-chain protocol token, recommend focusing on trend opportunities related to cross-chain activities---## Risk Disclaimer1. Past Performance Does Not Guarantee Future Results Backtest data is for reference only. Live trading may be affected by slippage, delays, etc.2. Market Condition Changes Strategy performs better in trending markets. May experience frequent stops in ranging markets.3. Capital Management Do not invest more than you can afford to lose. Recommend setting total capital stop-loss threshold.4. Commission Impact Frequent trading accumulates commission fees. Recommend using exchange discounts (BNB fee reduction, etc.)---## TroubleshootingQ: No entry signals?A: Check if structure filter is too strict, adjust swing length or timeframeQ: Too many labels displayed?A: Turn off "Show Labels" option in settingsQ: Poor backtest performance?A:1. Check if the coin is suitable for trend-following strategies2. Adjust parameters (swing length, channel period)3. Try different timeframesQ: How to set alerts?A:1. Click "Alert" in top-right corner of chart2. Condition: Select "Strategy - Trend Following"3. Choose "Order filled"4. Set notification method (Webhook/Email/App)---## Contact InformationStrategy Name: Trend FollowingVersion: v1.0Pine Script Version: v6Last Updated: December 2025---## Copyright NoticeThis strategy is for educational and research purposes only.All risks of using this strategy for live trading are borne by the user.Commercial use without authorization is prohibited.---## Learning ResourcesTo understand the strategy principles in depth, recommended reading:"The Complete TurtleTrader" by Curtis Faith"Trend Following" by Michael CovelTradingView Pine Script Official Documentation---Happy Trading! Remember to manage your risk.Release NotesTREND ZZEC/AXL TRADING STRATEGY - USER GUIDEโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•OVERVIEWThis is a trend-following strategy based on the Turtle Trading system, enhanced with multi-timeframe structure analysis and pyramid position sizing. The strategy uses Donchian Channels for entry/exit signals, ATR-based stops, and structure breaks for trade filtering.STRATEGY PARAMETERSโ”Œโ”€ CHANNEL SETTINGS โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”Entry Channel Period (default: 20) Breakout period for initial entriesExit Channel Period (default: 10) Breakout period for reverse signal exitsโ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜โ”Œโ”€ ATR SETTINGS โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ATR Period (default: 20) Period for calculating Average True RangeStop Loss ATR Multiplier (default: 2.0) Distance from entry for stop lossAdd Position ATR Multiplier (default: 0.5) Distance from last entry for pyramid addsโ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜โ”Œโ”€ STRUCTURE FILTER SETTINGS โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”Structure Swing Length (default: 160) Lookback period for identifying market structure pivotsStructure Timeframe (default: "2") Higher timeframe for structure analysis (blank = current chart, D = daily, W = weekly)Show Structure Lines Display structure high/low lines on chartShow Structure Labels Display labels when structure breaks occurโ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜โ”Œโ”€ POSITION MANAGEMENT โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”Max Units (default: 2) Maximum position units including initial entryPosition Size per Unit (default: $5,000) Capital allocation per unitโ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜โ”Œโ”€ DISPLAY SETTINGS โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”Show Channels Display entry/exit Donchian channelsShow ATR Lines Display stop loss and next add levelsShow Labels Display entry/exit/add labels on chartShow Info Panel Display position information tableLabel Distance Multiplier (default: 2.5) Distance of labels from candles in ATR multiplesShow Label Lines Connect labels to candles with linesโ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ENTRY LOGICLONG ENTRY CONDITIONS1. Price breaks above the 20-period Donchian upper channel2. Market structure is bullish (structure_trend == 1)3. No existing position or position is not already longSHORT ENTRY CONDITIONS1. Price breaks below the 20-period Donchian lower channel2. Market structure is bearish (structure_trend == -1)3. No existing position or position is not already shortSTRUCTURE FILTERThe strategy uses pivot highs/lows on a higher timeframe to determine market structure:BULLISH STRUCTURE: Triggered when price breaks above the last structure highBEARISH STRUCTURE: Triggered when price breaks below the last structure lowThis filter ensures trades align with the broader market trend.PYRAMID SCALING (ADD POSITIONS)LONG POSITION ADDS- Trigger when price moves 0.5 ATR above the last entry price- Maximum units determined by "Max Units" parameter- Each add updates the stop loss to 2 ATR below the new entrySHORT POSITION ADDS- Trigger when price moves 0.5 ATR below the last entry price- Maximum units determined by "Max Units" parameter- Each add updates the stop loss to 2 ATR above the new entryEXIT LOGICREVERSE SIGNAL EXIT (PRIMARY METHOD)LONG POSITIONS EXIT when a short entry signal triggers (price breaks below lower channel AND structure is bearish)SHORT POSITIONS EXIT when a long entry signal triggers (price breaks above upper channel AND structure is bullish)This approach keeps you in trending moves longer and naturally reverses positions when the trend changes.RISK MANAGEMENTSTOP LOSS- Automatically set at 2x ATR from entry price- Updates with each pyramid add to protect accumulated profits- Trails behind position as adds occurPOSITION SIZING- Default: $10,000 capital split into 2 units of $5,000 each- Calculates quantity based on USD value divided by entry price- 0.06% commission rate includedVISUAL INDICATORSCHART BACKGROUND COLORSLight Green โ†’ Bullish structure activeLight Red โ†’ Bearish structure activeDarker Green โ†’ Long entry signalDarker Red โ†’ Short entry signalLime โ†’ Long position addMaroon โ†’ Short position addLABELSGreen "ๅšๅคšZEC" โ†’ Initial long entryRed "ๅš็ฉบZEC" โ†’ Initial short entryLime "ๅŠ ๅ€‰ๅคšๅ–ฎZEC" โ†’ Long position addMaroon "ๅŠ ๅ€‰็ฉบๅ–ฎZEC" โ†’ Short position addOrange "ๅนณๅคšZEC" โ†’ Long exit (reverse signal)Blue "ๅนณ็ฉบZEC" โ†’ Short exit (reverse signal)STRUCTURE LABELS"ๅคšๆ–น็ตๆง‹" โ†’ Bullish structure break detected"็ฉบๆ–น็ตๆง‹" โ†’ Bearish structure break detectedRECOMMENDED SETTINGSFOR HIGHER TIMEFRAMES (4H+)Entry Period: 20Exit Period: 10Structure Timeframe: "D" (daily)Structure Swing Length: 160-240FOR LOWER TIMEFRAMES (15m-1H)Entry Period: 20Exit Period: 10Structure Timeframe: "2" or "4" (2x or 4x current timeframe)Structure Swing Length: 80-160CONSERVATIVE APPROACHMax Units: 2ATR Stop Multiplier: 2.5-3.0ATR Add Multiplier: 0.5-1.0AGGRESSIVE APPROACHMax Units: 4ATR Stop Multiplier: 2.0ATR Add Multiplier: 0.5ALERT MESSAGESThe strategy generates alert messages for:- Initial entries (long/short)- Pyramid adds with unit count- Exit signals with reasonFormat: [Timeframe] [Action] EP:[Entry Price]IMPORTANT NOTES1. STRUCTURE FILTER IS CRITICAL Trades only occur when market structure aligns with direction2. REVERSE SIGNAL EXITS Strategy doesn't use the 10-period channel for exits; it waits for opposite structure break3. PYRAMID ADDS Only occur when price is moving favorably, not when it's moving against position4. COMMISSION IMPACT 0.06% commission is factored into backtesting results5. MULTI-TIMEFRAME Structure analysis can use a different timeframe than the chart for better trend filteringTIPS FOR OPTIMIZATION1. TEST DIFFERENT STRUCTURE TIMEFRAMES Match structure period to your holding timeframe2. ADJUST SWING LENGTH Lower for more sensitive structure breaks, higher for major trends only3. TUNE ATR MULTIPLIERS Balance between giving trades room and protecting capital4. MAX UNITS More units = more profit potential but higher risk5. BACKTEST THOROUGHLY Test on your specific symbol and timeframe before live tradingโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•DISCLAIMER: This strategy is for educational purposes. Always backtest thoroughly and use proper risk management before live trading.โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

Browse all 5,900+ TradingView Pine Script strategies

View on TradingView