LazyBear

Belkhayate Timing [LazyBear]

--- Update April 11, 2015 ----

I have merged in @TheMighyChicken's code (Thanks!) and added some more options. Updated source here - http://pastebin.com/fVx5Bugi

Changes:
--------------
- Switch between plain candles and colored oscillator candles.
- Switch between candles and plain oscillator view.


--- Original Description ---

Belkhayate Timing, by Mostafa Belkhayate, is very famous in the Forex groups. This is a port from one of the MT4 versions available. If you have used this in other platforms, do let me know if this looks compared to those.

The usage is similar to that of ValueChart (https://www.tradingview.com/v/vqWXNNq2/). The middle area is the centroid or neutral area, the shaded regions (red/green) are extreme and beyond those are AlertZones. This seems to be used in conjunction with his other indicators, but, in my limited testing, I have seen this give a lot of good signals, especially on divergences.

Indicator allows coloring bars based on the oscillator position or show oscillator histogram (Check the options page).

Histogram=ON:

No Oscillator Smoothing:

@TheMightyChicken Can you do your candle magic on this oscillator too, just like you did for ValueChart? :)

More Info:
http://www.forexfactory.com/attachment.p...

List of my public indicators: http://bit.ly/1LQaPK8
List of my app-store indicators: http://blog.tradingview.com/?p=970
오픈 소스 스크립트

진정한 TradingView의 정신에 따라, 이 스크립트의 작성자는 스크립트를 오픈소스로 게시했기에 거래자들이 이해하고 확인할 수 있습니다. 작가님께 건배! 스크립트를 무료로 사용할 수 있지만, 게시물에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 당신은 스크립트를 차트에 사용하기 위해 그것을 즐겨찾기 할 수 있습니다.

차트에 이 스크립트를 사용하시겠습니까?
//
// @author LazyBear 
// 
// List of my public indicators: http://bit.ly/1LQaPK8 
// List of my app-store indicators: http://blog.tradingview.com/?p=970 
//

study("Belkhayate Timing [LazyBear]", shorttitle="BT_LB", overlay=false)
showHLC=input(true, title="Smooth Osc?"), showHisto=input(false, title="Show Histogram?")
Range1=input(4), Range2=input(8), ebc=input(false, title="Enable Barcolors")
middle = (((high + low) / 2) + ((high[1] + low[1]) / 2) + ((high[2] + low[2]) / 2) + ((high[3] + low[3]) / 2) + ((high[4] + low[4]) / 2)) / 5
scale = (((high - low) + (high[1] - low[1]) + (high[2] - low[2]) + (high[3] - low[3]) + (high[4] - low[4])) / 5) * 0.2
h = (high - middle) / scale
l = (low - middle) / scale 
o = (open - middle) / scale
c = (close - middle) / scale
ht=showHLC?avg(h, l, c):c
plot(0, title="ZeroLine", color=gray)
l1=plot(Range1, title="SellLine1", color=gray)
l2=plot(Range2, title="SellLine2", color=gray)
l3=plot(-Range1, title="BuyLine1", color=gray)
l4=plot(-Range2, title="BuyLine2", color=gray)
fill(l1,l2,red, title="OBZone"), fill(l3,l4, lime, title="OSZone")
plot(showHisto?ht:na, style=histogram, title="BTOscHistogram", linewidth=1, color=ht>0?green:red) 
plot(ht, style=line, title="BTOsc", linewidth=3, color=gray) 
bc=ht>0?(ht>=Range2?blue:(ht>=Range1?green:lime)):(ht<=-Range2?blue:(ht<=-Range1?maroon:red))
barcolor(ebc?bc:na)
plot(ht, style=linebr, title="BTOsc", linewidth=3, color=gray) 
List of my free indicators: http://bit.ly/1LQaPK8
List of my indicators at Appstore: http://blog.tradingview.com/?p=970

코멘트

we need belkhayate regression curve
+6 응답
LB, imo your InSync indicator blows this one out of the water.

I'm looking forward to you publishing the Shadow Channels indicator and will be happy to top up your tip jar again when I get it.
+1 응답
LazyBear Futuraman
+1, Insync is a very good one, I agree.

ShadowChannel is in the queue, will publish soon :)
+1 응답
manamemeemee Futuraman
@Futuraman, I'm intrested in shadow channels, but I can't find anything about them on the Internet... Can you tell me more about it ?
응답
drrumpy manamemeemee
@manamemeemee, Did you ever find any additional information on this cool indi LB was working on?
응답
@drrumpy, nope
응답
Thanks @TheMightyChicken.

I have merged in the code and added some more options. Updated source here - http://pastebin.com/fVx5Bugi

Changes:
--------------
- Switch between plain candles and colored oscillator candles.
- Switch between candles and plain oscillator view.

+1 응답
Here you go. :)

// Body
bHigh = o > c ? o : c
bLow = o < c ? o : c
b0 = (o > 0 and c > 0) or (o > 0 and c < 0) ? bHigh : (o < 0 and c < 0) or (o < 0 and c > 0) ? bLow : 0
b1 = o < 0 and c > 0 ? bHigh : o > 0 and c < 0 ? bLow : 0
bCover = o > 0 and c > 0 ? bLow : o < 0 and c < 0 ? bHigh : 0
plot(b0, linewidth=3, color=silver, style=histogram)
plot(b1, linewidth=3, color=silver, style=histogram)
plot(bCover, linewidth=3, color=white, style=histogram)
// Wick
w0 = h > 0 ? h : l
w1 = h > 0 and l < 0 ? l : h
wCover = h > 0 and l > 0 ? l : h < 0 and l < 0 ? h : 0
plot(w0, linewidth=1, color=silver, style=histogram)
plot(w1, linewidth=1, color=silver, style=histogram)
plot(wCover, linewidth=1, color=white, style=histogram)
+1 응답
PoshTrader PoshTrader
For some reason I can't write entire script here. I sent you pm.
+2 응답
@tmc, plz send the script to me
응답
홈으로 스탁 스크리너 포렉스 스크리너 크립토 스크리너 이코노믹 캘린더 정보 차트 특징 프라이싱 프렌드 리퍼하기 하우스룰(내부규정) 헬프 센터 웹사이트 & 브로커 솔루션 위젯 차팅 솔루션 라이트웨이트 차팅 라이브러리 블로그 & 뉴스 트위터