Type/to search

Starbucks Bullish Hammer Trading Strategy

Cryptocurrency
Created: 2023-09-18 15:30:15
Last modified: 3 years ago
1
Follow
1781
Followers

Overview

This strategy identifies bullish hammer candlestick patterns and uses the MACD indicator to determine trend direction for trend following trades. During a bull market, go long when a bullish hammer appears while MACD is bullish. Close position when MACD turns bearish.

Strategy Logic

Identify bullish hammer by calculating body-to-range ratio. Use MACD to determine trend direction. When MACD is bullish, go long when a bullish hammer signal appears. Set stop loss and position sizing. Exit when MACD turns bearish.

Advantages

  • Bullish hammer recognition is simple and clear
  • MACD effectively identifies trend reversals
  • Following trends avoids whipsaws
  • Simple and straightforward logic, easy to implement

Risks

  • Pattern recognition is imperfect, signals can be missed
  • MACD trend reversal identification has lag
  • Low trade frequency unsuitable for high frequency trading
  • Exact reversal points cannot be determined, risks losses

Risks can be mitigated by relaxing pattern criteria, shortening MACD parameters, adding secondary indicators etc.

Enhancements

  • Optimize hammer pattern identification rules
  • Test different MACD parameter settings
  • Consider adding other indicators to determine reversals
  • Test robustness across different products

Conclusion

This strategy integrates pattern and indicator analysis for trend determination, enabling steady profits. Further refinements like parameter optimization can make it a practical quant trading strategy.

Source
Pine
/*backtest
start: 2023-08-18 00:00:00
end: 2023-09-17 00:00:00
period: 3h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © FenixCapital

//@version=4
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)