Ara
Ürünler
Topluluk
Piyasalar
Haberler
Aracı kurum
Daha Fazla
TR
Şimdi başlat
Topluluk
/
Fikirler
/
SIRI PINE SCRIPT - Label, garisan dan jarak dari harga semasa
O
OMESTI BHD
Eğitim
SIRI PINE SCRIPT - Label, garisan dan jarak dari harga semasa
BURSATRENDBANDCHART tarafından
Takip Et
Takip Et
Güncellendi
13 Tem 2020
1
1
1
1
13 Tem 2020
Kita gabungkan label dan lines dalam satu script untuk dapatkan jarak harga dari harga semasa ke 52w high dan 52w low.
Konsep yang sama boleh diguna pakai untuk membuat support atau resistance dan mengira jarak harga sama ada dalam nombor atau peratus.
Ikut kreativiti masing-masing.
Note : Dulu dah pernah buat. Kali ini saya tambah garisan vertical.
13 Tem 2020
Not
// This source code is subject to the terms of the Mozilla Public License 2.0 at
mozilla.org/MPL/2.0/
// © BURSATRENDBANDCHART
//
version
=4
study("52WHLC", overlay = true)
weekly_hh = security(syminfo.tickerid,"W", nz(highest(high,52)), lookahead=barmerge.lookahead_on)
weekly_ll = security(syminfo.tickerid,"W", nz(lowest(low,52)), lookahead=barmerge.lookahead_on)
positif = weekly_hh - close
negatif = close - weekly_ll
plot(weekly_hh,title = '52W High', trackprice=true, offset=-9999, color= color.blue)
plot(weekly_ll,title = '52W Low', trackprice=true, offset=-9999, color= color.red)
toright = line.new(bar_index[1], close, bar_index, close, color = color.black, style = line.style_dotted, extend = extend.right)
line.delete(toright[1])
tohigh = line.new(time + 144000, weekly_hh, time + 144000, close,
color = color.blue,
style = line.style_dotted,
xloc = xloc.bar_time)
line.delete(tohigh[1])
tolow = line.new(time + 144000, weekly_ll, time + 144000, close,
color = color.red,
style = line.style_dotted,
xloc = xloc.bar_time)
line.delete(tolow[1])
lpositif = label.new(time + 144000000, close + (positif/2),''
+tostring(positif/close,"#.##%"),
color = color.blue,
textcolor = color.white,
textalign = text.align_right,
style = label.style_label_left,
xloc = xloc.bar_time)
label.delete (lpositif[1])
lnegatif = label.new(time + 144000000, close - (negatif/2),''
+tostring(negatif/weekly_ll,"#.##%"),
color = color.red,
textcolor = color.white,
textalign = text.align_right,
style = label.style_label_left,
xloc = xloc.bar_time)
label.delete (lnegatif[1])
52weeks
Chart Patterns
Technical Indicators
labels
lines
pinescript
Trend Analysis
trendbandguide
vertical
BURSATRENDBANDCHART
Takip Et
Aynı zamanda::
İlgili yayınlar
SIRI PINE SCRIPT - Gabungan plot, label dan nilai peratus
BURSATRENDBANDCHART tarafından
SIRI PINE SCRIPT - Melukis garisan menegak (vertical line)
BURSATRENDBANDCHART tarafından
SIRI PINE SCRIPT - Garis dan nilai tertinggi 52 minggu
BURSATRENDBANDCHART tarafından
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez.
Kullanım Şartları
'nda daha fazlasını okuyun.