1. Home
  2. Docs
  3. DLPAL DQ
  4. An introduction to price action anomalies

An introduction to price action anomalies

Definition: A price action anomaly involves a proper combination of price action features that are based on price action primitive attributes (O,H,L,C) in a given lookback period. Below is an example of a combination of features for a 3-bar lookback period.

       Figure 1.

There are three consecutive bars labeled 0, 1 and 2 in figure 1. The most recent bar in the formation, bar 0, is also called “today”. Bar 1 is called “yesterday” and bar 2 is called “2 days ago”, and so on.

Each bar has Open, High, Low and Close price. In the example above, it is easy to see that the close of the last bar, or close of today, is higher than the high of bar 2, or the high of 2 days ago. This may be expressed as:

Close of today > High of 2 days ago

Using the same reasoning one may notice that:

Close of 2 days ago > High of yesterday

If the same reasoning is followed, a complete description of the price action formation shown above is obtained:

High of today > Close of today AND
High of 2 days ago > Close of 2 days ago AND
Open of today > Low of today AND
Close of today > High of 2 days ago AND
High of yesterday > Open of yesterday AND
Low of today > Open of 2 days ago AND
Open of 2 days ago > Low of 2 days ago AND
Close of yesterday > Low of yesterday AND
Open of yesterday > Open of today AND
Close of 2 days ago > High of yesterday AND
Low of 2 days ago > Close of yesterday

The set of the eleven inequalities are the price action features and define a price action formation shown above apart from any ambiguity. Using this description of the formation in Figure 1 it is possible to test for occurrences price action data. In fact, any price action formation made of three consecutive price bars is a candidate before a matching is made. If any of the inequalities in the set is not satisfied, then there is no match.

The price action features that define the formation in Figure 1 can be combined with appropriate risk management, trade entry point, trading time frame and market selection to create a strategy. Here is an example:

Time frame: daily, Market: XYZ Stock
If High of today > Close of today AND
High of 2 days ago > Close of 2 days ago AND
Open of today > Low of today AND
Close of today > High of 2 days ago AND
High of yesterday > Open of yesterday AND
Low of today > Open of 2 days ago AND
Open of 2 days ago > Low of 2 days ago AND
Close of yesterday > Low of yesterday AND
Open of yesterday > Open of today AND
Close of 2 days ago > High of yesterday AND
Low of 2 days ago > Close of yesterday then
Buy tomorrow on the open 1 contract with profit target at the entry price + 2% and stop-loss at the entry price – 2%

With the concept just illustrated, price action can be modeled using he primitive attributes O,H,L,C and features extracted from them can be coded, tested and used to generate trading signals.