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
版本注释: trying to fix an issue with the label location
版本注释: fixed a typo
版本注释: had to fix the issue again because the save didn't go through
从常用脚本中删除 添加到常用脚本

评论

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 回复
@MasBart, can you send me a pm with a screenshot so I can see what you are talking about?
+1 回复
MasBart cheatcountry
@cheatcountry, pm sent
+1 回复
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 回复
@wroclai, thanks for the info. I made a change that will fix that
+1 回复
MasBart cheatcountry
@cheatcountry, it's fixed now. Thanks
+1 回复
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!
回复
thanks for sharing this, really appreciate :D
回复
首页 股票筛选器 外汇筛选器 加密货币筛选器 财经日历 如何运作 图表功能 价格 推荐朋友 网站规则 帮助中心 网站 & 经纪商解决方案 插件 图表解决方案 轻量图表库 博客 & 新闻 Twitter
概览 个人资料设置 账户和账单 推荐朋友 代币 我的客服工单 帮助中心 已发表观点 粉丝 正在关注 私人消息 在线聊天 退出