سلام، آیا امکان تبدیل این به ProRealTime وجود دارد؟
نمایه حجم (همچنین به عنوان قیمت بر حجم نیز شناخته می شود) از https://www. tradingview.com/script/Qwj6TO5I-Volume-Profile-and-Volume-Indicator-by-DGT/ یک مطالعه نموداری است که فعالیت معاملاتی را در یک بازه مشخص نشان می دهد. دوره زمانی در سطوح قیمتی خاصاین به عنوان یک هیستوگرام افقی در نمودار isntrumnet مالی ترسیم می شود که علاقه معامله گر را در سطوح قیمتی خاص نشان می دهد.
هیستوگرام توسط معامله گران برای پیش بینی مناطق حمایت و مقاومت استفاده می شود. سطوح قیمتی که حجم معاملات بالا است را می توان به عنوان سطوح حمایت و مقاومت در نظر گرفت.
قیمت ممکن است در حرکت در بالای یا پایین مناطق با میله های بزرگ مشکل داشته باشد. معمولاً در هر دو طرف خرید و فروش فعالیت زیادی وجود دارد و بازار برای مدت زمان زیادی در آن سطح قیمت باقی می ماند.
با هیستوگرام قدرت حجمی گاو/خرس، با هدف تاکید بر سطوح قیمت از نظر خرید یا فروش فعالیت تجاری در بازه زمانی مشخص شده است. ردیف های سبز نشان دهنده فعالیت های معاملاتی گاو نر بالاتر و برعکس ردیف های قرمز نشان دهنده فعالیت های معاملاتی خرس بالاتر است.
//@version=5 // ═══════════════════════════════════════════════════════════════════════════════════════════════════ // //# * ════════════════════════════════════════════════════════════════════════════════ //# * //# * مطالعه : نمایه جلد / قیمت بر جلد - ثابت راگن //# * نویسنده : © dgtrd //# * //# * تاریخچه تجدید نظر //# * انتشار: فوریه23، 2022 //# * به روز رسانی: 27 فوریه 2022: نشانگر حجم اضافه شده (هیستوگرام) //# * به روز رسانی: 28 فوریه 2022: نشانگر حجم اکنون دارای گزینه میانگین متحرک است //# * به روز رسانی: 10 مارس 2022:گزینه افست افست اضافه شد، قابل استفاده برای نمایه حجم قرار داده شده در سمت راست //# * به روز رسانی: 15 مارس 2022: اضافه شده هیستوگرام حجم گاو/خرس //# * به روز رسانی: 09 آوریل 2022: ترفندهای زیبایی شناختی //# * به روز رسانی:25 آوریل 2022: جمع منطقه ارزش //# * //# * ═════════════════════════════════════════════════════════════════════════════════ // ═════════════════════════════════════════════════════════════════════════════════ //
f_drawLabelX(_x, _y, _text, _xloc, _yloc, _color, _style, _textcolor, _size, _textalign, _tooltip) =>var _y, _text, _xloc, _yloc, _color, _style, _textcolor, _size, _textalign, _tooltip) label. set_xy(id, _x, _y) label. set_text(id, _text) label. set_tooltip(id, _tooltip_textcolorset).(id, _textcolor)
f_drawLineX(_x1, _y1, _x2, _y2, _xloc, _extend, _color, _style, _width) =>var _y1 ، _x2 ، _y2 ، _xloc ، _extend ، _color ، _style ، _width) line. set_xy1 (id ، _x1 ، _y1) line. set_xy2 (id ، _x2 ، _y2) line. set_set_color (id ، _color)
شاخص ("مشخصات حجم و نشانگر توسط DGT" ، "VP-FR ʙ dgt ☼☾" ، درست ، max_bars_back = 5000 ، max_lines_count = 500 ، max_boxes_count = 500)
group_volume_profile = 'مشخصات حجم / قیمت براساس حجم' ابزار tooltip_volume_profile = 'مشخصات حجم (همچنین به عنوان قیمت از نظر حجم شناخته می شود) یک مطالعه نمودار است که فعالیت معاملات را در یک دوره زمانی مشخص در سطح خاص قیمت "ابزار /" Bull / Bear Diminance نمایش می دهد. حزب Dominat در سطح قیمت خاص n ' +' - ردیف های قرمز: فشار فروش بالاتر است n ' +' - ردیف های سبز: فشار خرید بیشتر است n nrrow ردیف ها به معنای علاقه به آن سطح قیمت نیستند اما equlibrium بینفروش و خرید فعالیت معاملاتی '
volumeProfile = input. bool(true, 'Volume Profile (Common Interest)' , group = group_volume_profile, tooltip = tooltip_volume_profile) profileDisplay = input. string('Up/Down', 'Volume', option = ['Up/Down','Total'], inline='ZZ', group = group_volume_profile) upVolumeColor = input. color(color. new(#1592e6, 30), ” , inline='ZZ' , group = group_volume_profile) downVolumeColor = input. color. new(#fbc123, 30), ” , inline='ZZ' , group = group_volume_profile) nonVaColor = input. color(color. new(#5d606b, 80), ” , inline='ZZ' , group = group_volume_profile_Bear) .= input. bool(true, 'Bull/Bear Dominance, Bull', inline='BB' , group = group_volume_profile, tooltip = tooltip_dominace) bbStrUpColor = input. color(color. new(#26a69a, 30), " , inline='BB' , group = group_volume_profile) bbStrDownColor = input. color(color. new(#ef5350, 30), 'Bear' , inline='BB' , group = group_volume_profile) pointOfControl = input. bool(true, 'Point of Control'Line' , inline='PoC', group = group_volume_profile) pocColor = input. color(color. new(#ff0000, 0), ” , inline='PoC', group = group_volume_profile) pocWidth = input. int(2, ”, minval = 1 , inline='PoC', group= group_volume_profile) isValueArea = input. float(68، "Value Area Volume %"، minval = 0، maxval = 100 , group = group_volume_profile) / 100 valueAreaHigh = input. bool(true, 'Value Area' (Value_High)inline='VAH', group = group_volume_profile) vahColor = input. color(color. new(#2962ff, 0), ” , inline='VAH', group = group_volume_profile) vahWidth = input. int(2, ", minval =1 , inline='VAH', group = group_volume_profile) valueAreaLow = input. bool(true, 'Value Area Low (VAL) Line' , inline='VAL', group = group_volume_profile) valColor = input. color(color. new(#2962ff, 0), ” , inline='VAL', group = group_volume_profile) valWidth = input. int(2, ”, minval = 1 , inline='VAL', group = group_volume_profile) vaBackground = input. bool(true,'رنگ پس زمینه ناحیه مقدار' , inline='vBG', group = group_volume_profile) vaBackgroundColor = input. color(color. new(#2962ff, 89), ” , inline='vBG', group = group_volume_profile) priceLevels = input. string('Value Area High/Low', 'Price Levels', option = ['Profile'High/Low'، 'Value Area High/Low'، 'None']، inline='BBe', group = group_volume_profile) labelColor = input. color(color. new(#9598a1, 0), ” , inline='BBe', group = group_volume_profile) lookbackLength = input. int(360, 'Lookback Length', minval = 10, maxval = 5000, step = 10 ,
group = group_volume_profile) lookbackLength := last_bar_index
group_volume = 'Volume Histogram' tooltip_volume = 'شاخص حجم برای اندازه گیری مقداری از دارایی مالی معین در هر کندل خاص مورد معامله قرار گرفته است' volumeHistogram = input. bool(true, 'Volume Histogram' , group = group_volume, tooltip = tooltip_volume) volumeMA = input. bool(true، 'Volume MA, Length' , inline='vol2', group = group_volume) volumeMALength = input. int(21, ", minval = 1 , inline='vol2', group = group_volume)volumeUpColor = input. color(color. new(#26a69a, 30)، 'Grawing' , inline='vol1', group = group_volume) volumeDownColor = input. color(color. new(#ef5350, 30)، 'افتادن', inline='vol1'، group = group_volume) volumeMAColor = input. color(color. new(#2962ff, 0), ' Volume MA' , inline='vol1', group = group_volume) volumePlacement = input. string('Top', 'Placment', options = ['Top', 'Bottom'] , group = group_volume) volumeHistHight = 11 input. int(8, 'Hight' , minval = 1, maxval = 10 , group = group_volume) verticalOffset = input. int(0، 'Overtical Offset'، minval =0 , maxval = 20 , group = group_volume) / 20
barPriceLow = low barPriceHigh = high bullCandle = close> open nzVolume = nz(volume) priceHighest = ta.highest(high, lookbackLength> 0 ? lookbackLength : 200) priceLowest = ta.lowest (low , lookbackLength> 0 ? lookbackLength : 200) priceStep = (priceHighest priceLowest) / profileLevels priceChangeRate = (priceHighest priceLowest) / priceHighest volumeHighest = ta.highest(nzVolume, lookbackLength>volumeStorageT = array. new_float (profileLevels + 1, 0.) volumeStorageB = array. new_float (profileLevels + 1, 0.) var a_profile = array. new_box() var a_histogram = array. new_line() var levelAbove0 = var0Pvar pocLevel = 0
if barstate.islast and nzVolume if array.size(a_profile)>0 ? طول نگاه: 200) volumeMARate = nzVolume/ta. sma(nzVolume، volumeMALength)
if array.size(a_histogram)>0 برای i = 0 به array. size (a_profile) 1 box. delete(array. shift(a_profile))
for barIndex = 0 to lookbackLength 1 level = 0 for priceLevel = priceLowest to priceHighest by priceStep if barPriceHigh[barIndex]>0 برای i = 0 به array. size (a_histogram) 1 line. delete(array. shift(a_histogram))
= priceLevel و barPriceLow[barIndex]
if bullCandle[barIndex] و (profileDisplay == 'بالا/پایین' یا bullBearStr) array. set(volumeStorageB, level, array. get(volumeStorageB, level) + nzVolume[barIndex] * ((barPriceHigh[barPricIndexL)]) == 0 ? 1 : priceStep / (barPriceHigh[barIndex] barPriceLow[barIndex]))) سطح += 1<500 array.push(a_histogram, line.new(bar_index[barIndex], volumePlacement == ‘Top’ ? priceHighest * (1 + priceChangeRate * verticalOffset) : priceLowest * (1 priceChangeRate * verticalOffset) , bar_index[barIndex], (volumePlacement == ‘Top’ ? priceHighest * (1 + priceChangeRate * verticalOffset) : priceLowest * (1 priceChangeRate * verticalOffset)) * (1 + ( volumePlacement == ‘Top’ ? 1 : -1) * nzVolume[barIndex] / volumeHighest * priceChangeRate / volumeHistHight), xloc.bar_index, extend.none, bullCandle[barIndex] ? volumeUpColor : volumeDownColor, line.style_solid, 2))
if volumeHistogram و array. size (a_histogram)
if volumeMA array. push(a_histogram, line. new(bar_index[barIndex], (volumePlacement == 'Top' ? priceHighest * (1 + priceChangeRate * verticalOffset) : priceLowest * (1 priceChangeRate * عمودی Offset)) * (1 + (volumePlacement == 'بالا' ? 1 : -1) * nzVolume[barIndex] / volumeHighest * priceChangeRate / volumeHistHight / volumeMARate[barIndex])، bar_index[barIndex + 1], (volumePlacement == 'بالاترین' * (1 +Highest)priceChangeRate * verticalOffset) : قیمت کمترین * (1 قیمت تغییر نرخ * verticalOffset)) * (1 + (volumePlacement == 'بالا' ? 1 : -1) * nzVolume[barIndex + 1] / volumeHighest * priceChangeRate / حجم I+HistH1])، xloc. bar_index، extend. none، volumeMAColor، line. style_solid، 2))
pocLevel := array. indexof(volumeStorageT, array. max(volumeStorageT))
if pointOfControl f_drawLineX(bar_index lookbackLength + 1، priceLowest + (pocLevel + 0. 50) * priceStep، bar_index + (profilePlacement == 'Right' ? horizontalOffset + profileWidth : 0)، priceLowest + (pocLevel0 + 0. pindex) *priceS_barte5., extend. none, pocColor, line. style_solid, pocWidth)
if priceLevels != 'هیچکدام' f_drawLabelX(bar_index + (profilePlacement == 'راست' ? horizontalOffset + profileWidth + (bullBearStr ? 17 : 7) : 7)، priceLowest + (array. indexof(volumeStorageT, array. maxtorage)(um)+ 0. 5) * priceStep، str. tostring (قیمت کمترین + (array. indexof(volumeStorageT، array. max(volumeStorageT)) + 0. 5) * priceStep، format. mintick)، xloc. bar_index، yloc. price، color. new(pocColor، 89)، label. style_label_left، color. new (pocColor، 0)، size. normal، text. align_left، «نقطه کنترل قیمت»)
totalVolumeTraded = array. sum(volumeStorageT) * isValueArea valueArea = array. get(volumeStorageT، pocLevel)
levelAbovePoc := pocLevel levelBelowPoc := pocLevel
در حالی که valueArea
volumeBelowPoc = 0. if levelBelowPoc>volumeAbovePoc = 0. if levelAbovePoc
if volumeAbovePoc>0 volumeBelowPoc := array. get(volumeStorageT، levelBelowPoc 1)
= volumeBelowPoc valueArea += volumeAbovePoc levelAbovePoc += 1 else valueArea += volumeBelowPoc levelBelowPoc -= 1
vah = f_drawlinex (bar_index - lookbackl طول + 1 ، pricelowest + (levelabovepoc + 1. 00) * pricestep ، bar_index ، priceLowest + (levelabovepoc + 1. 00) * pricestep ، xloc. bar_index ، ext. none ، none ، vahcolor ، #00000000000000000000000000000000000000000000000000000000000000000000000000000000000000 موردی.، vahwidth) val = f_drawlinex (bar_index - lookbackl طول + 1 ، pricelowest + (levelbelowpoc + 0. 00) * pricestep ، bar_index ، pricelowest + (levelbelowpoc + 0. 00) * pricestep ، xloc. bar_index ، #valcolor ، exte ، exte ، exte ، exte ، ext. none ، ext. none ، exte ، exte ، exte ، exte ، exte ، exte ، exte ، exte ، exte ، exte ، exte ، exte ، exte ، exte ، exte ، exteareeLor: #line. style_solid ، valwidth)
اگر ApplicebackColor Array. push (a_profile ، box. new (bar_index - lookbackl طول + 1 ، pricelowest ، bar_index + (profil e-stlact == 'سمت راست'؟ profilewidth + horizontaloffset: 0) ، PriceHightest ، Background ، 1 ، line. style_dotted ، backgrate = bgcolor = bgcolor = bgcolor))
اگر Vabackground Linefill. new (Vah ، Val ، VabackgroundColor)#.#اگر pricelevels! = "هیچ یک" بالایی رده = pricelevels == "منطقه ارزش بالا/پایین"؟PriceLowest + (LevelAbovePoc + 1. 00) * Pricestep: PriceHightest LowpriceLevel = PriceLevels == "منطقه ارزش بالا/پایین"؟Pricelowest + (LevelBelowPoc + 0. 00) * Pricestep: PriceLowest f_drawlabelx (last_bar_index + 3 ، str. tostricelevel ، format. mintick) ، xloc. bar_index ، yloc. price ، lelber. stynew ، lelbine.، label color ، size. normal ، text. align_left ، 'profile high -' + str. tostring (pricehighest ، format. mintick) + ' n ٪' + str. toString ((PriceHighest - priceLowest) / priceLowest * 100 ، '#.##') +' بالاتر از مشخصات پایین n nValue High - ' + Str. ToString (PriceLowest + (LevelAbovePoc + 1. 00) * pricestep ، format. mintick) +' n مقدار مقدار حجم ٪ ' + str. toString(isvaluearea * 100) + ' n nnumber از میله ها:' + str. toString (طول نگاه)) f_drawlabelx (last_bar_index + 3 ، lowpricelevel ، str. toString (lowpricelevel ، format. mintick) ، xloc. bar_index ، yloc. price. color. new (labelcolor ، 89) ، label. style_label_left ، labelcolor ، size. normal ، text. align_left ، 'profile low -' + str. toString (priceLowest ، format. mintick) + ' n ٪' + str. toString ((PriceHighest - PriceLowest) / PriceHighest * 100 ، '
for level = 0 to profileLevels 1 if volumeProfile levelColor = profileDisplay == ‘Up/Down’ ? level>#') +' پایین تر از مشخصات بالا n nvalue منطقه پایین - ' + str. toString (priceLowest + (LevelBelowPoc + 0. 00) * pricestep ، format. mintick) +' n مقدار مقدار حجم ٪ ' + str. toString.
if profileDisplay == ‘Up/Down’ and volumeProfile startBoxIndex = profilePlacement == ‘Right’ ? bar_index + profileWidth + horizontalOffset int(array.get(volumeStorageB, level) / array.max(volumeStorageB) * (profileWidth 9) / 2) : bar_index lookbackLength + 1 endBoxIndex = profilePlacement == ‘Right’ ? bar_index + profileWidth + horizontalOffset: startBoxIndex + int( array.get(volumeStorageB, level) / array.max(volumeStorageB) * (profileWidth 9) / 2) array.push(a_profile, box.new(startBoxIndex, priceLowest + (level + 0.1) * priceStep, endBoxIndex, priceLowest + (level + 0.9) * priceStep, level>= LevelBelowPoc و Level = LevelBelowPoc و سطح startboxIndex = profilePlaction == "درست"؟bar_index + profilewidth + horizontaloffset - int (array. get (volumestoraget ، سطح) / array. max (volumestoraget) * (profilewidth - 9)): bar_index - lookbackl طول + 1 endboxIndex == ‘RIGHT"؟bar_index + profilewidth + horizontaloffset: startboxIndex + int (array. get (volumestoraget ، سطح) / array. max (volumestoraget) * (profilewidth - 9)) array. push (a_profile ، box. new (startboxindex ، pricelowest + (سطح + 0. 1) * PRICESTEP ، ENDBOXINDEX ، PRICELOWEST + (سطح + 0. 9) * PRICESTEP ، LEVELCOLOR ، BGCOLOR = LEVELCOLOR))
if bullBearStr bullBearPower = 2 * array.get(volumeStorageB, level) array.get(volumeStorageT, level) startBoxIndex = profilePlacement == ‘Right’ ? bar_index + profileWidth + 1 + horizontalOffset + (bullBearPower> 0 ? 1 : -1) * int(bullBearPower / array.max(volumeStorageT) * (profileWidth 9) * 1.75) : bar_index lookbackLength endBoxIndex = profilePlacement == ‘Right’ ? bar_index + profileWidth + 1 + horizontalOffset: startBoxIndex + (bullBearPower> 0 ? -1 : 1) * int(bullBearPower / array.max(volumeStorageT) * (profileWidth 9) * 1.75 ) array.push(a_profile, box.new(startBoxIndex, priceLowest + (level + 0.1) * priceStep, endBoxIndex, priceLowest + (level + 0.9) * priceStep, bullBearPower> 0 ? bbStrUpColor : bbStrDownColor, bgcolor = bullBearPower>= LevelBelowPoc و Level = LevelBelowPoc و سطح
0؟bbstrupcolor: bbstrowncolor))
group_volume_weighted_colored_bars = ‘Volume Weighted Colored Bars’ vwcb = input.bool(true, ‘Volume Weighted Colored Bars’, group=group_volume_weighted_colored_bars, tooltip=’Colors bars based on the bar’s volume relative to volume moving average’) vSMA = ta.sma(nzVolume, input.int(89, ‘Volume Moving Average Length’, group=group_volume_weighted_colored_bars)) upThesh = input.float(1.618, ‘Bold Bars avbove Volume Average * ‘, minval=1., step=.1, group=group_volume_weighted_colored_bars) barcolor(vwcb and nzVolume ? nzVolume>——————————- // // میله های رنگی با وزن حجم —————————————————————— //
vsma * upthesh؟باز کن
pricetxt = str. toString (نزدیک ، format. mintick) tickertxt = syminfo. ticker
اگر ta. cross (نزدیک ، priceLowest + (poclevel + . 50) * pricestep) و pointofcontrol هشدار (مشخصات حجم Tickertxt + ‘Volume Profile: Touches Touches/Crosses Point of Control ، Price‘ + Pricetxt)
اگر ta. cross (نزدیک ، priceLowest + (LevelAbovePoc + 1. 00) * pricestep) و vereeareahigh هشدار (مشخصات حجم Tickertxt + ‘Volume: Line Touches/Crosses Value Line High Line ، Price‘ + Pricetxt)
if nzVolume>اگر ta. cross (نزدیک ، priceLowest + (LevelBelowPoc + 0. 00) * pricestep) و veryearealow alert (مشخصات حجم Tickertxt + ‘Volume Profile: Touches Touches/Crosses Value Line Line ، Price‘ + PricetXt)
VSMA * UPTHESH و VWCB ALERT (Tickertxt + ‘حجم بالا ، قیمت‘ + Pricetxt)
استراتژی ترید...
ما را در سایت استراتژی ترید دنبال می کنید
برچسب :
نویسنده : مرجان شیرمحمدی
بازدید : 77
تاريخ : سه
شنبه
15 فروردين
1402 ساعت: 15:07