Key Intraday Levels

Included is the current open, previous high, Low, Close, and the gap is highlighted.
릴리즈 노트: Updated so the script only shows on intraday charts.
즐겨찾기 스크립트에서 빼기 즐겨찾기 스크립트에 넣기


I would like to hide have only previous day levels and not historical levels. Rather weekly levels could be of great help. Can u advise
Craig_Stine krishna2509
@krishna2509, I am not sure how to script it to get rid of the historical data. I just find things in scripts and put them together to try to create what I want and I couldnt figure that out. I did just publish a script for a weekly version for you linked below. But all you have to do is change all the 'D' in the section below to 'W' and it will work for weekly. You could also do monthly by putting a 'M'.

//Current Open/Previous High,Low,Close
cdo = security(tickerid, 'D', open)
pdc = security(tickerid, 'D', close)
pdh = security(tickerid, 'D', high)
pdl = security(tickerid, 'D', low)

krishna2509 Craig_Stine
@Craig_Stine, thanks for the prompt reply. Got help from other scripts and modified to this.

plot(pdc, title="Prev Close", style=line, linewidth=1, color=closecolour,show_last=1, trackprice=true, offset=offset_val)

show_last =1 is the key here.
What instrument and timeframe is shown?
Craig_Stine syracusepro
@syracusepro, The chart is of the SPY on a 15 min. time frame but this script can be used with any intraday time frame. The script plots lines for the current day open, previous day high, previous day low, and previous day close. The overnight gap is highlighted red or green depending on if it was a gap up or gap down. Hope that helps.
홈으로 스탁 스크리너 포렉스 스크리너 크립토 스크리너 이코노믹 캘린더 사용안내 차트 특징 프라이싱 프렌드 리퍼하기 하우스룰(내부규정) 헬프 센터 웹사이트 & 브로커 솔루션 위젯 차팅 솔루션 라이트웨이트 차팅 라이브러리 블로그 & 뉴스 트위터
프로화일 프로화일설정 계정 및 빌링 리퍼드 프렌즈 코인 나의 서포트 티켓 헬프 센터 공개아이디어 팔로어 팔로잉 비밀메시지 채팅 로그아웃