OPEN-SOURCE SCRIPT
Güncellendi

Trend Following $ZEC - Multi-Timeframe Structure Filter + Revers

382
# Trend Following ZEC - Strategy Guide

## 📊 Strategy Overview

Trend 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 Format

Strategy 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 Tips
1. Adjust swing length based on backtest results
2. Different coins may require different parameters
3. Recommend backtesting on 1-minute chart first before live trading
4. Enable labels to observe entry/exit points

---

## ⚠️ Risk Disclaimer

1. 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.)

---

## 🔧 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 strategies
2. Adjust parameters (swing length, channel period)
3. Try different timeframes

Q: How to set alerts?
A:
1. Click "Alert" in top-right corner of chart
2. 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 Notice

This 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 Resources

To 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 📈
Sürüm Notları
# Trend Following ZEC - Strategy Guide

## 📊 Strategy Overview

Trend 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 Format

Strategy 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 Tips
1. Adjust swing length based on backtest results
2. Different coins may require different parameters
3. Recommend backtesting on 1-minute chart first before live trading
4. Enable labels to observe entry/exit points

---

## ⚠️ Risk Disclaimer

1. 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.)

---

## 🔧 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 strategies
2. Adjust parameters (swing length, channel period)
3. Try different timeframes

Q: How to set alerts?
A:
1. Click "Alert" in top-right corner of chart
2. 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 Notice

This 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 Resources

To 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 📈
Sürüm Notları
# Trend Following ZEC - Strategy Guide

## 📊 Strategy Overview

Trend 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 Format

Strategy 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 Tips
1. Adjust swing length based on backtest results
2. Different coins may require different parameters
3. Recommend backtesting on 1-minute chart first before live trading
4. Enable labels to observe entry/exit points

---

## ⚠️ Risk Disclaimer

1. 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.)

---

## 🔧 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 strategies
2. Adjust parameters (swing length, channel period)
3. Try different timeframes

### Q: How to set alerts?
A:
1. Click "Alert" in top-right corner of chart
2. 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 Notice

This 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 Resources

To 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 📈
Sürüm Notları
# Trend Following Strategy Guide

Applicable to ZEC and AXL

---

## Strategy Overview

Trend 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 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 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 Logic

Entry Conditions

Long 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 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 Format

Strategy 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

1-5 minutes (Scalping): Suggested Swing Length 100-160
15-30 minutes (Short-term): Suggested Swing Length 50-100
1-4 hours (Swing Trading): Suggested Swing Length 20-50

Optimization Tips
1. Adjust swing length based on backtest results
2. Different coins may require different parameters
3. Recommend backtesting on 1-minute chart first before live trading
4. Enable labels to observe entry/exit points

Special Recommendations for ZEC and AXL
ZEC: 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 Disclaimer

1. 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.)

---

## 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 strategies
2. Adjust parameters (swing length, channel period)
3. Try different timeframes

Q: How to set alerts?
A:
1. Click "Alert" in top-right corner of chart
2. Condition: Select "Strategy - Trend Following"
3. Choose "Order filled"
4. Set notification method (Webhook/Email/App)

---

## Contact Information

Strategy Name: Trend Following
Version: v1.0
Pine Script Version: v6
Last Updated: December 2025

---

## Copyright Notice

This 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 Resources

To understand the strategy principles in depth, recommended reading:
"The Complete TurtleTrader" by Curtis Faith
"Trend Following" by Michael Covel
TradingView Pine Script Official Documentation

---

Happy Trading! Remember to manage your risk.
Sürüm Notları
TREND ZZEC/AXL TRADING STRATEGY - USER GUIDE

═══════════════════════════════════════════════════════════════════

OVERVIEW

This 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 entries

Exit Channel Period (default: 10)
Breakout period for reverse signal exits

└────────────────────────────────────────────────────────────────┘


┌─ ATR SETTINGS ─────────────────────────────────────────────────┐

ATR Period (default: 20)
Period for calculating Average True Range

Stop Loss ATR Multiplier (default: 2.0)
Distance from entry for stop loss

Add 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 pivots

Structure Timeframe (default: "2")
Higher timeframe for structure analysis
(blank = current chart, D = daily, W = weekly)

Show Structure Lines
Display structure high/low lines on chart

Show Structure Labels
Display labels when structure breaks occur

└────────────────────────────────────────────────────────────────┘


┌─ POSITION MANAGEMENT ──────────────────────────────────────────┐

Max Units (default: 2)
Maximum position units including initial entry

Position Size per Unit (default: $5,000)
Capital allocation per unit

└────────────────────────────────────────────────────────────────┘


┌─ DISPLAY SETTINGS ─────────────────────────────────────────────┐

Show Channels
Display entry/exit Donchian channels

Show ATR Lines
Display stop loss and next add levels

Show Labels
Display entry/exit/add labels on chart

Show Info Panel
Display position information table

Label Distance Multiplier (default: 2.5)
Distance of labels from candles in ATR multiples

Show Label Lines
Connect labels to candles with lines

└────────────────────────────────────────────────────────────────┘


ENTRY LOGIC

LONG ENTRY CONDITIONS

1. Price breaks above the 20-period Donchian upper channel
2. Market structure is bullish (structure_trend == 1)
3. No existing position or position is not already long


SHORT ENTRY CONDITIONS

1. Price breaks below the 20-period Donchian lower channel
2. Market structure is bearish (structure_trend == -1)
3. No existing position or position is not already short


STRUCTURE FILTER

The strategy uses pivot highs/lows on a higher timeframe to determine market structure:

BULLISH STRUCTURE: Triggered when price breaks above the last structure high

BEARISH STRUCTURE: Triggered when price breaks below the last structure low

This 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 entry


SHORT 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 entry


EXIT LOGIC

REVERSE 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 MANAGEMENT

STOP LOSS

- Automatically set at 2x ATR from entry price
- Updates with each pyramid add to protect accumulated profits
- Trails behind position as adds occur


POSITION 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 included


VISUAL INDICATORS

CHART BACKGROUND COLORS

Light Green → Bullish structure active
Light Red → Bearish structure active
Darker Green → Long entry signal
Darker Red → Short entry signal
Lime → Long position add
Maroon → Short position add


LABELS

Green "做多ZEC" → Initial long entry
Red "做空ZEC" → Initial short entry
Lime "加倉多單ZEC" → Long position add
Maroon "加倉空單ZEC" → Short position add
Orange "平多ZEC" → Long exit (reverse signal)
Blue "平空ZEC" → Short exit (reverse signal)


STRUCTURE LABELS

"多方結構" → Bullish structure break detected
"空方結構" → Bearish structure break detected


RECOMMENDED SETTINGS

FOR HIGHER TIMEFRAMES (4H+)

Entry Period: 20
Exit Period: 10
Structure Timeframe: "D" (daily)
Structure Swing Length: 160-240


FOR LOWER TIMEFRAMES (15m-1H)

Entry Period: 20
Exit Period: 10
Structure Timeframe: "2" or "4" (2x or 4x current timeframe)
Structure Swing Length: 80-160


CONSERVATIVE APPROACH

Max Units: 2
ATR Stop Multiplier: 2.5-3.0
ATR Add Multiplier: 0.5-1.0


AGGRESSIVE APPROACH

Max Units: 4
ATR Stop Multiplier: 2.0
ATR Add Multiplier: 0.5


ALERT MESSAGES

The strategy generates alert messages for:

- Initial entries (long/short)
- Pyramid adds with unit count
- Exit signals with reason

Format: [Timeframe] [Action] EP:[Entry Price]


IMPORTANT NOTES

1. STRUCTURE FILTER IS CRITICAL
Trades only occur when market structure aligns with direction

2. REVERSE SIGNAL EXITS
Strategy doesn't use the 10-period channel for exits; it waits for opposite structure break

3. PYRAMID ADDS
Only occur when price is moving favorably, not when it's moving against position

4. COMMISSION IMPACT
0.06% commission is factored into backtesting results

5. MULTI-TIMEFRAME
Structure analysis can use a different timeframe than the chart for better trend filtering


TIPS FOR OPTIMIZATION

1. TEST DIFFERENT STRUCTURE TIMEFRAMES
Match structure period to your holding timeframe

2. ADJUST SWING LENGTH
Lower for more sensitive structure breaks, higher for major trends only

3. TUNE ATR MULTIPLIERS
Balance between giving trades room and protecting capital

4. MAX UNITS
More units = more profit potential but higher risk

5. 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.

═══════════════════════════════════════════════════════════════════

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.