SelScriptÖrnek kütüphanesi
RSI özet tablosu
Birleşik başlık ve son mum değeriyle küçük panel.
RSI hesabı her mumda yapılır, tablo yalnız son mumda görünür. Sol üst konum fiyat ölçeğinden uzak bir başlangıçtır. Hücreleri otomatik boyutlandırın; konumu Stil sekmesinden değiştirebilirsiniz. Eksik RSI için çizgi yerine uzun tire görünür.
Tam kod
//@selscript=1
indicator("Summary panel", overlay=true)
rsi = ta.rsi(close, 14)
text = is_na(rsi) ? "—" : str.tostring(rsi, 1)
panel = table.new("top_left", 2, 2, bgcolor="#031016f2", frame_width=1, frame_color="#22c55e")
table.merge_cells(panel, 0, 0, 1, 0)
if barstate.islast:
table.cell(panel, 0, 0, "RSI SUMMARY", text_halign="left", text_size="large")
table.cell(panel, 0, 1, "RSI 14", text_halign="left")
table.cell(panel, 1, 1, text, text_color="#22c55e")