LinRegBisect_M Strategy: In-Depth Analysis
Strategy Number: #221 (the 221st of 465 strategies)
Strategy Type: Linear Regression / Trendline Analysis / Multi-Timeframe Verification
Timeframe: 15 Minutes (15m)
I. Strategy Overview
LinRegBisect_M is an improved version of the linear regression-based trend strategy LinRegBisect. This strategy introduces a multi-timeframe verification mechanism on top of the original, enhancing signal reliability.
The name "LinReg" stands for Linear Regression, "Bisect" refers to using the regression line to dichotomize the price space, and "_M" indicates the Multi-timeframe enhanced version. This statistically grounded approach, combined with multi-timeframe verification, enables more accurate identification of trend reversal points.
Core Characteristics
| Attribute | Description |
|---|---|
| Entry Conditions | 2 sets of linear regression-based buy signals + multi-timeframe verification |
| Exit Conditions | 1 set of base exit signals + take-profit and stop-loss |
| Protections | 1 set of entry protection parameters |
| Timeframe | 15-minute primary timeframe + 1-hour informational timeframe |
| Dependencies | scipy, pandas, numpy |
II. Strategy Configuration Analysis
2.1 Base Risk Parameters
# ROI Exit Table
minimal_roi = {
"0": 0.12,
"30": 0.08,
"60": 0.04,
"120": 0
}
# Stop Loss Settings
stoploss = -0.10
# Trailing Stop
trailing_stop = True
trailing_stop_positive = 0.03
trailing_stop_positive_offset = 0.035
Design Philosophy:
- Higher Take-Profit Target: 12% initial target, paired with multi-timeframe verification to improve accuracy
- Standard Stop Loss: -10% stop loss magnitude
- Trailing Stop: Enabled to lock in profits
2.2 Linear Regression Parameters
# Linear Regression Parameters
lr_window = 30 # Regression window size
lr_threshold = 0.012 # Slope threshold (stricter than original)
bisect_deviation = 0.025 # Deviation threshold (more relaxed than original)
III. Entry Conditions Details
3.1 Multi-Timeframe Verification Mechanism
The core innovation of this strategy is the introduction of the 1-hour timeframe as a confirmation layer:
# Multi-Timeframe Verification
# 1. 15-minute chart: Regression line slope turns positive
# 2. 1-hour chart: EMA60 direction is upward
# Both conditions must be met simultaneously to trigger a buy signal
3.2 Linear Regression Conditions
Condition #1: Regression Line Slope Turns Positive + Large Cycle Confirmation
# Logic
- 15-minute: Calculate linear regression over the most recent 30 candles
- Regression line slope transitions from negative to positive
- 1-hour: EMA60 direction confirms upward
- Entry Timing: Both timeframe signals are aligned
Condition #2: Price Deviation Below Regression Line + Large Cycle Oversold
# Logic
- Price deviates significantly below the regression line
- Deviation exceeds the 2.5% threshold
- 1-hour: RSI < 40 oversold confirmation
- Entry Timing: Deviation reversal with large cycle support
IV. Exit Logic Details
4.1 Multi-Layer Take-Profit System
Take-Profit Point 12% Hold 0-30 minutes
Take-Profit Point 8% Hold 30-60 minutes
Take-Profit Point 4% Hold 60-120 minutes
Stop-Loss Point -10% Any time
4.2 Trailing Stop
When profit exceeds 3%, a trailing stop automatically activates, locking in at least 3.5% profit.
V. Technical Indicator System
5.1 Core Indicators
| Indicator Category | Specific Indicator | Purpose |
|---|---|---|
| Trend Indicator | Linear Regression Slope | Trend direction and strength |
| Deviation Indicator | Price-Regression Line Deviation | Overbought/oversold assessment |
| Confirmation Indicator | EMA60 (1h) | Large cycle trend confirmation |
| Oversold Indicator | RSI (1h) | Large cycle extreme positions |
5.2 Multi-Timeframe Verification Principle
# Small timeframe is used for entry precision
# Large timeframe is used for trend direction confirmation
# The combination reduces false signals
VI. Risk Management Highlights
6.1 Dual Timeframe Filtering
The multi-timeframe verification mechanism significantly reduces false signal probability, but may decrease trade frequency.
6.2 Slope Threshold Adjustment
Compared to the original LinRegBisect, the _M version uses a stricter slope threshold (0.012 vs 0.01), requiring more definitive trend signals.
VII. Strategy Strengths and Limitations
✅ Strengths
- Multi-Timeframe Verification: Large cycle confirmation improves signal reliability
- Objective and Quantitative: Statistical method-based, high objectivity
- Clear Trends: Slope clearly reflects trend direction
- Adaptability: Adjustable parameters to suit different markets
⚠️ Limitations
- Reduced Trade Frequency: Multi-timeframe filtering reduces trading opportunities
- Linear Assumption: Assumes trend is linear, which may not be accurate
- Inherent Lag: Regression line has natural lag
- Parameter Sensitivity: Parameters need to be adjusted according to market conditions
VIII. Applicable Scenarios Recommendations
| Market Environment | Recommended Configuration | Notes |
|---|---|---|
| Stable Trend | Window 30, Threshold 0.012 | Most effective when trend is clear |
| High Volatility | Increase deviation threshold to 3% | Avoid false signals |
| Ranging Market | Disable multi-timeframe verification | Increase trading opportunities |
IX. Applicable Market Environment Details
LinRegBisect_M is the multi-timeframe enhanced version of LinRegBisect. Code volume is approximately 200 lines, based on statistical methods combined with multi-timeframe analysis.
Its Money-Making Philosophy: Use large cycle trend confirmation to filter out noise from the small cycle
- Multi-Timeframe Verification: Small cycle entry, large cycle confirmation
- Strict Filtering: Fewer trades, higher win rate
- Trend Following: Only trade in clear trends
9.1 Performance in Different Market Environments
| Market Type | Performance Rating | Analysis |
|---|---|---|
| 📈 Slow Bull | ⭐⭐⭐⭐⭐ | Clear trends, multi-timeframe confirmation effective |
| 🔄 Ranging | ⭐⭐⭐☆☆ | High-frequency false signals filtered |
| 📉 Crash | ⭐⭐☆☆☆ | Trend reversals difficult to capture |
| ⚡ Fast Bull | ⭐⭐⭐⭐☆ | Lag during sharp rallies |
9.2 Key Configuration Recommendations
| Configuration Item | Recommended Value | Notes |
|---|---|---|
| lr_window | 30 | Regression window size |
| lr_threshold | 0.012 | Slope threshold |
| bisect_deviation | 0.025 | Deviation threshold |
X. Important Notes: The Cost of Complexity
10.1 Learning Curve
Multi-timeframe strategies require understanding the relationships between different timeframes. Testing on a demo account is recommended first.
10.2 Hardware Requirements
| Number of Trading Pairs | Minimum RAM | Recommended RAM |
|---|---|---|
| 5-10 | 1GB | 2GB |
| 20-30 | 2GB | 4GB |
10.3 Backtesting vs Live Trading Differences
Multi-timeframe strategies may perform better in backtesting than live trading because multi-timeframe relationships in historical data are easier to realize.
10.4 Manual Trading Recommendations
It is recommended to read large cycle charts to confirm trend direction before referring to small cycle signals for entry.
XI. Summary
LinRegBisect_M is a multi-timeframe enhanced linear regression trend strategy. Its core value lies in:
- Improved Signal Reliability: Large cycle confirmation reduces false signals
- Statistical Foundation: Objective quantitative methods
- Clear Trends: Slope clearly reflects market direction
- Adjustable Parameters: Adaptable to market conditions
For quantitative traders, this strategy is suitable for investors who pursue high win rates and are willing to sacrifice trade frequency. It is recommended for use in markets with clear trends, with sufficient backtesting validation.