LazyBear

Range Identifier [LazyBear]

---- May 05 2015 -----

Added support for filtered ranges:
RID V3 : http://pastebin.com/Z11JYVQK

RIDv3 has full backward compatibility (!?), meaning all my descriptions below still apply for V3.
-- In addition, I have added a NON-OVERLAY mode, which can be put in its own pane, that shows the number of bars in the current range.
-- in Overlay mode, you can switch on/off filtering ranges based on the bar count.

Sample chart:

---- April 30 2015 -----

Updated the source to show a connected Midline only when ConnectRanges option is enabled.
Updated src: http://pastebin.com/xgweVbrC

Sample chart:

---- Original Desc ----

This is a simple indicator that highlights the price ranges. Very helpful in determining a breakout.

There are many ways to incorporate this in to your strategy. One simple idea could be to buy if the price breaks above a range, when above the specified EMA , and to SELL when it breaks down from a range below the EMA .

All options are configurable. Alerts can be setup using the specified plot names.

By default it shows only the ranges, but can be configured to show the full "channel". Chart below shows connected ranges with highlights ON.

Range highlighting can be turned OFF. Chart below shows that:

Note for the pine coders:
As you probably noticed in the charts above, single range is showing 2 colors(red/green). Fill() doesn't accept a series for colors, so I worked around this using two fill() statements with a moving DUMMY line, to get this mixed color effect.

List of my public indicators: http://bit.ly/1LQaPK8
List of my app-store indicators: http://blog.tradingview.com/?p=970
즐겨찾기 스크립트에서 빼기 즐겨찾기 스크립트에 넣기
//
// @author LazyBear 
// 
// List of my public indicators: http://bit.ly/1LQaPK8 
// List of my app-store indicators: http://blog.tradingview.com/?p=970 
//
//
study("Range Identifier [LazyBear]", shorttitle="RID_LB", overlay=true)
connectRanges=input(false, title="Connect Ranges")
showMidLine=input(false, title="Show MidLine")
lengthEMA=input(34, title="EMA Length")
showEMA=input(true, title="Show EMA")
hc=input(true, title="Highlight Consolidation")
e=ema(close,lengthEMA)
up = close<nz(up[1]) and close>down[1] ? nz(up[1]) : high
down = close<nz(up[1]) and close>down[1] ? nz(down[1]) : low
mid = avg(up,down)
ul=plot(connectRanges?up:up==nz(up[1])?up:na, color=gray, linewidth=2, style=linebr, title="Up")
ll=plot(connectRanges?down:down==nz(down[1])?down:na, color=gray, linewidth=2, style=linebr, title="Down")
dummy=plot(hc?close>e?down:up:na, color=gray, style=circles, linewidth=0, title="Dummy")
fill(ul,dummy, color=lime)
fill(dummy,ll, color=red)
plot(showMidLine?mid:na, color=gray, linewidth=1, title="Mid")
plot(showEMA?e:na, title="EMA", color=black, linewidth=2)
How hard would it be to replicate what you're doing here in cTrader?
응답
AlexMihail AlexMihail
Question still stands :P @LazyBear
응답
@AlexMihail, bro he hasnt been around since 2015, dont hold your breath for a reply
응답
theheirophant theheirophant
@theheirophant, Not to mention you know how many message LB probably still gets per day? Instead of asking how hard, just try to convert it. :)
응답
how about a filter "area in which at least X bars" ?
For example at least 5 bars Range
http://jpegshare.net/15/12/1512b6bc6453af02540353f2c83a4077.gif.html
응답
LazyBear yoshio.kodama.90
This cannot be done now, using the documented APIs, definitely not in realtime.
응답
LazyBear LazyBear
May be another pane showing the count of bars inside the range and marking the invalid ones...this might work.
응답
in this case .... maybe possible to realize color setting?
For example, if the filter is set to 5 bars in range.
Zones in which less than 5 bars are painted a dull color, and areas where the 5 bars and more, painted a bright color
응답
LazyBear yoshio.kodama.90
I really like the features you are suggesting :)

Here's an updated version: http://pastebin.com/Z11JYVQK (I am gonna release this as a separate indicator as the feature set delta from original has exploded!)

Sample chart:


RIDv3 has full backward compatibility (!?), meaning all my descriptions above still apply for V3.
-- In addition, I have added a NON-OVERLAY mode, which can be put in its own pane, that shows the number of bars in the current range.
-- in Overlay mode, you can switch on/off filtering ranges based on the bar count.

Lot of customization possible, hope this helps you in your trades.
+1 응답
Thank you for your work! )
응답
홈으로 스탁 스크리너 포렉스 스크리너 크립토 스크리너 이코노믹 캘린더 사용안내 차트 특징 프라이싱 하우스룰(내부규정) 모더레이터 웹사이트 & 브로커 솔루션 위젯 차팅 솔루션 라이트웨이트 차팅 라이브러리 헬프 센터 프렌드 리퍼하기 기능 개발/개선 요청 블로그 & 뉴스 잦은물음 위키 트위터
프로화일 프로화일설정 계정 및 빌링 프렌드 리퍼하기 나의 서포트 티켓 헬프 센터 공개아이디어 팔로어 팔로잉 비밀메시지 채팅 로그아웃