doughboy

Demand Index

demand index
版本注释: fixed va
版本注释: small details
版本注释: if this is useful to you,
donate: 1MprT7YEEWaM6bUcpD7eeHM3Ht8n3R5jP1
:)
版本注释: changed sma to avg
added option to switch between sma and avg (default is avg)
added zero line
从常用的脚本中删除 添加到常用的脚本
thanks doughboy.
回复
Nicely done.
回复
@doughboy, I am pretty sure the demand index does not use the simple moving average over 10 periods in its calculation (line 25) I, as far as I can tell, believe line 25 should be
va := avg(highest(high,2)-lowest(low,2),10)
a different form of averaging very similar to a fast Tenkan-sen from Ichimoku, anyway, I though you should know. Otherwise I think this is correct in format. Good job making this indicator
Warm regards,
Shiroki
回复
platon ShirokiHeishi
@ShirokiHeishi,
Thanks for your contribution. This formula make it less erratic.
回复
doughboy ShirokiHeishi
ahh yes i think you are right, in reality i think i meant for line 25 to be
va := avg(va, 10)
which would give the same result as what you suggest. thanks
although, comparing the different results i think both could be useful, so i will update with a bool input to choose either sma or avg
回复
I was wondering if this is the James Sibbet Demand index? and if it is, then thank you very much for adding this indicator to the library.
回复
doughboy ShirokiHeishi
@ShirokiHeishi, i got the formula for this indicator from the book John J. Murphy - Technical Analysis Of The Financial Markets
回复
Is it possible to smooth the indicator with a 3 period ema ?
It is not about to overlay a mov avg on the indicator.
回复
doughboy platon
@platon, by default it smooths with a 10 period ema, you can change that value to whatever you want in the settings
回复
首页 股票筛选器 外汇筛选器 加密货币筛选器 财经日历 节目 如何运作 图表功能 价格 网站规则 版主 网站 & 经纪商解决方案 插件 图表解决方案 轻量图表库 帮助中心 推荐朋友 功能请求 博客 & 新闻 常见问题 维基百科 Twitter
概述 个人资料设置 账号和账单 推荐朋友 我的客服工单 帮助中心 已发表观点 粉丝 正在关注 私人消息 聊天 退出