Strategy Reports

Twilight Hammer Strategy

Twilight Hammer Strategy

The Twilight Hammer Strategy is a pattern trading strategy tailored for the ETHUSD Forex pair on a 1-hour timeframe. Designed to exploit specific market patterns, this strategy was backtested over a two-year period, from 2023-01-01 to 2024-12-01, to evaluate its effectiveness. With a probability greater than 60% for bullish candles following its defined conditions, this strategy aims to provide consistent returns in a volatile market.

Strategy Overview

Strategy Name: Twilight Hammer Strategy
Strategy Type: Pattern Trading
Instrument: Forex ā€“ ETHUSD
Timeframe: 1 Hour
Back test Period: 2023-01-01 to 2024-12-01

Strategy Conditions

The Twilight Hammer Strategy is built on four key conditions:

  1. Bearish Candle Formation:
    • The candleā€™s open price must be higher than its close price.
  2. Body Length Dominance:
    • The body length (difference between open and close) must exceed A% of the total wick length.
  3. Upper Wick Dominance:
    • The lower wick must be less than B% of the upper wick.
  4. Strategic Time Windows:
    • The strategy is applicable only during specific trading hours:
      [C, D, E, F, G, H, I]

Note: Condition 4 is not a primary condition, meaning it is not required for the pattern probability, it was just added as an optimization parameter to improve the overall performance

These conditions were meticulously designed to capture high-probability bullish reversals.

Backtesting Results

Strategy Performance Analysis

MetricValue
Cumulative Returns3.26
Cumulative Strategy2.20
Out/Under Performance-1.06

The strategy generated positive cumulative returns over the backtest period, though it underperformed compared to the benchmark returns by 1.06 points.

Overall Performance Metrics

MetricValue
Compound Annual Growth Rate (CAGR)49.95%
Annualized Mean40.52%
Annualized Std Dev11.88%
Sharpe Ratio4.21
Sortino Ratio5.69
Maximum Drawdown5.52%
Calmar Ratio9.05
Max Drawdown Duration102 hours
Kelly Criterion29.03

The high Sharpe and Sortino Ratios reflect excellent risk-adjusted returns, while a maximum drawdown of 5.52% ensures relatively low capital risk.

Risk Management

  • Define Risk:Ā Analyze the historical maximum drawdown (5% ā€“ Non Leveraged!!) to configure an appropriate lot size.
  • Position Sizing:Ā Use the Kelly Criterion for optimal allocation (29.03 of capital).

Backtesting and Optimization

  • Frameworks:Ā Backtesting was conducted using the Shreya Framework on MT5 and DxTrade platforms.
  • Optimization:Ā Parameters such as A and B can be Optimized, but note that minimum optimization should be carried out as such to avoid overfitting

Strategy Resource Files

TradingKernel.com provides all necessary resources for seamless implementation:

  • Python File (.py):Ā Automates the strategy on the Shreya Framework.
  • MT5 Indicator:Ā Ready-to-use indicator for MetaTrader 5.
  • Financial Analysis:Ā Detailed Jupyter Notebook report for further insights.

šŸ‘‰Ā Download the Strategy Files HereĀ for in-depth performance analysis, insights, and implementation details.

Leave a Reply