BonBoBin

auto_HLC_levels

-
סקריפט קוד פתוח

ברוח TradingView אמיתית, מחבר הסקריפט הזה פרסם אותו בקוד פתוח, כך שסוחרים יכולים להבין ולאמת אותו. כל הכבוד למחבר! אתה יכול להשתמש בו בחינם, אך שימוש חוזר בקוד זה בפרסום כפוף לכללי הבית. אתה יכול להכניס אותו למועדפים כדי להשתמש בו בגרף.

כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי 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)
//=========================================