Untitled
unknown
plain_text
a year ago
4.2 kB
12
Indexable
//@version=5 indicator(title="Mtf Supertrend Table", shorttitle="MTF SuperTrend", overlay=true) gr6 = 'Tablo ArkaPlan Rengi / Table Bgcolor' dashColor = input.color(color.new(#00b2ff,100) , 'Renk ve Kontrans / Color and Contrast ', group=gr6, inline='3') // İstatistik Tablosu // -------- Group1 = 'SuperTrend Table / SuperTrend Tablo ' TikTab = input(true, 'SuperTrend Table / SuperTrend Tablo ', group=Group1) times1 = input.timeframe('5', 'Zaman Dilimi / TimeFrame - A', group=Group1) times2 = input.timeframe('15', 'Zaman Dilimi / TimeFrame - B', group=Group1) times3 = input.timeframe('60', 'Zaman Dilimi / TimeFrame - C', group=Group1) times4 = input.timeframe('240','Zaman Dilimi / TimeFrame - D', group=Group1) times5 = input.timeframe('D', 'Zaman Dilimi / TimeFrame - E', group=Group1) times6 = input.timeframe('W', 'Zaman Dilimi / TimeFrame - F', group=Group1) TablePos = input.string('Sağ Yukarı / Top Right', 'Tablo Pozisyonu / Table Position', ['Sağ Yukarı / Top Right', 'Sağ Orta / Middle Right', 'Sol Alt / Bottom Left',"Sağ Alt / Bottom Right"], group=Group1) TablePosTextCol = input.color(color.white, 'Text', inline='1', group=Group1) TextSize1 = input.string('Normal', 'Tablo Yazı Büyüklüğü / Table Font Size', ['Normal', 'Küçük / Small', 'Büyük / Large'], group=Group1) textSize = TextSize1=='Normal'? size.small : TextSize1=='Küçük / Small'? size.tiny : size.normal tabPos = TablePos=='Sağ Yukarı / Top Right'? position.top_right : TablePos=='Sol Alt / Bottom Left'? position.bottom_left :TablePos=='Sağ Orta / Middle Right'? position.middle_right:position.bottom_right var SuperTrendTable = table.new(tabPos, 50, 50, color.new(color.black,100), color.new(color.black,100), 1, color.new(color.black,1),1) //------------------------ atrPeriod = input(10, "ATR Length / ATR Uzunluğu") factor = input.float(3.0, "Factor", step = 0.01) [supertrend, direction] = ta.supertrend(factor, atrPeriod) plot((open + close) / 2, display=display.none) plot(direction < 0 ? supertrend : na, "Up Trend / Yükseliş Trendi", color = color.green, style=plot.style_linebr) plot(direction < 0 ? na : supertrend, "Down Trend / Düşüş Trendi", color = color.red, style=plot.style_linebr) yuseksup = ta.sma(supertrend,1) sartsuper= direction < 0 ? 1 : direction > 0 ? -1 : na fonksiyonsuper()=> sartsuper fonsuperrenk(x) => x=="Yükseliş" + "\n" +"Up Trend" ? color.green : x== "Düşüş" + "\n" +"Down Trend" ? color.red : na fTable(rowNumber,times )=> superyeni = request.security(syminfo.ticker, times, fonksiyonsuper()) superrakam= request.security(syminfo.ticker, times, str.tostring(supertrend,format.mintick)) yenisuper = superyeni == 1 ? "Yükseliş" + "\n" +"Up Trend" : superyeni == -1 ? "Düşüş" + "\n" +"Down Trend" : na yazisuper = superrakam superrenkli=fonsuperrenk(yenisuper) if TikTab table.cell(SuperTrendTable, 0, 0, 'Zaman Dilimi'+"\n"+"TimeFrame" , text_color=TablePosTextCol, text_size=textSize, bgcolor=color.new(#00b2ff,100)) table.cell(SuperTrendTable, 0, 1, 'SuperTrend ' , text_color=TablePosTextCol, text_size=textSize, bgcolor=color.new(#00b2ff,100)) tfDes = times==''? timeframe.period : times table.cell(SuperTrendTable,rowNumber, 0, tfDes , text_color=TablePosTextCol, text_size=textSize, bgcolor=dashColor) table.cell(SuperTrendTable,rowNumber, 1, yenisuper, text_color=TablePosTextCol, text_size=textSize, bgcolor=superrenkli) table.cell(SuperTrendTable,rowNumber, 2, yazisuper, text_color=TablePosTextCol, text_size=textSize, bgcolor=superrenkli) fTable(1,times1) fTable(2,times2) fTable(3,times3) fTable(4,times4) fTable(5,times5) fTable(6,times6) var table logo = table.new(position.bottom_right, 2, 2) if barstate.islast table.cell(logo, 1, 0, '☪', text_size=size.normal, text_color=color.white,bgcolor=color(#fe0707)) table.cell(logo, 0, 0, "ONAT",text_size=size.normal, text_color=color.white)
Editor is loading...
Leave a Comment