cheatcountry

Ehlers Adaptive Commodity Channel Index V1 [CC]

The Adaptive Commodity Channel Index V1 was created by John Ehlers (Rocket Science For Traders pgs 236-237) and this is the typical Commodity Channel formula with the introduction of adaptive lengths based on his earlier work with indicators such as the Mother of Adaptive Moving Averages. For longer term signals you would get a bullish signal when CCI is above 0 and a bearish signal when CCI falls below 0. For shorter term signals you would get a bullish signal when crosses over it's overbought level or when it crosses above it's oversold level or vice versa. I have included both signals to make it easier.

Let me know if you want a custom script written or if you have a special request for me
Phát hành các Ghi chú: trying to fix an issue with the label location
Phát hành các Ghi chú: fixed a typo
Phát hành các Ghi chú: had to fix the issue again because the save didn't go through
Gỡ bỏ khỏi Script Ưa thích Add to favorite indicators

Bình luận

Hi @cheatcountry , is it a bug, the scale it shown 0 to (near stock price range) on my pane, instead of -200 to 200 ?
+1 Phản hồi
@MasBart, can you send me a pm with a screenshot so I can see what you are talking about?
+1 Phản hồi
MasBart cheatcountry
@cheatcountry, pm sent
+1 Phản hồi
wroclai cheatcountry
@cheatcountry, You have the buy/sell plotshapes plotting above/below bar. It looks fine within the $200 price range in your screenshot. If used on a instrument with a higher price like BTC, the oscillator looks squished because it is centered on 0 but the plotshapes are plotting around the 12000 price range.
+1 Phản hồi
@wroclai, thanks for the info. I made a change that will fix that
+1 Phản hồi
MasBart cheatcountry
@cheatcountry, it's fixed now. Thanks
+1 Phản hồi
I just went through the script, some comments as below:

1. "period := im != 0 and re != 0 ? 360 / atan(im / re) : 0" , I understand "360 " here should be changed into "2*pi".

2. "period := im != 0 and re != 0 ? 360 / atan(im / re) : 0
period := min(max(period, 0.67 * nz(period)), 1.5 * nz(period))
period := min(max(period, 6), 50)
period := (0.2 * period) + (0.8 * nz(period))" , the order of 'period' assignment, i remember "min 1.5 * nz(period)" should be first handled. However, i am not sure whether it will contribute to different results or not.

3. "length = ceil(cycPart * smoothPeriod)", 'ceil' function here should be 'round', but when i changed it, pine reported an error of nagtive value. I have no idea why this happen.

could you look into them and check whether they are valid or not? thanks in advance!
Phản hồi
thanks for sharing this, really appreciate :D
Phản hồi
Trang chủ Bộ lọc cổ phiếu Bộ lọc Forex Bộ lọc Tiền điện tử Lịch kinh tế Cách thức hoạt động Tính năng Biểu đồ Trả phí Giới thiệu bạn Quy tắc Áp dụng Trung tâm Trợ giúp Giải pháp cho Website & Nhà môi giới Widget Giải pháp biểu đồ Thư viện Biểu đồ Lightweight Blog & Tin tức Twitter
Hồ sơ Tùy chỉnh Hồ sơ Tài khoản và Thanh toán Giới thiệu bạn Xu Ticket Hỗ trợ của tôi Trung tâm Trợ giúp Các ý tưởng đã đăng Người theo dõi Đang theo dõi Tin nhắn riêng Trò chuyện Đăng xuất