LazyBear

High-Low Index [LazyBear]

-- Fixed ---
Source: http://pastebin.com/Z0uS17zD

Fixes an issue with "Combined" mode, using wrong symbols.

--- Original ---
The High-Low Index is a breadth indicator based on Record High Percent, which is based on new 52-week highs and new 52-week lows.

Readings below 50 indicate that there were more new lows than new highs. Readings above 50 indicate that there were more new highs than new lows. 0 indicates there were zero new highs (0% new highs). 100 indicates there was at least 1 new high and no new lows (100% new highs). 50 indicates that new highs and new lows were equal (50% new highs).

Readings consistently above 70 usually coincide with a strong uptrend. Readings consistently below 30 usually coincide with a strong downtrend.

More info:
http://stockcharts.com/school/doku.php?i...

List of my public indicators: http://bit.ly/1LQaPK8
List of my app-store indicators: http://blog.tradingview.com/?p=970

Just noticed @Greeny has already published this -> . Linking it here.
즐겨찾기 스크립트에서 빼기 즐겨찾기 스크립트에 넣기
//
// @author LazyBear 
// 
// List of my public indicators: http://bit.ly/1LQaPK8 
// List of my app-store indicators: http://blog.tradingview.com/?p=970 
//
study(title="High-Low Index [LazyBear]", shorttitle="HLIDX_LB")
res=input("D", title="Timeframe")
t=input(defval=1, maxval=2, minval=1, title="MA Type (1=>SMA, 2=>EMA)")
lma=input(defval=10, minval=1, title="MA Length")
mkt = input (defval=1, minval=0, maxval=4, title="Market (0=>AMEX/NASD/NYSE Combined, 1=NYSE, 2=NASDAQ, 3=AMEX, 4=CUSTOM)")
aic=input(defval="MAHE", title="CUSTOM: New Highs Symbol", type=symbol)
dic=input(defval="MALE", title="CUSTOM: New Lows Symbol", type=symbol)
sh=input(false, title="Show only Record High %")
ma(s,l) => sh?s:(t==1?sma(s,l):ema(s,l))
hi="MAHN", lon="MALN" // NYSE
hiq="MAHQ", lonq="MALQ" // NASDAQ
hia="MAHA", lona="MALA" // AMEX
advc="(HIGN+HIGQ+HIGA)/3.0", loc="(LOWN+LOWQ+LOWA)/3.0"
adv=security(mkt==0? advc:mkt == 1? hi:mkt == 2? hiq:mkt == 3? hia:aic, res, close)
lo=security(mkt==0? loc:mkt == 1? lon:mkt == 2? lonq:mkt == 3? lona:dic, res, close)
hli=ma(adv/(adv+lo), lma) * 100
osd=plot(hli<50?hli:50, style=circles, linewidth=0, title="DummyOS")
obd=plot(hli>50?hli:50, style=circles, linewidth=0, title="DummyOB")
ml=plot(50, color=gray, title="MidLine")
fill(osd, ml, red, transp=60, title="OSFill"), fill(obd, ml, green, transp=60, title="OBFill")
plot(hli, color=maroon, linewidth=2, title="HiLoIndex")
Hey is there any way that I can use this script for a different market say Nifty and Sensex in India. If so then could help in making the modifications to the script if possible?
응답
colicoid AnasJamal
@AnasJamal, I too would like this. I want the 52 week high/low index for the Swedish stock market (OMXSTO). If I understand the script correctly it uses a symbol (data feed) that contains the number of 52 week highs for a particular day. If such a symbol/index is not available for your market this script can't help you. We must first create data sets with "number of 52 week highs" and "number of 52 week lows". Then we could point this script to such symbols and it can calulate the percentage. @LazyBear Do I understand this correctly?
+1 응답
So, to understand...do you have to change the "Market" parameter from NYSE to NASD to observe that index?
응답
LazyBear rmwaddelljr
If you want to watch Hi-Lo idx for only NYSE, select MARKET = 1. (2 for NASDAQ, 3 for AMEX).

If you want to see a combined index ( average of NYSE/NASD/AMEX used as source data), select 0.

If you want to view for another market (for ex., OTC), type the corresponding NewLows/NewHighs symbols in the CUSTOM fields and select 4 for MARKET.
+2 응답
rmwaddelljr LazyBear
Thanks
응답
LazyBear rmwaddelljr
yw. Please make sure you have the updated source (from http://pastebin.com/Z0uS17zD) if you want to use combined_index.
+3 응답
rmwaddelljr LazyBear
I did. Thank you.
응답
Line #19 needs fixing. I updated and linked the new source above. This is needed only if you use "Combined" mode, else v1.0 (source shown above) is good enough.

+2 응답
홈으로 스탁 스크리너 포렉스 스크리너 크립토 스크리너 이코노믹 캘린더 사용안내 차트 특징 프라이싱 하우스룰(내부규정) 모더레이터 웹사이트 & 브로커 솔루션 위젯 차팅 솔루션 도움 받기 기능 개발/개선 요청 블로그 & 뉴스 잦은물음 위키 트위터
프로화일 프로화일설정 계정 및 빌링 TradingView Coins 나의 서포트 티켓 도움 받기 공개아이디어 팔로어 팔로잉 비밀메시지 채팅 로그아웃