PineCodersTASC

TASC 2022.12 Short-Term Continuation And Reversal Signals

PineCodersTASC Cập nhật   
█ OVERVIEW

TASC's December 2022 edition Traders' Tips includes an article by Barbara Star titled "Short-Term Continuation And Reversal Signals". This is the code that implements the concepts presented in this publication.


█ CONCEPTS

The article takes two classic indicators, the Commodity Channel Index (​CCI) and the Directional Movement Indicator (DMI), makes changes to the traditional ways of visualizing their readings, and uses them together to generate potential signals. The author first discusses the benefits of converting the ​DMI indicator to an oscillator format by subtracting the ​−​DI from the ​+​DI, which is then displayed as a histogram. Next, the author shows how the use of an on-chart visual framework (i.e., choosing the line style and color, coloring price bars, etc.) can help traders interpret the signals produced the considered pair of indicators.


█ CALCULATIONS

The article offers the following signals based on the readings of the ​DMI and ​CCI pair, suitable for several types of trades:

• Short-term trend change signals:
A ​DMI oscillator above zero indicates that prices are in an uptrend. A DMI oscillator below the zero line and falling means that selling pressure is dominating and price is trending down. The sign of the ​DMI oscillator is indicated by the color of the price bars (which correlates with the color of the ​DMI histogram). Namely, green, red and grey price bars correspond to the DMI oscillator above, below and equal to zero. Colored price bars and the ​DMI oscillator make it easy for trend traders to recognize changes in short-term trends.

• Trend continuation signals:
Blue circles appear near the bottom of the oscillator chart border when the ​​DMI is above the zero line and the price is above its simple moving average in an uptrend. Dark red circles appear near the top of the chart in a downtrend when the ​DMI oscillator is below its zero line and below the 18-period moving average. Trend continuation signals are useful for those looking to add to existing positions, as well as for traders waiting for a pullback after a trend has started.

• Reversal signals:
The ​CCI signals a reversal to the downside when it breaks out of its +100 and then returns at some point, crossing below the +100 level. This is indicated by a magenta-colored diamond shape near the top the chart. The ​CCI signals a reversal to the upside when it moves below its −100 level and then at some point comes back to cross above the −100 level. This is indicated by a yellow diamond near the bottom of the chart. Reversal signals offer short-term rallies for countertrend traders as well as for swing traders looking for longer-term moves using the interplay between continuation and reversal signals.
Phát hành các Ghi chú:
added an option to disable the coloring of price bars

Tools and ideas for all Pine coders: www.tradingview.com/u/PineCoders/
Pine news broadcasts: t.me/PineCodersSquawkBox or twitter.com/PineCoders
TASC: traders.com/
Mã nguồn mở

Với tinh thần TradingView, tác giả của tập lệnh này đã xuất bản nó dưới dạng mã nguồn mở, vì vậy các nhà giao dịch có thể hiểu và xác minh nó. Chúc mừng tác giả! Bạn có thể sử dụng mã này miễn phí, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?