QuantCT

ACD - Layers 1 & 2

QuantCT 已更新   
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.
版本注释:
- Fix for setting OR time range.
- Fix for drawing A and C lines.
版本注释:
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
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?