Script Title:
**Hull Suite by MRS**
---
Description:
The "Hull Suite by MRS" is a versatile trading strategy and indicator based on the Hull Moving Average (HMA) and its variations. This script provides traders with a customizable framework to analyze trends, identify potential entry and exit points, and visualize market dynamics using advanced moving average calculations.
Key Features:
1. **Hull Variations**:
- Choose between three Hull-based moving averages: **HMA (Hull Moving Average)**, **EHMA (Exponential Hull Moving Average)**, and **THMA (Triangular Hull Moving Average)**.
- Each variation offers unique smoothing and responsiveness, allowing traders to adapt to different market conditions.
2. **Trend Detection**:
- Automatically detects bullish and bearish trends based on the relationship between the current Hull value (`MHULL`) and its previous value (`SHULL`).
- The color of the Hull line dynamically changes to green (`#00ff00`) for uptrends and red (`#ff0000`) for downtrends.
3. **Customizable Visualization**:
- Display the Hull as a single line or as a band (fill area between `MHULL` and `SHULL`) for better trend visualization.
- Adjust line thickness, transparency, and other visual parameters to suit your charting preferences.
4. **Backtesting Flexibility**:
- Define custom backtest date ranges to evaluate strategy performance over specific time periods.
- Control trade direction (`long`, `short`, or `all`) to align with your trading style.
5. **Strategy Logic**:
- Enters a **long** position when the Hull trend turns bullish (`MHULL > SHULL`).
- Enters a **short** position when the Hull trend turns bearish (`MHULL < SHULL`).
- Ensures precise execution within the defined backtest period.
6. **Candle Coloring**:
- Optionally color candles based on the Hull's trend direction for quick visual identification of market sentiment.
7. **User-Friendly Inputs**:
- Customize the source (`close`, `open`, etc.), Hull length, transparency, line thickness, and other parameters via intuitive input controls.
---
**How to Use**:
1. **Add to Chart**:
- Apply the script to your chart and select the desired Hull variation (`HMA`, `EHMA`, or `THMA`).
2. **Adjust Settings**:
- Modify the `Length` parameter to fine-tune sensitivity:
- Use shorter lengths (e.g., 55) for swing trading.
- Use longer lengths (e.g., 180-200) for floating support/resistance levels.
- Enable/disable features like candle coloring, band visualization, and transparency to match your preferences.
3. **Backtest**:
- Set the backtest start and stop dates to evaluate the strategy's performance over historical data.
- Select the desired trade direction (`long`, `short`, or `all`) to test specific scenarios.
4. **Interpret Signals**:
- Green Hull line: Bullish trend → Potential long opportunities.
- Red Hull line: Bearish trend → Potential short opportunities.
---
### **Why Use the Hull Suite?**
The Hull Suite combines the responsiveness of moving averages with advanced smoothing techniques to reduce lag and noise. It is particularly useful for:
- **Trend Following**: Identifying and riding strong trends in trending markets.
- **Swing Trading**: Capturing short- to medium-term price swings.
- **Support/Resistance Levels**: Visualizing dynamic support and resistance zones with longer Hull lengths.
Whether you're a beginner or an experienced trader, this script provides a powerful toolset to enhance your technical analysis and decision-making process.
---
**Disclaimer**:
This script is intended for educational and informational purposes only. Past performance is not indicative of future results. Always conduct your own research and consider risk management before executing trades.
---
**Author**:
Developed by **MRS** (Market Research Strategist).
Feel free to reach out with feedback or suggestions for improvement!