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 автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения. Вы можете добавить этот скрипт в избранное и использовать его на графике.

Хотите использовать этот скрипт на графике?

Отказ от ответственности