OPEN-SOURCE SCRIPT

Becak I-Series : Envelope Trading v.7.0

807
Inspired by "Andean Oscillator: A New Technical Indicator Based on an Online Algorithm for Trend Analysis" (Alpaca Markets Research)

Core Concept
Inspired by the Andean Oscillator's online trend-detection algorithm, this indicator enhances traditional envelope strategies with real-time adaptive trend analysis and automated trade management.

📊 Key Innovations:
✅ Andean-Inspired Trend Detection – Dynamic envelope bands that adjust like the Andean Oscillator's real-time smoothing
✅ Self-Adjusting Targets – ATR-based profit-taking system with 3 customizable targets
✅ 5 Adaptive Modes – Switch between trend, reversal, pullback, squeeze, or hybrid strategies
✅ Smart Confirmation Filters – Volume (MFI), ADX strength, and RSI momentum
✅ Visual Trade Assistant – Auto-plots entry/exit zones with hit detection

🎯 How It Improves on Traditional Envelopes:
  1. Real-Time Band Adjustment (like Andean's online algorithm)
  2. Adaptive Target Zones (not static multiples)
  3. Multiple Signal Philosophies in one tool


⚙️ Best For:
  1. Traders who want Andean-like trend detection with clear rules
  2. Systematic traders needing structured profit-taking
  3. Swing traders looking for confirmed envelope breaks


How to Use the Becak I-Series Envelope Trading Indicator
This advanced indicator provides 5 trading modes with dynamic trend analysis and automated profit targets. Here’s how to use it effectively:

🔹 Step 1: Select Your Trading Mode
Choose from 5 signal types in the settings:
Momentum – Follows strong trends (best for trending markets)
Mean Reversion – Fades overextended moves (best for ranging markets)
Pullback – Enters retracements within trends (best for swing trading)
Squeeze – Trades volatility breakouts (best for consolidations)
Adaptive – Automatically blends strategies (recommended for all markets)

👉 Tip: Start with Adaptive mode if unsure.

🔹 Step 2: Understand the Signals
🔵 Blue Envelope (Upper Band) – Resistance in uptrends
🔴 Red Envelope (Lower Band) – Support in downtrends
⚪ Midline – Trend filter (price above = bullish, below = bearish)

Entry Signals
🟢 Buy Signal (⦿) – Price confirms bullish setup (depends on selected mode)
🟡 Sell Signal (⦿) – Price confirms bearish setup

Target Trend System (Auto Profit-Taking)
🎯 T1, T2, T3 – Profit targets (adjustable in settings)
🛑 SL – Dynamic stop-loss (trails with trend)
✔️ "HIT" Labels – Confirms when a target is reached

🔹 Step 3: Trade Execution Rules
For Trend-Following (Momentum/Pullback Modes)
✅ Long Entry:
  1. Price breaks above midline
  2. Buy signal appears (green dot)
  3. Volume & ADX confirm strength


✅ Short Entry:
  1. Price breaks below midline
  2. Sell signal appears (yellow dot)

Volume & ADX confirm weakness

For Reversals (Mean Reversion Mode)
✅ Buy at Lower Band:
  1. Price touches red envelope + RSI oversold
  2. Volume confirms exhaustion


✅ Sell at Upper Band:
  1. Price touches blue envelope + RSI overbought
  2. Volume confirms exhaustion


🔹 Step 4: Manage Your Trade
  1. Hold until T1, T2, or T3 is hit (adjust based on risk tolerance)
  2. Stop-loss moves with the trend (trailing stop logic)
  3. Exit early if the trend reverses (price crosses midline)


🔹 Step 5: Optimize Settings (Optional)
  1. Envelope Length (50 default) – Adjust for sensitivity (shorter = faster signals)
  2. ATR Multiplier (0.8 default) – Controls target distances
  3. Volume/ADX Filters – Tweak for stricter/looser confirmations




PS:
thank you to pinecoder that previously write about andean envelope, learn much from you!!
TERIMA KASIH (Thank you) !!

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.