BonBoBin

auto_HLC_levels

-
오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?
study("auto_HLC_lelels")

//Description in ENGLISH
//         &
//Описание    на РУССКОМ  



//=========================================
//English - Description how indicator works
//=========================================
//The indicator does price values HLC(closed bar - previous of the current bar) higher timeframes(TF) (MN1,W1,D1) in the form of horizontal levels (by price values: HIGH,LOW,CLOSE)
//and color fill between the price range (HIGH-CLOSE, CLOSE-LOW - of one TF: MN1 or W1 or D1) on the lower timeframes ---> M15,M60,M240(for THIS TF levels are taken from the: MN1,W1,D1)
//and also on D1(for THIS TF levels are taken from the: MN1,W1) and an additional W1(for THIS TF levels are taken from the: MN1). Convenience is that every day the indicator will generate 
//levels are strong enough support for trading including both: entering a trade or search exit a trade.

//================IMPORTANT================
//Upon application level creates a situation of loss of significance level (two levels of matching more than one) herefore, despite the fact that the styles and levels of fill ranges are made so that would always see the overlay
//- highly recommend to install in the chart properties "Indicator last Value" and "Indicator Labels":
//right click in price chart -> Properties -> Scales -> switch On "Indicator last Value" and switch On "Indicator Labels".

//================ADVERTISMENT=============
//This indicator is also implemented on platforms: "Metatrader 5" и "Metatrader 4". Сontact me - yzh@mail.ru



//=========================================
//Русский язык - Описание работы индикатора
//=========================================
//Индикатор наносит ценовые значения HLC(закрытого бара - то есть предыдущего) старших таймфреймов (MN1,W1,D1) в виде горизонтальных уровней (ценовых значений: HIGH,LOW,CLOSE)
//и цветовой заливки между ценовыми диапазонами (HIGH-CLOSE, CLOSE-LOW - одного ТФ: MN1 или W1 или D1) на младшие таймфреймы ---> M15,M60,M240(для ЭТИХ ТФ уровни из MN1,W1,D1)
//а также на D1(для ЭТИХ ТФ уровни из MN1,W1)и на W1(для ЭТИХ ТФ уровни из MN1), ежедневно формируя при этом уровни предстваляющие собой сильное сопротивление, или поддержку
//- хорошее подспорье для торговли от этих уровней (либо как точки выхода).

//================ВАЖНО====================
//При наложении ценовых значений разных таймфреймов создается ситуация недооценивания уровня (не видно что под одним уровнем на самом деле два или более) поэтому, 
//не смотря на то, что стили оформления уровней и заливки диапазонов сделаны так, что бы всегда видеть наложения - настоятельно рекомендую установить в свойствах
//графика отображать лейбл индикаторов и их ценовое значение на шкале:
// Щелкните правой кнопкой мышки по ценовому графику -> Свойства -> Шкалы -> включить "Маркер последнего значения индикатора", включить "Отображать имя индикатора на шкале".

//================ОБЪЯВЛЕНИЕ===============
//Данный индикатор так же реализован на платформах: "Metatrader 5" и "Metatrader 4". Свяжитесь со мной - yzh@mail.ru
//=========================================



//=========================================
//Style mode switches
//=========================================
//Graphic mode's switch for M15/H1/H4
var_15      = period=="15"
var_60      = period=="60"
var_240     = period=="240"
var_15to240 = var_15 or var_60 or var_240
//Graphic mode's switch for  W1
var_W1  = period=="W"
//=========================================



//=========================================
//Construction levels and filling range
//=========================================

//Style setting Month's levels - for ALL 
j7 = plot(security(ticker, "M", sma(close[1],1)),                     color=yellow,  title="M(C)", style=line,    linewidth=2,  transp=0)
j8 = plot(security(ticker, "M", sma( high[1],1)),                     color=#0000FF, title="M(H)", style=circles, linewidth=2,  transp=0)
j9 = plot(security(ticker, "M", sma(  low[1],1)),                     color=#970000, title="M(L)", style=circles, linewidth=2,  transp=0)
//Style setting Month's filling range - for ALL
fill(j7, j8, color=yellow, title="Fill_Month(H-C)",                                                                            transp= 75)
fill(j7, j9, color=yellow, title="Fill_Month(C-L)",                                                                            transp= 75)

//Style setting Week's levels - for all but the W1
j4 = plot( not var_W1 ? security(ticker, "W", sma(close[1],1))   : na, color=black,   title="W(C)", style=line, linewidth=2,   transp=  0)
j5 = plot( not var_W1 ? security(ticker, "W", sma( high[1],1))   : na, color=#FF00FF, title="W(H)",                            transp=  0)
j6 = plot( not var_W1 ? security(ticker, "W", sma(  low[1],1))   : na, color=#BF9000, title="W(L)",                            transp=  0)
//Style setting Week's filling range - for all but the W1
fill(j4, j5, color=#FF00FF, title="Fill_Week(H-C)",                                                                            transp= 75)
fill(j4, j6, color=#BF9000, title="Fill_Week(C-L)",                                                                            transp= 75)

//Style setting Day's levels - only for M15,H1,H4 
j1 = plot( var_15to240 ? security( ticker, "D", sma(close[1],1)) : na, color=black,    title="D(C)", style=circles, linewidth=3, transp= 0)
j2 = plot( var_15to240 ? security( ticker, "D", sma( high[1],1)) : na, color=#0000FF,  title="D(H)",                             transp= 0)
j3 = plot( var_15to240 ? security( ticker, "D", sma(  low[1],1)) : na, color=#FF0000,  title="D(L)",                             transp= 0)
//Style setting Day's fill - only for M15,H1,H4 
fill(j1, j2, color=#0000FF, title="Fill_Day(H-C)",                                                                            transp=  75)
fill(j1, j3, color=#FF0000, title="Fill_Day(C-L)",                                                                            transp=  75)
//=========================================