Showing posts with label Quantitative Finance. Show all posts
Showing posts with label Quantitative Finance. Show all posts

Sunday, September 8, 2024

Toby Crabel’s Bull Hook Trading Strategy Tested | Ali Casey

As an algo trader, I value patterns for their ease of programming and testing, which allows for the development of robust trading strategies. Today, we'll explore bull and bear hooks, patterns that can vary in details but generally serve to catch traders on the wrong side. Toby Crabel, Joe Ross, and Thomas Bulkowski, among others, have variations of these patterns.

Toby Crabel's original definition of the Bull Hook pattern:
» A Bull Hook occurs on Day 2. A Bull Hook is defined as a day with a higher open than the 
previous day's high followed by a lower close with a narrowing daily range. The next day (Day 1), 
a trade is taken on the initial move off the open, preferably to the upside. «
 
Toby Crabel's original definition of the Bear Hook pattern:
  » Bear Hook is a day in which the open is below the previous day's low and the close 
is above the previous day's close with a narrow range relative to the previous day. As implied by 
the name there is a tendency for the price action following a Bear Hook to move to the downside. «

The Bull Hook pattern has two main forms:

Bull Hook 1: In a downtrend, the pattern is identified when today's bar is an up bar with a smaller range than the previous day and is an inside day (high lower, low higher than the previous bar). We buy with a stop order above the high of this bar.
Bull Hook 2: Here, today's bar is a down bar with a smaller range than the previous day, opening above the previous high and closing below the previous close. This pattern involves just two bars.


For testing, I used TradeStation with S&P 500 e-mini futures data. The backtest for Bull Hook 1 was disappointing, showing a loss with only 15 trades, which seemed unusual given its pullback nature. A deeper analysis suggested that the specific conditions, particularly the inside day and green bar requirements, were limiting trades. By removing some conditions, like the inside day and green bar, and focusing on a simpler pullback strategy, the results improved significantly with about 200 trades and positive performance metrics. For Bull Hook 2, the test also yielded fewer trades than expected, which might be attributed to its breakout nature, not performing well on the S&P 500. Simplifying the conditions here also improved the results somewhat, though it remained less effective. The Bear Hook pattern, when flipped for long trades, performed better but still had a low trade count. Removing some conditions and simplifying it increased the trade count and improved performance. While both Bull Hook patterns had potential, their effectiveness was highly dependent on specific conditions and the number of trades generated. Simplifying the patterns often led to better results.

Friday, August 23, 2024

Recent Toby Crabel Price Pattern Setups in the E-mini S&P 500 Futures


 

Wednesday, June 26, 2024

2-Bar Narrow Range Setup | Toby Crabel

2-Bar Narrow Range (2BNRrepresents a condensation of the market concept called congestion or contraction. Contraction is subsumed within the market Principle of Contraction/Expansion which states that the market, having a specific nature, is constantly changing from a period of movement to a period of rest and back to a period of movement. This interchange between the phases of motion and rest are constantly taking place with one phase directly responsible for the other's existence. 2-Bar NR represents this market principle and provides a means of quantifying contraction in any market environment. This is possible because of the open-ended nature of the concept 2-Bar NR. 
 
 2-Bar Narrow Range (2BNR) in the S&P 500 on June 26, 2024.
If the 2-bar range is the narrowest range from high to low of any two day period relative to
any two day period within the previous twenty days, we are sitting on a 2BNR trading setup for June 27.

Because it is not dependent on a constant measurement it represents contraction in a volatile or narrow market period. In other words, contraction is a relative condition that can occur even in a volatile market. Once a market concept is formulated it is tradable. An ORB (Opening Range Breakout) trade is taken the day after the 2-Bar NR formed. An ORB trade is entered at a predetermined amount above or below the opening range (stretch), that is the range of prices that occur in the first 30 seconds to 5, 15 or 30 minutes of trading. 
 
The assumptions are that with a contraction of this type trending action would follow the direction of the breakout, and that because this pattern exhibits a more defined contraction that trending would take place over the next several days also. It is advantageous if the 2-Bar NR is holding at an important angle of support/resistance, including trendlines, when it is formed. Once the market has moved away from the open in one direction after a 2-Bar NR, it should not return to the opening price. If it were to do so, that would disqualify the day as a trend day. Trending action is ideal and is expected after the pattern.
 
[Crabel's ORB system doesn't work in today's markets. Different entry criteria need to be applied.]

Reference: