OPEN-SOURCE SCRIPT

Michael Saylor Strategy Improved (El Minero Sudaka)

# Bitcoin DCA Trading Strategy Using Moving Averages

This strategy combines Dollar Cost Averaging (DCA) with technical analysis to optimize Bitcoin accumulation and profit-taking.

## Core Components

### Key Moving Average Lines
- **Green Line**: 365-day simple moving average (SMA)
- **Red Line**: Green line multiplied by 3x

### Trading Zones
- **Green Zone** (Below Green Line): Accumulation zone
- **Red Zone** (Above Red Line): Profit-taking zone
- **Grey Zone** (Between Lines): Neutral zone

## Trading Rules

### Entry Strategy
- Buy when price closes below the green line (365 SMA)
- Multiple entries allowed (up to 10,000 positions)
- Fixed investment amount per entry (default $100)

### Exit Strategy
- Sell when price closes above the red line (3x SMA)
- Closes all accumulated positions

## Technical Features

### Pyramiding
- Allows up to 10,000 simultaneous positions
- Enables aggressive accumulation during downtrends
- Each position maintains the same base investment amount

### Backtesting Controls
- Customizable date range for strategy testing
- Helps evaluate performance across different market cycles

### Customizable Parameters
- Base investment amount
- Moving average length (default 365 days)
- Upper line multiplier (default 3x)
- Testing period start/end dates

## Strategy Benefits

### Risk Management
- Systematic approach reduces emotional trading
- Automated entries and exits
- Built-in profit-taking mechanism

### Long-term Optimization
- Accumulates during market weakness
- Takes profits during strong bull markets
- Combines best aspects of DCA with technical triggers

### Alerts
- Notifies when price crosses either line
- Helps maintain strategy without constant monitoring

## Ideal Use Cases
- Long-term Bitcoin investors
- Value-focused accumulation strategies
- Risk-averse investors
- Systematic portfolio building

## Implementation Notes
- Best suited for daily timeframe
- Requires consistent capital availability
- Works well in ranging and trending markets
- Most effective during multi-year market cycles
Simple Moving Average (SMA)

نص برمجي مفتوح المصدر

قام مؤلف هذا النص البرمجي بنشره وجعله مفتوح المصدر، بحيث يمكن للمتداولين فهمه والتحقق منه، وهو الأمر الذي يدخل ضمن قيم TradingView. تحياتنا للمؤلف! يمكنك استخدامه مجانًا، ولكن إعادة استخدام هذا الرمز في المنشور يخضع لقواعد‎‎قوانين الموقع. يمكنك جعله مفضلاً لاستخدامه على الرسم البياني.

هل تريد استخدام هذا النص البرمجي على الرسم البياني؟

إخلاء المسؤولية