Demand Index

demand index
Jul 18
릴리즈 노트: fixed va
Jul 18
릴리즈 노트: small details
Jul 18
릴리즈 노트: if this is useful to you,
donate: 1MprT7YEEWaM6bUcpD7eeHM3Ht8n3R5jP1
Sep 17
릴리즈 노트: 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,
platon 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
홈으로 스탁 스크리너 포렉스 스크리너 크립토 스크리너 이코노믹 캘린더 사용안내 차트 특징 프라이싱 하우스룰(내부규정) 모더레이터 웹사이트 & 브로커 솔루션 위젯 차팅 솔루션 라이트웨이트 차팅 라이브러리 헬프 센터 프렌드 리퍼하기 기능 개발/개선 요청 블로그 & 뉴스 잦은물음 위키 트위터
프로화일 프로화일설정 계정 및 빌링 프렌드 리퍼하기 나의 서포트 티켓 헬프 센터 공개아이디어 팔로어 팔로잉 비밀메시지 채팅 로그아웃