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精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明