QuantCT

ACD - Layers 1 & 2

QuantCT Updated   
An implementation of layers 1 & 2 of ACD strategy of Mark Fisher, based on the book "The Logical Trader".

This implementation contains:
- OR lines
- A lines
- C lines
- Daily pivot range
- N days pivot range
- Customizable trading session

Strategy summary (This implementation):

There is 3 main concepts, each of which represented as two price levels.

1) OR (Opening Range) is the range of the first bar of the day. In other words, it's just "high - low" of the first resolution (usually 15min.) bar of the day. So, OR lines (Aqua color) visualize this range for each trading session.

As stated by Mark Fisher in his book, this range is meant to be a statistically significant range such that when price breaks the range in one direction, This is UNUSUAL to infiltrate it again AND break through the other side. So we can consider it as a potential enter signal (long or short).

2) A lines (Blue color) are drawn above and below OR lines with difference of 10% 0f 10 days ATR. The ATR period and the A multiplier (usually 10%) is customizable.

3) C lines (Gray color) are drawn above and below OR lines at 15% of 10 Days ATR difference. These lines help detecting AND confirming that UNUSUAL situation.

These concepts form the layer 1, which you can spot potential opportunities with it.

There is also two ranges to show support and resistance levels based on price action of previous days. Pivot ranges are rolling ranges that calculated and last for each day separately. They only differ in calculation period - the first one is daily (yellow color area) and the other one (red color area) is customizable, but is usually 3 or 5 days.
Each range consists of two price levels, valid for the current trading session. One of theme is HL2 , and the other one is "HLC3 + abs(HLC3 - HL2 )".

These two ranges, "Daily pivot range" and "N days pivot range", form the layer 2, which you can see them as two dynamic support/resistance ranges - one for daily, and the other for N days. They help filtering opportunities spotted from layer 1.

There is 2 more layers in the ACD strategy, which is omitted in this free implementation.
Release Notes:
- Fix for setting OR time range.
- Fix for drawing A and C lines.
Release Notes:
Release notes:
  • Making OR independent of chart timeframe: Now you can set the beginning time of OR and minutes used to calculate OR high/low
  • Adding a table to show indicator values and as a guide for line colors.
  • Adding plot titles (line names) to the Style tab, in order to customize them easily.
  • Fixed n-days pivot bug.
  • Making the session 24x7 and removing its check box.

Regards,
Amin Saqi
www.linkedin.com/in/aminsaqi
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?