PROTECTED SOURCE SCRIPT

Ultimate MACD (UMACD) [cI8DH]

Cập nhật
Ultimate MACD (UMACD) includes True MACD fix, normalized MACD, multi time frame, bar coloring, and false cross avoidance options. It can also replicate Bill Williams Awesome Oscillator and Accelerator Oscillator. By default, this indicator is configured to work like the built-in MACD indicator. You need to customize it to your liking. Chart below shows example multi time frame setup.

ảnh chụp nhanh

True MACD and normalization
True MACD fix is similar to True RSI fix. The chart below proves that MACD is asymmetrical. This issue is most visible when analyzing charts across wide price ranges. It shows a logical problem in MACD, and most other indicators, as they can give you conflicting signals. For example, it can show long signal for both TRYUSD and its inverse pair USDTRY simultaneously. True MACD fixes this issue as shown in the chart below. Interestingly, this fix also normalizes MACD which is a major improvement upon regular MACD. (FYI, True MACD fix uses a different mechanism than my previous NMACD indicator.)

ảnh chụp nhanh

Avoiding false signals
This feature is very useful to avoid trading during sideways. To use this feature, set the std deviation multiplier option to a number greater than 1. I did some backtests on BTC chart with contract size set to 100% equity. It showed significant improvements for the time frames that I tested. (std deviation multiplier set to 1.5 @1h TF: 4x improvements, @2h: near 2x, 0.7 @4h: 2x, 0.4@12h: 3x, 0.4daily: 1.5x). I also backtested True MACD fix separately and it showed significant improvement for most time frames.

Bar coloring
Bar coloring works similar to my previous indicators, Ultimate Money Flow and Ultimate RSI, and is subject to change in the future.

Bill Williams Awesome Oscillator and Accelerator Oscillator
Chart below both validates calculations in this indicator and also shows you how you can replicate Bill Williams AO indicators. You can apply all the features added to MACD to these indicators.

ảnh chụp nhanh

Here is a TL;DR list of my indicators to save you some time from looking at my obsolete indicators.

TLDR list of my latest indicators


PS: I might publish the asymmetry fix as True MACD or as a general fix to all price-based indicators as an open source script in the future.
Phát hành các Ghi chú
- a minor fix for unsupported resolution
Phát hành các Ghi chú
- changed bar coloring mechanism when both TFs are enabled. Now colors change when both TFs agree, otherwise previous color remains.
- added visual cues for grouping items in the settings
Phát hành các Ghi chú
-
Phát hành các Ghi chú
-
Accelerator Oscillator (AC)Awesome Oscillator (AO)Moving Average Convergence / Divergence (MACD)normalized-macdnormalizedmacdtrue-macdtruemacd

Mã được bảo vệ

Tập lệnh này được xuất bản mã nguồn đóng và bạn có thể sử dụng một cách tự do.

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


Ngoài ra, trên:

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