找回密码
 注册
搜索
查看: 422|回复: 6

[讨论] Congestion Index (CI)

[复制链接]
发表于 2009-8-18 07:11 PM | 显示全部楼层 |阅读模式


another indicator for volatility. code written in tradestation.
CI above 20 considered up trend, CI below 20 considered downtrend, in between considered range.
i use to combine with other indicators to write strategy.


code:
input: length(NumericSeries);
variable: CI(0);


value1 = 100*percentchange(close, length);
value2 = (highest(high, length)-lowest(low, length))/lowest(low, length);

CI = iff(value2=0,0,value1/value2);

CongestionIndex = xaverage(CI, 3);
CongestionIndex.jpg
发表于 2009-8-18 08:05 PM | 显示全部楼层
Thanks for sharing.  Would you mind if I ask what the length I should use for a daily chart?
回复 鲜花 鸡蛋

使用道具 举报

 楼主| 发表于 2009-8-18 08:12 PM | 显示全部楼层
Thanks for sharing.  Would you mind if I ask what the length I should use for a daily chart?
snowball2009 发表于 2009-8-18 21:05

it depends on ur needs, i use different days in different strategy, 10, 15 or 21 for short term
回复 鲜花 鸡蛋

使用道具 举报

发表于 2009-8-18 08:23 PM | 显示全部楼层
3# black


"it depends on ur needs, i use different days in different strategy, 10, 15 or 21 for short term"

You meant 21 is for minute/hour charts?  By the way, This is a helpful indicatior when used with other indicators.  One observation I had by just ploting to my charts is that the trend of the indicator might be more telling than the value of indicator itself.  Thanks again for sharing.
回复 鲜花 鸡蛋

使用道具 举报

 楼主| 发表于 2009-8-18 08:33 PM | 显示全部楼层
3# black


"it depends on ur needs, i use different days in different strategy, 10, 15 or 21 for short term"

You meant 21 is for minute/hour charts?  By the way, This is a helpful indicatior w ...
snowball2009 发表于 2009-8-18 21:23

21 is average trading days for a month, i use it on daily chart.
回复 鲜花 鸡蛋

使用道具 举报

发表于 2009-8-18 08:34 PM | 显示全部楼层
re
回复 鲜花 鸡蛋

使用道具 举报

发表于 2009-8-19 06:50 PM | 显示全部楼层
thx, ding
回复 鲜花 鸡蛋

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|www.hutong9.net

GMT-5, 2025-3-9 08:29 AM , Processed in 0.072301 second(s), 17 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表