OPEN-SOURCE SCRIPT

coates moving averages (cma)

This indicator uses three moving averages:

2 period low simple ma
2 period high simple ma
9 period least squares ma

The trend is determined by the angle of the moving averages, current close relative the the 9 least squares ma (lsm) and the current close relative to the prior two periods high and low.

When there are consecutive closes inside the prior two candles high and low then a range is signaled:

ảnh chụp nhanh


In ranges the buy zone is between the lowest low and the lowest close of the current range. The sell zone is between the highest high and the highest close. The zones are adjusted as long as the new close is within the prior two candles range:

ảnh chụp nhanh


When price closes above the 2 high ma and the 9 lsm then a bull trend is signaled if all moving averages are angled upward (as seen at #4 in the chart above and #1 the chart below ). If the 9 lsm and / or the 2 low ma continue to angle downward, following a close above the 2 high ma and 9 lsm, then a prolonged range or reversal is expected (#2 in the chart below):

ảnh chụp nhanh

During a bull trend the buy zone is between the 2 low ma and the 9 lsm. The profit target is the 2 high ma:

ảnh chụp nhanh

During dip buying opportunities price should resist closing below the 9 lsm. If there is one close below the 9 lsm then it is a canary in the coalmine that tells us to proceed with caution. This will often signal a range, based on the conditions outlined above. To avoid a prolonged range, or reversal, price needs to immediately react in the direction of the prevailing trend:

ảnh chụp nhanh

ảnh chụp nhanh


If the moving averages are angled down and the most recent close is below the 2 low ma and 9 lsm then trend is fully bearish:

ảnh chụp nhanh

During a bear trend the short zone is between the 2 high ma and 9 lsm. The profit target is the 2 low ma:

ảnh chụp nhanh

When the 2 high ma angles down and the 2 low ma angles up while price closes inside both mas then it indicates a cma squeeze:

ảnh chụp nhanh

Volatility is expected in the direction of the breakout following the squeeze. In this situation traps / shakeouts are common. If there is a wick outside the cma, with a close inside, then it indicates a trap / shakeout. If there is a close outside the 2 high / low ma then it signals a breakout.

ảnh chụp nhanh

A trend is considered balanced when the 9 lsm is roughly equidistant from the 2 low and 2 high mas. If the 9 lsm crosses the 2 high or 2 low ma then it signals exhaustion / imbalance.

ảnh chụp nhanh

For a stop loss I use the prior three periods low, for bull trends, and the prior three periods high for bear trends. I would expect other reliable stops, such as the parabolic sar or bill williams fractal, to be effective as well. The default moving averages should be very effective on all timeframes and assets classes, however this indicator was developed for bitcoin with a focus on higher timeframes such as the 4h, daily and weekly.

As with any other technical indicator there will be bad signals. Proceed with caution and never risk more than you are willing to lose.





buyandsellsignalMoving AveragesstoplossSupport and ResistanceTrend Analysis

Mã nguồn mở

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

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


emasar Indicator is available for purchase at alphanalysis.io/product/emasar/
Ngoài ra, trên:

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