Untitled
unknown
plain_text
10 months ago
51 kB
12
Indexable
//@version=5
indicator('DeepTrade 15Dk AUTO', overlay=true)
grupSec = input.string(defval='1', options=['1', '2', '3', '4', '5','6','7','8','9','10','11','12','13','14','ÖZEL LİSTE'], group='Taraması yapılacak 40\'arlı gruplardan birini seçin', title='Grup seç')
per = input.timeframe(defval='', title='PERİYOT', group="Tarama yapmak istediğiniz periyotu seçin")
loc = input.int(defval=20, title='Konum Ayarı', minval = -300, maxval = 500, step = 5, group='Tablonun konumunu belirleyin')
// ---------------------------- buraya yapıstır --------------------------------------- //
// Parametreler
lengthsalin = input.int(144, "15Dk Deep Trade Analiz Edilecek Mum Sayısı") // Analiz edilecek maksimum mum sayısı
line_length = input.int(144, minval=1, title="15Dk Deep Trade Çizgilerinin Kaç Bar Çizileceği Sayısı") // Çizginin geriye dönük bar sayısı
lengthsalin2 = input.int(144, "15Dk Deep Trade Analiz Edilecek Mum Sayısı") // Analiz edilecek maksimum mum sayısı
line_length2 = input.int(144, minval=1, title="15Dk Deep Trade Çizgilerinin Kaç Bar Çizileceği Sayısı") // Çizginin geriye dönük bar sayısı
lookback = math.min(lengthsalin, bar_index + 1) // Grafikteki mevcut mum sayısına göre ayarlama
lookback2 = math.min(lengthsalin, bar_index + 1) // Grafikteki mevcut mum sayısına göre ayarlama
// Kullanıcı Kontrolleri
show_lines = input.bool(true, "15Dk Hedef Çizgisi") // Çizgileri açıp kapatmak için kontrol
show_labels = input.bool(true, "15Dk Hedef Etiketi") // Etiketleri açıp kapatmak için kontrol
up_line_color = input.color(color.green, "15Dk +Hedef Çizgisi") // Yukarı çizgi rengi
down_line_color = input.color(color.red, "15Dk -Hedef Çizgisi") // Aşağı çizgi rengi
show_lines2 = input.bool(true, "15Dk Hedef Çizgisi") // Çizgileri açıp kapatmak için kontrol
show_labels2 = input.bool(true, "15Dk Hedef Etiketi") // Etiketleri açıp kapatmak için kontrol
up_line_color2 = input.color(color.green, "15Dk +Hedef Çizgisi") // Yukarı çizgi rengi
down_line_color2 = input.color(color.red, "15Dk -Hedef Çizgisi") // Aşağı çizgi rengi
// Fiyat bilgileri
highs = ta.highest(high, lookback) // En yüksek fiyat
lows = ta.lowest(low, lookback) // En düşük fiyat
current_close = close // Son mumun kapanış fiyatı
highs2 = ta.highest(high, lookback2) // En yüksek fiyat
lows2 = ta.lowest(low, lookback2) // En düşük fiyat
// Gerçekleşen yukarı ve aşağı hareket oranlarını ve ortalama bar sayılarını hesapla
up_move_hit = 0
up_move_hit2 = 0
down_move_hit = 0
down_move_hit2 = 0
up_bar_sum = 0 // Yukarı hedefin gerçekleştiği toplam bar sayısı
up_bar_sum2 = 0 // Yukarı hedefin gerçekleştiği toplam bar sayısı
down_bar_sum = 0 // Aşağı hedefin gerçekleştiği toplam bar sayısı
down_bar_sum2 = 0 // Aşağı hedefin gerçekleştiği toplam bar sayısı
for i = 0 to lookback - 1
if high[i] >= current_close * 1.03 // %3 yukarı hareket
down_move_hit := down_move_hit + 1
down_bar_sum := down_bar_sum + i // Hedefe ulaşan barın indeksini ekle
if low[i] <= current_close * 0.97 // %3 aşağı hareket
up_move_hit := up_move_hit + 1
up_bar_sum := up_bar_sum + i // Hedefe ulaşan barın indeksini ekle
for i = 0 to lookback2 - 1
if high[i] >= current_close * 1.03 // %3 yukarı hareket
down_move_hit2 := down_move_hit2 + 1
down_bar_sum2 := down_bar_sum2 + i // Hedefe ulaşan barın indeksini ekle
if low[i] <= current_close * 0.97 // %3 aşağı hareket
up_move_hit2 := up_move_hit2 + 1
up_bar_sum2 := up_bar_sum2 + i // Hedefe ulaşan barın indeksini ekle
// Yüzdelik hesaplamalar
up_percentage = (up_move_hit / lookback) * 100
up_percentage2 = (up_move_hit2 / lookback2) * 100
down_percentage = (down_move_hit / lookback) * 100
down_percentage2 = (down_move_hit2 / lookback2) * 100
// Ortalama bar hesaplamaları
up_avg_bars = up_move_hit > 0 ? up_bar_sum / up_move_hit : na // Yukarı hedefin ortalama bar sayısı
up_avg_bars2 = up_move_hit2 > 0 ? up_bar_sum2 / up_move_hit2 : na // Yukarı hedefin ortalama bar sayısı
down_avg_bars = down_move_hit > 0 ? down_bar_sum / down_move_hit : na // Aşağı hedefin ortalama bar sayısı
down_avg_bars2 = down_move_hit2 > 0 ? down_bar_sum2 / down_move_hit2 : na // Aşağı hedefin ortalama bar sayısı
// Dinamik hedef yüzdeleri belirleme
up_target_percentage = up_percentage >= 45 ? 0.03 : na // %45 olasılıkla %3 yukarı
down_target_percentage = down_percentage >= 45 ? 0.03 : na // %45 olasılıkla %3 aşağı
up_target_percentage2 = up_percentage2 >= 45 ? 0.03 : na // %45 olasılıkla %3 yukarı
down_target_percentage2 = down_percentage2 >= 45 ? 0.03 : na // %45 olasılıkla %3 aşağı
// Hedef fiyatları hesapla
up_move = current_close * (1 + up_target_percentage)
down_move = current_close * (1 - down_target_percentage)
// Hedef fiyatları hesapla
up_move2 = current_close * (1 + up_target_percentage2)
down_move2 = current_close * (1 - down_target_percentage2)
// Çizgi nesnelerini yalnızca bir kez oluşturma ve güncelleme
var line up_line = na
var line down_line = na
if show_lines and not na(up_target_percentage)
if na(up_line)
up_line := line.new(bar_index - line_length, up_move, bar_index, up_move, color=up_line_color, width=3, style=line.style_solid, extend=extend.none)
else
line.set_xy1(up_line, bar_index - line_length, up_move)
line.set_xy2(up_line, bar_index, up_move)
line.set_color(up_line, up_line_color)
else
if not na(up_line)
line.delete(up_line)
up_line := na
if show_lines and not na(down_target_percentage)
if na(down_line)
down_line := line.new(bar_index - line_length, down_move, bar_index, down_move, color=down_line_color, width=3, style=line.style_solid, extend=extend.none)
else
line.set_xy1(down_line, bar_index - line_length, down_move)
line.set_xy2(down_line, bar_index, down_move)
line.set_color(down_line, down_line_color)
else
if not na(down_line)
line.delete(down_line)
down_line := na
// AL (Long) ve SAT (Short) etiketleri için değişkenler
var label long_giris_label = na
var label short_giris_label = na
var label long_cikis_label = na
var label short_cikis_label = na
// AL (Long) koşulu: Yukarı hedef çizgisi oluştuğunda
if not na(up_target_percentage) and na(up_target_percentage[1])
if na(long_giris_label)
long_giris_label := label.new(bar_index, high, "15Dk Al", color=color.new(color.green, 100), textcolor=color.green, style=label.style_label_down, size=size.normal)
else
label.set_xy(long_giris_label, bar_index, high)
label.set_text(long_giris_label, "15Dk Al")
label.set_color(long_giris_label, color.new(color.green, 100)) // Güncellenmiş hali
// Çizgi nesnelerini yalnızca bir kez oluşturma ve güncelleme
var line up_line2 = na
var line down_line2 = na
if show_lines2 and not na(up_target_percentage2)
if na(up_line2)
up_line2 := line.new(bar_index - line_length2, up_move2, bar_index, up_move2, color=up_line_color2, width=3, style=line.style_solid, extend=extend.none)
else
line.set_xy1(up_line2, bar_index - line_length2, up_move2)
line.set_xy2(up_line2, bar_index, up_move2)
line.set_color(up_line2, up_line_color2)
else
if not na(up_line2)
line.delete(up_line2)
up_line2 := na
if show_lines2 and not na(down_target_percentage2)
if na(down_line2)
down_line2 := line.new(bar_index - line_length2, down_move2, bar_index, down_move2, color=down_line_color2, width=3, style=line.style_solid, extend=extend.none)
else
line.set_xy1(down_line2, bar_index - line_length2, down_move2)
line.set_xy2(down_line2, bar_index, down_move2)
line.set_color(down_line2, down_line_color2)
else
if not na(down_line2)
line.delete(down_line2)
down_line2 := na
// AL (Long) ve SAT (Short) etiketleri için değişkenler
var label long_giris_label2 = na
var label short_giris_label2 = na
var label long_cikis_label2 = na
var label short_cikis_label2 = na
// Çıkış koşulları: Hedef çizgileri kaybolduğunda
if na(up_target_percentage2) and not na(up_target_percentage2[1])
if na(long_cikis_label2)
long_cikis_label2 := label.new(bar_index, high, "15Dk Sat", color=color.new(color.red, 100), textcolor=color.red, style=label.style_label_down, size=size.normal)
else
label.set_xy(long_cikis_label2, bar_index, high)
label.set_text(long_cikis_label2, "15Dk Sat")
label.set_color(long_cikis_label2, color.new(color.red, 100)) // Güncellenmiş hali
// Alarm koşulları (çizgiler oluştuğunda)
alertcondition(not na(up_target_percentage), title="15Dk Al Hedef Çizgisi Oluştu 15Dk Giriş", message="15Dk Al hedef çizgisi oluştu 15Dk Giriş: {{close}}")
// Alarm koşulları (çizgiler kaybolduğunda)
alertcondition(na(up_target_percentage2) and not na(up_line[1]), title="15Dk Sat Hedef Çizgisi Kayboldu 15Dk Sat Çıkış", message="15Dk Sat hedef çizgisi kayboldu 15Dk Sat Çıkış: {{close}}")
// Etiketler
var label up_label2 = na
var label down_label2 = na
var float price_at_major = 0
var float bars_since_major = 0
// Majör yazısı oluştuktan sonra geçen mum sayısını hesapla
bars_since_major := bar_index - ta.valuewhen(not na(up_target_percentage) and na(up_target_percentage[1]), bar_index, 0)
// Son muma gelindiğinde yüzde değişimi hesapla
price_at_major := ta.valuewhen(not na(up_target_percentage) and na(up_target_percentage[1]), close, 0)
percent_change = ((close - price_at_major) / price_at_major) * 100
if na(up_target_percentage) and not na(up_target_percentage[1])
price_at_major := 0
bars_since_major := 0
// AL (Long) koşulu: Yukarı hedef çizgisi oluştuğunda
if not na(up_target_percentage) and na(up_target_percentage[1])
if na(short_giris_label)
short_giris_label := label.new(bar_index - 1, high[1], "15Dk Al\nGeçen Mum: " + str.tostring(bars_since_major) + "\nDeğişim: " + str.tostring(percent_change, "#.##") + "%", color=color.new(color.green, 100), textcolor=color.green, style=label.style_label_down, size=size.normal)
else
label.set_xy(short_giris_label, bar_index - 1, high[1])
label.set_text(short_giris_label, "15Dk Al\nGeçen Mum: " + str.tostring(bars_since_major) + "\nDeğişim: " + str.tostring(percent_change, "#.##") + "%")
label.set_color(short_giris_label, color.new(color.green, 100)) // %50 şeffaf yeşil
// Etiketlerin son mumun önünde görünmesi ve dinamik değer güncellemesi
if na(short_giris_label) == false
label.set_xy(short_giris_label, bar_index + 40, high[1]) // Son mumdan 40 bar ileri
label.set_text(short_giris_label, "15Dk Al\nGeçen Mum: " + str.tostring(bars_since_major) + "\nDeğişim: " + str.tostring(percent_change, "#.##") + "%")
label.set_color(short_giris_label, color.new(color.green, 100)) // %50 şeffaf yeşil
// Tablo kontrolü için seçenekler
show_table1 = input.bool(true, title="Yön Tablosu Göster/Gizle")
// Tablo yalnızca bir kez oluşturulmalı
if show_table1
var table t = na
if na(t) and barstate.islast
t := table.new(position.middle_right, 6, 6, bgcolor=color.new(color.black, 90))
table.cell(t, 0, 0, "15Dk Yön", text_color=color.blue, bgcolor=color.new(color.gray, 80))
table.cell(t, 0, 1, "15Dk Fiyat", text_color=color.blue, bgcolor=color.new(color.gray, 80))
table.cell(t, 0, 2, "15Dk Ortalama Bar", text_color=color.blue, bgcolor=color.new(color.gray, 80))
table.cell(t, 0, 3, "15Dk İhtimal", text_color=color.blue, bgcolor=color.new(color.gray, 80))
// Tablo verilerini güncelleme
if not na(t)
table.cell(t, 1, 0, "Yukarı", text_color=color.green, bgcolor=color.new(color.gray, 80))
table.cell(t, 1, 1, str.tostring(up_move, "#.##"), text_color=color.green, bgcolor=color.new(color.gray, 80))
table.cell(t, 1, 2, str.tostring(up_avg_bars, "#.##"), text_color=color.green, bgcolor=color.new(color.gray, 80))
table.cell(t, 2, 0, "Aşağı", text_color=color.red, bgcolor=color.new(color.gray, 80))
table.cell(t, 2, 1, str.tostring(down_move, "#.##"), text_color=color.red, bgcolor=color.new(color.gray, 80))
table.cell(t, 2, 2, str.tostring(down_avg_bars, "#.##"), text_color=color.red, bgcolor=color.new(color.gray, 80))
table.cell(t, 1, 3, str.tostring(up_percentage, "#.##") + "%", text_color=color.green, bgcolor=color.new(color.gray, 80))
table.cell(t, 2, 3, str.tostring(down_percentage, "#.##") + "%", text_color=color.red, bgcolor=color.new(color.gray, 80))
// emaFast_tf = input.string("1W", "EMA 8 Timeframe", options=["", "1", "3", "5", "15", "30", "45", "60", "120", "180", "240", "1D", "1W", "1M"], inline="ema8")
emaFast_tf = input.timeframe("240", "Yeşil Zaman Periyodu", inline="ema8")
emaFastLength = input.int(8, "Periyot", inline="ema8")
ema8Color = input.color(color.green, "Renk", inline="ema8")
// emaSlow_tf = input.string("1W", "EMA 14 Timeframe", options=["", "1", "3", "5", "15", "30", "45", "60", "120", "180", "240", "1D", "1W", "1M"], inline="ema14")
emaSlow_tf = input.timeframe("240", "Turuncu Zaman Periyodu", inline="ema14")
emaSlowLength = input.int(14, "Periyot", inline="ema14")
ema14Color = input.color(color.orange, "Renk", inline="ema14")
// kijun_tf = input.string("1W", "Kijun Timeframe", options=["", "1", "3", "5", "15", "30", "45", "60", "120", "180", "240", "1D", "1W", "1M"], inline="kijun")
kijun_tf = input.timeframe("240", "Mor Zaman Periyodu", inline="kijun")
kijunPeriod = input.int(21, "Periyot", inline="kijun")
kijunColor = input.color(color.purple, "Renk", inline="kijun")
// EMA hesaplamaları
ema8 = request.security(syminfo.tickerid, emaFast_tf, ta.ema(close, emaFastLength), barmerge.gaps_off)
ema14 = request.security(syminfo.tickerid, emaSlow_tf, ta.ema(close, emaSlowLength), barmerge.gaps_off)
// Kijun hesaplaması
kijun = request.security(syminfo.tickerid, kijun_tf, math.avg(ta.lowest(low, kijunPeriod), ta.highest(high, kijunPeriod)), barmerge.gaps_off)
// Çizgilerin çizilmesi
plot(ema8, "Yeşil", color=ema8Color, linewidth=2)
plot(ema14, "Turuncu", color=ema14Color, linewidth=2)
//plot(ema34, "Siyah", color=ema34Color, linewidth=2)
plot(kijun, "Mor", color=kijunColor, linewidth=2)
//plot(emaGhost, "Direnç", color=ghostColor, linewidth=1, style=plot.style_circles)
// Kullanıcıdan giriş almak için bir boolean değişken ekleyelim
showTable = input.bool(true, "Stop/KarAl Tablosunu Göster/Gizle")
// Son kapanış fiyatı
last_close = close
// Hedef fiyatlar
take_profit_price = last_close * 1.05
stop_profit_price = last_close * 0.97
// Satır rengi (şerit efekti için)
rowColor = (bar_index % 2 == 0) ? color.rgb(255, 255, 255) : color.rgb(220, 220, 220)
// Tabloyu sadece bir kez oluştur
var table customTable = na
if showTable
if na(customTable)
customTable := table.new(position.bottom_right, 9, 5, bgcolor=color.rgb(243, 255, 223), frame_color=color.green)
// Başlıkları ekleyelim
table.cell(customTable, 7, 0, "15Dk Stop", bgcolor=color.rgb(243, 255, 223), text_color=color.red)
table.cell(customTable, 8, 0, "15Dk İlk Kar Alma", bgcolor=color.rgb(243, 255, 223), text_color=color.green)
// Verileri güncelle
table.cell(customTable, 7, 1, str.tostring(stop_profit_price, "#.##"), bgcolor=color.rgb(243, 255, 223), text_color=color.red, bgcolor=rowColor)
table.cell(customTable, 8, 1, str.tostring(take_profit_price, "#.##"), bgcolor=color.rgb(243, 255, 223), text_color=color.green, bgcolor=rowColor)
// Açıklama satırı ekleyelim
table.cell(customTable, 7, 2, "Açıklama;", bgcolor=color.rgb(243, 255, 223), text_color=color.blue)
table.cell(customTable, 8, 2, "Bu değerler için son sinyal", bgcolor=color.rgb(243, 255, 223), text_color=color.blue)
table.cell(customTable, 8, 3, "mumundaki stop ve kar al", bgcolor=color.rgb(243, 255, 223), text_color=color.blue)
table.cell(customTable, 8, 4, " rakamlarına alarm kurulmalı", bgcolor=color.rgb(243, 255, 223), text_color=color.blue)
// 500 periyotluk Zaman Ağırlıklı Ortalama (TSMA) hesapla
price = close
tsma500 = ta.linreg(price, 500, 0)
// 500 periyotluk Hacim Ağırlıklı Ortalama (VWMA) hesapla
vwma500 = ta.vwma(price, 500)
// TSMA çizgi rengi: fiyat üstündeyse yeşil, altındaysa kırmızı
tsma_color = price > tsma500 ? color.aqua : color.orange
// VWMA çizgi rengi: fiyat üstündeyse yeşil, altındaysa kırmızı
vwma_color = price > vwma500 ? color.blue : color.yellow
tsma500_cross_vwma500 = ta.crossover(tsma500, vwma500)
//alertcondition(tsma500_cross_vwma500, title="Zaman Hacmi Yukarı Kesti!", message="Zaman Hacmi Yukarı Kesti!")
//plotshape(tsma500_cross_vwma500, location=location.belowbar, color=color.green, style=shape.labelup, title="Zaman Hacmi Yukarı Kesti!")
// Kullanıcı tarafından ayarlanabilir çizgileri
tsma_width = input.int(2, title="Zaman Ağırlıklı Ortalama Çizgi Kalınlığı") // varsayılan 2, kullanıcı tarafından belirlenen
vwma_width = input.int(2, title="Hacim Ağırlıklı Ortalama Çizgi Kalınlığı") // varsayılan 2, kullanıcı tarafından izlenebilir
// TSMA çizgi grafiği
plot(tsma500, color=tsma_color, title="Zaman Ağırlıklı Ortalama", linewidth=tsma_width)
// VWMA çizgi grafiği
plot(vwma500, color=vwma_color, title="Hacim Ağırlıklı Ortalama", linewidth=vwma_width)
// MACD hesaplama
macd_fast = ta.ema(price, 12)
macd_slow = ta.ema(price, 26)
macd_line = macd_fast - macd_slow
macd_signal = ta.ema(macd_line, 9)
// ✅ AL SİNYALİ (TSMA YUKARI KESİLİRSE)
tsma_buy = ta.crossover(price, tsma500)
alertcondition(tsma_buy, title="Zaman Ağırlıklı Ortalamayı Fiyat Yukarı Kesti", message="Fiyat Zaman Ağırlıklı Ortalama'yı yukarıda kesti! AL işareti!")
// 🚫 SAT SİNYALİ (TSMA AŞAĞI KESİLİRSE)
//tsma_sell = ta.crossunder(price, tsma500)
//alertcondition(tsma_sell, title="Zaman Ağırlıklı Ortalamayı Fiyat Aşağı Kesti", message="Fiyat Zaman Ağırlıklı Ortalama'yı aşağı kesti! SAT sinyali!")
// ✅ AL SİNYALİ (VWMA YUKARI KESİLİRSE)
//vwma_buy = ta.crossover(price, vwma500)
//alertcondition(vwma_buy, title="Hacim Ağırlıklı Ortalamayı Fiyat Yukarı Kesti", message="Fiyat Hacim Ağırlıklı Ortalama'yı yukarı kesti! AL işareti!")
// 🚫 SAT SİNYALİ (VWMA AŞAĞI KESİLİRSE)
//vwma_sell = ta.crossunder(price, vwma500)
//alertcondition(vwma_sell, title="Hacim Ağırlıklı Ortalamayı Fiyat Aşağı Kesti", message="Fiyat Hacim Ağırlıklı Ortalama'yı aşağı kesti! SAT sinyali!")
// ✅ MACD AL SİNYALİ (MACD YAVAŞ SİNYALİ MACD HIZLIYI YUKARI KESERSE)
//macd_buy = ta.crossunder(macd_signal, macd_line)
//alertcondition(macd_buy, title="MACD Hızlı Sinyali MACD Yavaş Sinyalini Yukarı Kesti", message="MACD Hızlı Sinyali MACD Yavaş Sinyalini yukarıda kesti! AL işareti!")
// ✅ MACD AL SİNYALİ (MACD YAVAŞ SİNYALİ 0 SEVİYESİNİ YUKARI KESERSE)
macd_zero_cross = ta.crossover(macd_line, 0)
alertcondition(macd_zero_cross, title="MACD Yavaş Sinyali 0 Seviyesini Yukarı Kesti", message="MACD Yavaş Sinyali 0 seviyesini yukarıda kesti! AL işareti!")
// Tüm koşullardan herhangi biri sağlanırsa tarama yapmak için koşul
scan_condition = tsma_buy or up_target_percentage or macd_zero_cross
// Tarama koşulu sağlandığında, hangi koşulun tetiklendiğini belirten mesaj
var label last_label = na
if scan_condition
// Eski etiketi sil
if (not na(last_label))
label.delete(last_label)
// Yeni etiket oluştur
var string scan_message = ""
scan_message := tsma_buy ? "15Dk Fiyat Zamansal Ortalamayı yukarı kesti AL" :
up_target_percentage ? "15Dk Al" :
macd_zero_cross ? "15Dk Macd Sinyali 0 seviyesini yukarı kesti" : ""
last_label := label.new(bar_index, high, scan_message, color=color.new(color.orange, 0), textcolor=color.black, style=label.style_label_upper_left, size=size.normal)
// Kesim noktalarına işaret koy
plotshape(series=tsma_buy, location=location.belowbar, color=color.green, style=shape.labelup, title="Zaman Ağırlıklı Ortalama AL")
//plotshape(series=tsma_sell, location=location.abovebar, color=color.red, style=shape.labeldown, title="Zaman Ağırlıklı Ortalama SAT")
//plotshape(series=vwma_buy, location=location.belowbar, color=color.green, style=shape.triangleup, title="Hacim Ağırlıklı Ortalama AL")
//plotshape(series=vwma_sell, location=location.abovebar, color=color.red, style=shape.triangledown, title="Hacim Ağırlıklı Ortalama SAT")
plotshape(series=macd_zero_cross, location=location.belowbar, color=color.green, style=shape.triangleup, title="MACD Yavaş 0 Seviyesini YUKARI Kesti")
//@version=5
//indicator("AutoAlım ve Satım Koşulu", overlay=true)
// Koşulların tanımlanması
//tsma_buy = ta.crossover(ta.sma(close, 20), ta.sma(close, 50)) // TSMA AutoAlım koşulu
//up_target_percentage = close > close[1] * 1.01 // Hedef yüzdesi AutoAlım koşulu
//macd_zero_cross = ta.crossover(ta.macd(close, 12, 26, 9)[0], 0) // MACD sıfır kesişimi
// Tek AutoAlım koşulu: Herhangi biri gerçekleşirse AutoAlım yap
Autoal = up_target_percentage or macd_zero_cross //tsma_buy or up_target_percentage or macd_zero_cross
// Durum değişkenleri
var float Autoalfiyati = na // AutoAlım fiyatını tutan değişken
var bool Autoalimyapildi = false // AutoAlım yapılıp yapılmadığını kontrol eden değişken
// AutoAlım işlemi
if (Autoal and not Autoalimyapildi)
Autoalfiyati := close
Autoalimyapildi := true
label.new(bar_index, close, text="AutoAl", color=color.green, size=size.small)
// AutoSatış koşulları: %3 stop veya %5 kar
kar_or_zarar = (close - Autoalfiyati) / Autoalfiyati * 100
Autosatiskosulu = kar_or_zarar >= 4 or kar_or_zarar <= -4
// AutoSatış işlemi
if (Autosatiskosulu and Autoalimyapildi)
Autoalimyapildi := false
label.new(bar_index, close, text="AutoSatış", color=color.red, size=size.small)
// Alarm koşulları
alertcondition(Autoal and not Autoalimyapildi, title="AutoAlım Alarmı", message="AutoAlım koşulu gerçekleşti!")
alertcondition(Autosatiskosulu and Autoalimyapildi, title="AutoSatış Alarmı", message="AutoSatış koşulu gerçekleşti!")
// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
al= Autoal
sat= Autosatiskosulu
alertcondition(al, title='Al', message='Banker Al!')
alertcondition(sat, title='Sat', message='Banker Sat!')
/////////////////////////// TARAMA
func() =>
[al,sat]
///////////////////
//GRUP VE TARANACAK HİSSE SAYISINI AYNI ŞEKİLDE DİLEDİĞİNİZ GİBİ ARTIRABİLİRSİNİZ.
s01 = input.symbol(title='1', defval='BIST:AKSA', group = "╠═════════════ ÖZEL LİSTE ═════════════╣")
s02 = input.symbol(title='2', defval='BIST:ALARK')
s03 = input.symbol(title='3', defval='BIST:ARCLK')
s04 = input.symbol(title='4', defval='BIST:AYGAZ')
s05 = input.symbol(title='5', defval='BIST:BRSAN')
s06 = input.symbol(title='6', defval='BIST:CCOLA')
s07 = input.symbol(title='7', defval='BIST:CIMSA')
s08 = input.symbol(title='8', defval='BIST:DOAS')
s09 = input.symbol(title='9', defval='BIST:ENJSA')
s10 = input.symbol(title='10', defval='BIST:FROTO')
s11 = input.symbol(title='11', defval='BIST:INDES')
s12 = input.symbol(title='12', defval='BIST:JANTS')
s13 = input.symbol(title='13', defval='BIST:KCAER')
s14 = input.symbol(title='14', defval='BIST:KCHOL')
s15 = input.symbol(title='15', defval='BIST:MAVI')
s16 = input.symbol(title='16', defval='BIST:MGROS')
s17 = input.symbol(title='17', defval='BIST:OTKAR')
s18 = input.symbol(title='18', defval='BIST:PGSUS')
s19 = input.symbol(title='19', defval='BIST:SAHOL')
s20 = input.symbol(title='20', defval='BIST:TAVHL')
s21 = input.symbol(title='21', defval='BIST:THYAO')
s22 = input.symbol(title='22', defval='BIST:TOASO')
s23 = input.symbol(title='23', defval='BIST:TTRAK')
s24 = input.symbol(title='24', defval='BIST:TUPRS')
s25 = input.symbol(title='25', defval='BIST:SISE')
s26 = input.symbol(title='26', defval='BIST:CWENE')
s27 = input.symbol(title='27', defval='BIST:ASTOR')
s28 = input.symbol(title='28', defval='BIST:BINHO')
s29 = input.symbol(title='29', defval='BIST:AKBNK')
s30 = input.symbol(title='30', defval='BIST:VAKKO')
s31 = input.symbol(title='31', defval='BIST:BIMAS')
s32 = input.symbol(title='32', defval='BIST:HALKB')
s33 = input.symbol(title='33', defval='BIST:SOKM')
s34 = input.symbol(title='34', defval='BIST:TCELL')
s35 = input.symbol(title='35', defval='BINANCE:BTCUSDT')
a01 = grupSec == '1' ? 'BIST:ACSEL' : grupSec == '2' ? 'BIST:BRKSN' : grupSec == '3' ? 'BIST:EYGYO' : grupSec == '4' ? 'BIST:KATMR' : grupSec == '5' ? 'BIST:MIATK' : grupSec == '6' ? 'BIST:SAYAS' : grupSec == '7' ? 'BIST:HEKTS' : grupSec == '8' ? 'BIST:IZMDC' : grupSec == '9' ? 'BIST:KRSTL' : grupSec == '10' ? 'BIST:MHRGY' : grupSec == '11' ? 'BIST:OZRDN' : grupSec == '12' ? 'BIST:RYGYO' : grupSec == '13' ? 'BIST:TABGD' : grupSec == '14' ? 'BIST:ULUUN' : grupSec == 'ÖZEL LİSTE' ? s01 : na
a02 = grupSec == '1' ? 'BIST:ADESE' : grupSec == '2' ? 'BIST:BRLSM' : grupSec == '3' ? 'BIST:FADE' : grupSec == '4' ? 'BIST:KAYSE' : grupSec == '5' ? 'BIST:MNDRS' : grupSec == '6' ? 'BIST:SEGMN' : grupSec == '7' ? 'BIST:HKTM' : grupSec == '8' ? 'BIST:JANTS' : grupSec == '9' ? 'BIST:KRTEK' : grupSec == '10' ? 'BIST:MIATK' : grupSec == '11' ? 'BIST:OZSUB' : grupSec == '12' ? 'BIST:RYSAS' : grupSec == '13' ? 'BIST:TARKM' : grupSec == '14' ? 'BIST:UMPAS' : grupSec == 'ÖZEL LİSTE' ? s02 : na
a03 = grupSec == '1' ? 'BIST:AHSGY' : grupSec == '2' ? 'BIST:BSOKE' : grupSec == '3' ? 'BIST:FMIZP' : grupSec == '4' ? 'BIST:KCAER' : grupSec == '5' ? 'BIST:MNDTR' : grupSec == '6' ? 'BIST:SEKUR' : grupSec == '7' ? 'BIST:HLGYO' : grupSec == '8' ? 'BIST:KAPLM' : grupSec == '9' ? 'BIST:KRVGD' : grupSec == '10' ? 'BIST:LYDHO' : grupSec == '11' ? 'BIST:PAGYO' : grupSec == '12' ? 'BIST:SAFKR' : grupSec == '13' ? 'BIST:TATEN' : grupSec == '14' ? 'BIST:UNLU' : grupSec == 'ÖZEL LİSTE' ? s03 : na
a04 = grupSec == '1' ? 'BIST:AKCNS' : grupSec == '2' ? 'BIST:BUCIM' : grupSec == '3' ? 'BIST:FONET' : grupSec == '4' ? 'BIST:KGYO' : grupSec == '5' ? 'BIST:MOBTL' : grupSec == '6' ? 'BIST:SELEC' : grupSec == '7' ? 'BIST:HTTBT' : grupSec == '8' ? 'BIST:KAREL' : grupSec == '9' ? 'BIST:KSTUR' : grupSec == '10' ? 'BIST:MMCAS' : grupSec == '11' ? 'BIST:PAMEL' : grupSec == '12' ? 'BIST:SAHOL' : grupSec == '13' ? 'BIST:TATGD' : grupSec == '14' ? 'BIST:USAK' : grupSec == 'ÖZEL LİSTE' ? s04 : na
a05 = grupSec == '1' ? 'BIST:AKSA' : grupSec == '2' ? 'BIST:BURCE' : grupSec == '3' ? 'BIST:FORMT' : grupSec == '4' ? 'BIST:KIMMR' : grupSec == '5' ? 'BIST:MPARK' : grupSec == '6' ? 'BIST:SELVA' : grupSec == '7' ? 'BIST:HUBVC' : grupSec == '8' ? 'BIST:KARSN' : grupSec == '9' ? 'BIST:KTLEV' : grupSec == '10' ? 'BIST:MNDRS' : grupSec == '11' ? 'BIST:PAPIL' : grupSec == '12' ? 'BIST:SAMAT' : grupSec == '13' ? 'BIST:TAVHL' : grupSec == '14' ? 'BIST:INTEK' : grupSec == 'ÖZEL LİSTE' ? s05 : na
a06 = grupSec == '1' ? 'BIST:AKSEN' : grupSec == '2' ? 'BIST:BURVA' : grupSec == '3' ? 'BIST:FZLGY' : grupSec == '4' ? 'BIST:KLSYN' : grupSec == '5' ? 'BIST:NATEN' : grupSec == '6' ? 'BIST:SILVR' : grupSec == '7' ? 'BIST:HUNER' : grupSec == '8' ? 'BIST:KARTN' : grupSec == '9' ? 'BIST:KTSKR' : grupSec == '10' ? 'BIST:MNDTR' : grupSec == '11' ? 'BIST:PARSN' : grupSec == '12' ? 'BIST:SANEL' : grupSec == '13' ? 'BIST:TBORG' : grupSec == '14' ? 'BIST:VAKBN' : grupSec == 'ÖZEL LİSTE' ? s06 : na
a07 = grupSec == '1' ? 'BIST:AKYHO' : grupSec == '2' ? 'BIST:CANTE' : grupSec == '3' ? 'BIST:GEDZA' : grupSec == '4' ? 'BIST:KNFRT' : grupSec == '5' ? 'BIST:NETAS' : grupSec == '6' ? 'BIST:SMART' : grupSec == '7' ? 'BIST:HURGZ' : grupSec == '8' ? 'BIST:KARYE' : grupSec == '9' ? 'BIST:KUTPO' : grupSec == '10' ? 'BIST:MOBTL' : grupSec == '11' ? 'BIST:PASEU' : grupSec == '12' ? 'BIST:SANFM' : grupSec == '13' ? 'BIST:TCELL' : grupSec == '14' ? 'BIST:VAKFN' : grupSec == 'ÖZEL LİSTE' ? s07 : na
a08 = grupSec == '1' ? 'BIST:ALBRK' : grupSec == '2' ? 'BIST:CEMAS' : grupSec == '3' ? 'BIST:GENIL' : grupSec == '4' ? 'BIST:KONKA' : grupSec == '5' ? 'BIST:NTGAZ' : grupSec == '6' ? 'BIST:SMRTG' : grupSec == '7' ? 'BIST:ICBCT' : grupSec == '8' ? 'BIST:KATMR' : grupSec == '9' ? 'BIST:KUVVA' : grupSec == '10' ? 'BIST:MOGAN' : grupSec == '11' ? 'BIST:PATEK' : grupSec == '12' ? 'BIST:SANKO' : grupSec == '13' ? 'BIST:TDGYO' : grupSec == '14' ? 'BIST:VAKKO' : grupSec == 'ÖZEL LİSTE' ? s08 : na
a09 = grupSec == '1' ? 'BIST:ALCTL' : grupSec == '2' ? 'BIST:CEMTS' : grupSec == '3' ? 'BIST:GOLTS' : grupSec == '4' ? 'BIST:KONYA' : grupSec == '5' ? 'BIST:NUHCM' : grupSec == '6' ? 'BIST:SNGYO' : grupSec == '7' ? 'BIST:ICUGS' : grupSec == '8' ? 'BIST:KAYSE' : grupSec == '9' ? 'BIST:KUYAS' : grupSec == '10' ? 'BIST:MPARK' : grupSec == '11' ? 'BIST:PCILT' : grupSec == '12' ? 'BIST:SARKY' : grupSec == '13' ? 'BIST:TEKTU' : grupSec == '14' ? 'BIST:VANGD' : grupSec == 'ÖZEL LİSTE' ? s09 : na
a101 = grupSec == '1' ? 'BIST:ALKA' : grupSec == '2' ? 'BIST:CGCAM' : grupSec == '3' ? 'BIST:GENTS' : grupSec == '4' ? 'BIST:KOPOL' : grupSec == '5' ? 'BIST:OBAMS' : grupSec == '6' ? 'BIST:SNICA' : grupSec == '7' ? 'BIST:IDGYO' : grupSec == '8' ? 'BIST:KBORU' : grupSec == '9' ? 'BIST:KZBGY' : grupSec == '10' ? 'BIST:MRGYO' : grupSec == '11' ? 'BIST:PEHOL' : grupSec == '12' ? 'BIST:SASA' : grupSec == '13' ? 'BIST:TERA' : grupSec == '14' ? 'BIST:VBTYZ' : grupSec == 'ÖZEL LİSTE' ? s10 : na
a11 = grupSec == '1' ? 'BIST:ALKIM' : grupSec == '2' ? 'BIST:CMBTN' : grupSec == '3' ? 'BIST:GEREL' : grupSec == '4' ? 'BIST:BOSSA' : grupSec == '5' ? 'BIST:OBASE' : grupSec == '6' ? 'BIST:SOKE' : grupSec == '7' ? 'BIST:IEYHO' : grupSec == '8' ? 'BIST:KCAER' : grupSec == '9' ? 'BIST:KZGYO' : grupSec == '10' ? 'BIST:MRSHL' : grupSec == '11' ? 'BIST:PEKGY' : grupSec == '12' ? 'BIST:SAYAS' : grupSec == '13' ? 'BIST:LYDYE' : grupSec == '14' ? 'BIST:VERTU' : grupSec == 'ÖZEL LİSTE' ? s11 : na
a12 = grupSec == '1' ? 'BIST:ALKLC' : grupSec == '2' ? 'BIST:COSMO' : grupSec == '3' ? 'BIST:GOKNR' : grupSec == '4' ? 'BIST:KRDMA' : grupSec == '5' ? 'BIST:ONCSM' : grupSec == '6' ? 'BIST:SRVGY' : grupSec == '7' ? 'BIST:IHAAS' : grupSec == '8' ? 'BIST:KCHOL' : grupSec == '9' ? 'BIST:LIDER' : grupSec == '10' ? 'BIST:MSGYO' : grupSec == '11' ? 'BIST:PENGD' : grupSec == '12' ? 'BIST:SDTTR' : grupSec == '13' ? 'BIST:TEZOL' : grupSec == '14' ? 'BIST:VERUS' : grupSec == 'ÖZEL LİSTE' ? s12 : na
a13 = grupSec == '1' ? 'BIST:ALTNY' : grupSec == '2' ? 'BIST:CUSAN' : grupSec == '3' ? 'BIST:GOODY' : grupSec == '4' ? 'BIST:KRDMB' : grupSec == '5' ? 'BIST:ORCAY' : grupSec == '6' ? 'BIST:SUNTK' : grupSec == '7' ? 'BIST:IHEVA' : grupSec == '8' ? 'BIST:KENT' : grupSec == '9' ? 'BIST:LIDFA' : grupSec == '10' ? 'BIST:MTRKS' : grupSec == '11' ? 'BIST:PENTA' : grupSec == '12' ? 'BIST:SEGYO' : grupSec == '13' ? 'BIST:TGSAS' : grupSec == '14' ? 'BIST:VESBE' : grupSec == 'ÖZEL LİSTE' ? s13 : na
a14 = grupSec == '1' ? 'BIST:ALVES' : grupSec == '2' ? 'BIST:CWENE' : grupSec == '3' ? 'BIST:GRSEL' : grupSec == '4' ? 'BIST:KRDMD' : grupSec == '5' ? 'BIST:ORGE' : grupSec == '6' ? 'BIST:SURGY' : grupSec == '7' ? 'BIST:IHGZT' : grupSec == '8' ? 'BIST:KERVN' : grupSec == '9' ? 'BIST:LINK' : grupSec == '10' ? 'BIST:MTRYO' : grupSec == '11' ? 'BIST:PETKM' : grupSec == '12' ? 'BIST:SEKFK' : grupSec == '13' ? 'BIST:THYAO' : grupSec == '14' ? 'BIST:VESTL' : grupSec == 'ÖZEL LİSTE' ? s14 : na
a15 = grupSec == '1' ? 'BIST:ANGEN' : grupSec == '2' ? 'BIST:DAGHL' : grupSec == '3' ? 'BIST:GRTHO' : grupSec == '4' ? 'BIST:KRGYO' : grupSec == '5' ? 'BIST:OSTIM' : grupSec == '6' ? 'BIST:SUWEN' : grupSec == '7' ? 'BIST:IHLAS' : grupSec == '8' ? 'BIST:KERVT' : grupSec == '9' ? 'BIST:LKMNH' : grupSec == '10' ? 'BIST:MZHLD' : grupSec == '11' ? 'BIST:PETUN' : grupSec == '12' ? 'BIST:SEKUR' : grupSec == '13' ? 'BIST:TKFEN' : grupSec == '14' ? 'BIST:VKFYO' : grupSec == 'ÖZEL LİSTE' ? s15 : na
a16 = grupSec == '1' ? 'BIST:ARASE' : grupSec == '2' ? 'BIST:DARDL' : grupSec == '3' ? 'BIST:GUBRF' : grupSec == '4' ? 'BIST:KRONT' : grupSec == '5' ? 'BIST:OYAKC' : grupSec == '6' ? 'BIST:TCKRC' : grupSec == '7' ? 'BIST:IHLGM' : grupSec == '8' ? 'BIST:KFEIN' : grupSec == '9' ? 'BIST:LMKDC' : grupSec == '10' ? 'BIST:NATEN' : grupSec == '11' ? 'BIST:PGSUS' : grupSec == '12' ? 'BIST:SELEC' : grupSec == '13' ? 'BIST:TKNSA' : grupSec == '14' ? 'BIST:VKGYO' : grupSec == 'ÖZEL LİSTE' ? s16 : na
a17 = grupSec == '1' ? 'BIST:ARDYZ' : grupSec == '2' ? 'BIST:DCTTR' : grupSec == '3' ? 'BIST:GUNDG' : grupSec == '4' ? 'BIST:KRPLS' : grupSec == '5' ? 'BIST:OZATD' : grupSec == '6' ? 'BIST:TDGYO' : grupSec == '7' ? 'BIST:IHYAY' : grupSec == '8' ? 'BIST:KGYO' : grupSec == '9' ? 'BIST:LOGO' : grupSec == '10' ? 'BIST:NETAS' : grupSec == '11' ? 'BIST:PINSU' : grupSec == '12' ? 'BIST:SELGD' : grupSec == '13' ? 'BIST:TLMAN' : grupSec == '14' ? 'BIST:VKING' : grupSec == 'ÖZEL LİSTE' ? s17 : na
a188 = grupSec == '1' ? 'BIST:ARENA' : grupSec == '2' ? 'BIST:DESPC' : grupSec == '3' ? 'BIST:GWIND' : grupSec == '4' ? 'BIST:KRSTL' : grupSec == '5' ? 'BIST:OZRDN' : grupSec == '6' ? 'BIST:TEZOL' : grupSec == '7' ? 'BIST:IMASM' : grupSec == '8' ? 'BIST:KIMMR' : grupSec == '9' ? 'BIST:LRSHO' : grupSec == '10' ? 'BIST:NIBAS' : grupSec == '11' ? 'BIST:PKART' : grupSec == '12' ? 'BIST:SELVA' : grupSec == '13' ? 'BIST:TMPOL' : grupSec == '14' ? 'BIST:VRGYO' : grupSec == 'ÖZEL LİSTE' ? s18 : na
a19 = grupSec == '1' ? 'BIST:ASELS' : grupSec == '2' ? 'BIST:DGATE' : grupSec == '3' ? 'BIST:HATSN' : grupSec == '4' ? 'BIST:KRVGD' : grupSec == '5' ? 'BIST:OZSUB' : grupSec == '6' ? 'BIST:TKFEN' : grupSec == '7' ? 'BIST:INDES' : grupSec == '8' ? 'BIST:KLGYO' : grupSec == '9' ? 'BIST:LUKSK' : grupSec == '10' ? 'BIST:NTGAZ' : grupSec == '11' ? 'BIST:PKENT' : grupSec == '12' ? 'BIST:SEYKM' : grupSec == '13' ? 'BIST:TMSN' : grupSec == '14' ? 'BIST:YAPRK' : grupSec == 'ÖZEL LİSTE' ? s19 : na
a20 = grupSec == '1' ? 'BIST:ASUZU' : grupSec == '2' ? 'BIST:DGNMO' : grupSec == '3' ? 'BIST:HKTM' : grupSec == '4' ? 'BIST:KTLEV' : grupSec == '5' ? 'BIST:OZYSR' : grupSec == '6' ? 'BIST:TNZTP' : grupSec == '7' ? 'BIST:INFO' : grupSec == '8' ? 'BIST:KLKIM' : grupSec == '9' ? 'BIST:MAALT' : grupSec == '10' ? 'BIST:NTHOL' : grupSec == '11' ? 'BIST:PLTUR' : grupSec == '12' ? 'BIST:SILVR' : grupSec == '13' ? 'BIST:TNZTP' : grupSec == '14' ? 'BIST:YATAS' : grupSec == 'ÖZEL LİSTE' ? s20 : na
a21 = grupSec == '1' ? 'BIST:ATAKP' : grupSec == '2' ? 'BIST:DMRGD' : grupSec == '3' ? 'BIST:HOROZ' : grupSec == '4' ? 'BIST:KUTPO' : grupSec == '5' ? 'BIST:PARSN' : grupSec == '6' ? 'BIST:TUCLK' : grupSec == '7' ? 'BIST:INGRM' : grupSec == '8' ? 'BIST:KLMSN' : grupSec == '9' ? 'BIST:MACKO' : grupSec == '10' ? 'BIST:NUGYO' : grupSec == '11' ? 'BIST:PNLSN' : grupSec == '12' ? 'BIST:SISE' : grupSec == '13' ? 'BIST:TOASO' : grupSec == '14' ? 'BIST:YAYLA' : grupSec == 'ÖZEL LİSTE' ? s21 : na
a22 = grupSec == '1' ? 'BIST:ATATP' : grupSec == '2' ? 'BIST:DOAS' : grupSec == '3' ? 'BIST:HRKET' : grupSec == '4' ? 'BIST:KUYAS' : grupSec == '5' ? 'BIST:PASEU' : grupSec == '6' ? 'BIST:TUKAS' : grupSec == '7' ? 'BIST:INTEM' : grupSec == '8' ? 'BIST:KLNMA' : grupSec == '9' ? 'BIST:MAGEN' : grupSec == '10' ? 'BIST:NUHCM' : grupSec == '11' ? 'BIST:PNSUT' : grupSec == '12' ? 'BIST:SKBNK' : grupSec == '13' ? 'BIST:TRCAS' : grupSec == '14' ? 'BIST:YBTAS' : grupSec == 'ÖZEL LİSTE' ? s22 : na
a23 = grupSec == '1' ? 'BIST:ATEKS' : grupSec == '2' ? 'BIST:DOBUR' : grupSec == '3' ? 'BIST:HTTBT' : grupSec == '4' ? 'BIST:KZBGY' : grupSec == '5' ? 'BIST:PEHOL' : grupSec == '6' ? 'BIST:TUPRS' : grupSec == '7' ? 'BIST:INVEO' : grupSec == '8' ? 'BIST:KLRHO' : grupSec == '9' ? 'BIST:MAKIM' : grupSec == '10' ? 'BIST:OBAMS' : grupSec == '11' ? 'BIST:POLHO' : grupSec == '12' ? 'BIST:SKTAS' : grupSec == '13' ? 'BIST:TRGYO' : grupSec == '14' ? 'BIST:YEOTK' : grupSec == 'ÖZEL LİSTE' ? s23 : na
a24 = grupSec == '1' ? 'BIST:AVGYO' : grupSec == '2' ? 'BIST:DOFER' : grupSec == '3' ? 'BIST:HUNER' : grupSec == '4' ? 'BIST:LILAK' : grupSec == '5' ? 'BIST:PEKGY' : grupSec == '6' ? 'BIST:TUREX' : grupSec == '7' ? 'BIST:INVES' : grupSec == '8' ? 'BIST:KLSER' : grupSec == '9' ? 'BIST:MAKTK' : grupSec == '10' ? 'BIST:OBASE' : grupSec == '11' ? 'BIST:POLTK' : grupSec == '12' ? 'BIST:SKYLP' : grupSec == '13' ? 'BIST:TRILC' : grupSec == '14' ? 'BIST:YESIL' : grupSec == 'ÖZEL LİSTE' ? s24 : na
a25 = grupSec == '1' ? 'BIST:AVPGY' : grupSec == '2' ? 'BIST:DURKN' : grupSec == '3' ? 'BIST:IDGYO' : grupSec == '4' ? 'BIST:LKMNH' : grupSec == '5' ? 'BIST:PENGD' : grupSec == '6' ? 'BIST:ULUSE' : grupSec == '7' ? 'BIST:IPEKE' : grupSec == '8' ? 'BIST:KLSYN' : grupSec == '9' ? 'BIST:MANAS' : grupSec == '10' ? 'BIST:ODAS' : grupSec == '11' ? 'BIST:PRDGS' : grupSec == '12' ? 'BIST:SKYMD' : grupSec == '13' ? 'BIST:TSGYO' : grupSec == '14' ? 'BIST:YGGYO' : grupSec == 'ÖZEL LİSTE' ? s25 : na
a26 = grupSec == '1' ? 'BIST:BAHKM' : grupSec == '2' ? 'BIST:DYOBY' : grupSec == '3' ? 'BIST:IHEVA' : grupSec == '4' ? 'BIST:LMKDC' : grupSec == '5' ? 'BIST:PENTA' : grupSec == '6' ? 'BIST:USAK' : grupSec == '7' ? 'BIST:ISATR' : grupSec == '8' ? 'BIST:KMPUR' : grupSec == '9' ? 'BIST:MARBL' : grupSec == '10' ? 'BIST:OFSYM' : grupSec == '11' ? 'BIST:PRKAB' : grupSec == '12' ? 'BIST:SMART' : grupSec == '13' ? 'BIST:TSKB' : grupSec == '14' ? 'BIST:YGYO' : grupSec == 'ÖZEL LİSTE' ? s26 : na
a27 = grupSec == '1' ? 'BIST:BAKAB' : grupSec == '2' ? 'BIST:EBEBK' : grupSec == '3' ? 'BIST:IHGZT' : grupSec == '4' ? 'BIST:LOGO' : grupSec == '5' ? 'BIST:PETKM' : grupSec == '6' ? 'BIST:VAKKO' : grupSec == '7' ? 'BIST:ISBIR' : grupSec == '8' ? 'BIST:KNFRT' : grupSec == '9' ? 'BIST:MARKA' : grupSec == '10' ? 'BIST:ONCSM' : grupSec == '11' ? 'BIST:PRKME' : grupSec == '12' ? 'BIST:SMRTG' : grupSec == '13' ? 'BIST:TSPOR' : grupSec == '14' ? 'BIST:YKBNK' : grupSec == 'ÖZEL LİSTE' ? s27 : na
a288 = grupSec == '1' ? 'BIST:BANVT' : grupSec == '2' ? 'BIST:EDATA' : grupSec == '3' ? 'BIST:IHLAS' : grupSec == '4' ? 'BIST:LRSHO' : grupSec == '5' ? 'BIST:PETUN' : grupSec == '6' ? 'BIST:VANGD' : grupSec == '7' ? 'BIST:ISBTR' : grupSec == '8' ? 'BIST:KONKA' : grupSec == '9' ? 'BIST:MARTI' : grupSec == '10' ? 'BIST:ORCAY' : grupSec == '11' ? 'BIST:PRZMA' : grupSec == '12' ? 'BIST:SNGYO' : grupSec == '13' ? 'BIST:TTKOM' : grupSec == '14' ? 'BIST:YKSLN' : grupSec == 'ÖZEL LİSTE' ? s28 : na
a29 = grupSec == '1' ? 'BIST:BASGZ' : grupSec == '2' ? 'BIST:EDIP' : grupSec == '3' ? 'BIST:IHLGM' : grupSec == '4' ? 'BIST:LUKSK' : grupSec == '5' ? 'BIST:PKART' : grupSec == '6' ? 'BIST:VBTYZ' : grupSec == '7' ? 'BIST:ISCTR' : grupSec == '8' ? 'BIST:KONTR' : grupSec == '9' ? 'BIST:MAVI' : grupSec == '10' ? 'BIST:ORGE' : grupSec == '11' ? 'BIST:PSDTC' : grupSec == '12' ? 'BIST:SNICA' : grupSec == '13' ? 'BIST:TTRAK' : grupSec == '14' ? 'BIST:YONGA' : grupSec == 'ÖZEL LİSTE' ? s29 : na
a30 = grupSec == '1' ? 'BIST:BAYRK' : grupSec == '2' ? 'BIST:EGEPO' : grupSec == '3' ? 'BIST:IHYAY' : grupSec == '4' ? 'BIST:LYDHO' : grupSec == '5' ? 'BIST:PLTUR' : grupSec == '6' ? 'BIST:VESBE' : grupSec == '7' ? 'BIST:ISDMR' : grupSec == '8' ? 'BIST:KONYA' : grupSec == '9' ? 'BIST:MEDTR' : grupSec == '10' ? 'BIST:ORMA' : grupSec == '11' ? 'BIST:PSGYO' : grupSec == '12' ? 'BIST:SNKRN' : grupSec == '13' ? 'BIST:TUCLK' : grupSec == '14' ? 'BIST:YUNSA' : grupSec == 'ÖZEL LİSTE' ? s30 : na
a31 = grupSec == '1' ? 'BIST:BERA' : grupSec == '2' ? 'BIST:EGGUB' : grupSec == '3' ? 'BIST:IMASM' : grupSec == '4' ? 'BIST:MAGEN' : grupSec == '5' ? 'BIST:PNSUT' : grupSec == '6' ? 'BIST:VESTL' : grupSec == '7' ? 'BIST:ISFIN' : grupSec == '8' ? 'BIST:KOPOL' : grupSec == '9' ? 'BIST:MEGAP' : grupSec == '10' ? 'BIST:OSMEN' : grupSec == '11' ? 'BIST:QNBTR' : grupSec == '12' ? 'BIST:SNPAM' : grupSec == '13' ? 'BIST:TUKAS' : grupSec == '14' ? 'BIST:YYAPI' : grupSec == 'ÖZEL LİSTE' ? s31 : na
a32 = grupSec == '1' ? 'BIST:BEYAZ' : grupSec == '2' ? 'BIST:EGPRO' : grupSec == '3' ? 'BIST:INGRM' : grupSec == '4' ? 'BIST:MAKIM' : grupSec == '5' ? 'BIST:POLHO' : grupSec == '6' ? 'BIST:YATAS' : grupSec == '7' ? 'BIST:ISGSY' : grupSec == '8' ? 'BIST:KORDS' : grupSec == '9' ? 'BIST:MEGMT' : grupSec == '10' ? 'BIST:OSTIM' : grupSec == '11' ? 'BIST:QNBFK' : grupSec == '12' ? 'BIST:SODSN' : grupSec == '13' ? 'BIST:TUPRS' : grupSec == '14' ? 'BIST:YYLGD' : grupSec == 'ÖZEL LİSTE' ? s32 : na
a33 = grupSec == '1' ? 'BIST:BIENY' : grupSec == '2' ? 'BIST:EKSUN' : grupSec == '3' ? 'BIST:INTEM' : grupSec == '4' ? 'BIST:MANAS' : grupSec == '5' ? 'BIST:PRKAB' : grupSec == '6' ? 'BIST:YEOTK' : grupSec == '7' ? 'BIST:ISGYO' : grupSec == '8' ? 'BIST:KOZAA' : grupSec == '9' ? 'BIST:MEKAG' : grupSec == '10' ? 'BIST:OTKAR' : grupSec == '11' ? 'BIST:QUAGR' : grupSec == '12' ? 'BIST:SOKE' : grupSec == '13' ? 'BIST:TUREX' : grupSec == '14' ? 'BIST:ZEDUR' : grupSec == 'ÖZEL LİSTE' ? s33 : na
a34 = grupSec == '1' ? 'BIST:BIMAS' : grupSec == '2' ? 'BIST:ELITE' : grupSec == '3' ? 'BIST:ISDMR' : grupSec == '4' ? 'BIST:MARBL' : grupSec == '5' ? 'BIST:QUAGR' : grupSec == '6' ? 'BIST:YUNSA' : grupSec == '7' ? 'BIST:ISKPL' : grupSec == '8' ? 'BIST:KOZAL' : grupSec == '9' ? 'BIST:MEPET' : grupSec == '10' ? 'BIST:OTTO' : grupSec == '11' ? 'BIST:RALYH' : grupSec == '12' ? 'BIST:SOKM' : grupSec == '13' ? 'BIST:TURGG' : grupSec == '14' ? 'BIST:ZOREN' : grupSec == 'ÖZEL LİSTE' ? s34 : na
a35 = grupSec == '1' ? 'BIST:BINBN' : grupSec == '2' ? 'BIST:ENJSA' : grupSec == '3' ? 'BIST:ISKPL' : grupSec == '4' ? 'BIST:MARKA' : grupSec == '5' ? 'BIST:RALYH' : grupSec == '6' ? 'BIST:ZEDUR' : grupSec == '7' ? 'BIST:ISKUR' : grupSec == '8' ? 'BIST:KRDMA' : grupSec == '9' ? 'BIST:MERCN' : grupSec == '10' ? 'BIST:OYAKC' : grupSec == '11' ? 'BIST:RAYSG' : grupSec == '12' ? 'BIST:SONME' : grupSec == '13' ? 'BIST:TURSG' : grupSec == '14' ? 'BIST:ZRGYO' : grupSec == 'ÖZEL LİSTE' ? s35 : na
////////////////////
[c01_1, c01_2] = request.security(a01, per, func())
[c02_1, c02_2] = request.security(a02, per, func())
[c03_1, c03_2] = request.security(a03, per, func())
[c04_1, c04_2] = request.security(a04, per, func())
[c05_1, c05_2] = request.security(a05, per, func())
[c06_1, c06_2] = request.security(a06, per, func())
[c07_1, c07_2] = request.security(a07, per, func())
[c08_1, c08_2] = request.security(a08, per, func())
[c09_1, c09_2] = request.security(a09, per, func())
[c10_1, c10_2] = request.security(a101, per, func())
[c11_1, c11_2] = request.security(a11, per, func())
[c12_1, c12_2] = request.security(a12, per, func())
[c13_1, c13_2] = request.security(a13, per, func())
[c14_1, c14_2] = request.security(a14, per, func())
[c15_1, c15_2] = request.security(a15, per, func())
[c16_1, c16_2] = request.security(a16, per, func())
[c17_1, c17_2] = request.security(a17, per, func())
[c18_1, c18_2] = request.security(a188, per, func())
[c19_1, c19_2] = request.security(a19, per, func())
[c20_1, c20_2] = request.security(a20, per, func())
[c21_1, c21_2] = request.security(a21, per, func())
[c22_1, c22_2] = request.security(a22, per, func())
[c23_1, c23_2] = request.security(a23, per, func())
[c24_1, c24_2] = request.security(a24, per, func())
[c25_1, c25_2] = request.security(a25, per, func())
[c26_1, c26_2] = request.security(a26, per, func())
[c27_1, c27_2] = request.security(a27, per, func())
[c28_1, c28_2] = request.security(a288, per, func())
[c29_1, c29_2] = request.security(a29, per, func())
[c30_1, c30_2] = request.security(a30, per, func())
[c31_1, c31_2] = request.security(a31, per, func())
[c32_1, c32_2] = request.security(a32, per, func())
[c33_1, c33_2] = request.security(a33, per, func())
[c34_1, c34_2] = request.security(a34, per, func())
[c35_1, c35_2] = request.security(a35, per, func())
// Compose screener label //
scr_label1 = 'AL\n'
scr_label1 := c01_1 ? scr_label1 + a01 + ' ' + ' ' + '\n': scr_label1
scr_label1 := c02_1 ? scr_label1 + a02 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c03_1 ? scr_label1 + a03 + ' ' + ' ' + '\n': scr_label1
scr_label1 := c04_1 ? scr_label1 + a04 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c05_1 ? scr_label1 + a05 + ' ' + ' ' + '\n':scr_label1
scr_label1 := c06_1 ? scr_label1 + a06 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c07_1 ? scr_label1 + a07 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c08_1 ? scr_label1 + a08 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c09_1 ? scr_label1 + a09 + ' ' + ' ' + '\n': scr_label1
scr_label1 := c10_1 ? scr_label1 + a101 + ' ' + ' ' + '\n': scr_label1
scr_label1 := c11_1 ? scr_label1 + a11 + ' ' + ' ' + '\n': scr_label1
scr_label1 := c12_1 ? scr_label1 + a12 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c13_1 ? scr_label1 + a13 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c14_1 ? scr_label1 + a14 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c15_1 ? scr_label1 + a15 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c16_1 ? scr_label1 + a16 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c17_1 ? scr_label1 + a17 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c18_1 ? scr_label1 + a188 + ' ' + ' ' + '\n': scr_label1
scr_label1 := c19_1 ? scr_label1 + a19 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c20_1 ? scr_label1 + a20 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c21_1 ? scr_label1 + a21 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c22_1 ? scr_label1 + a22 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c23_1 ? scr_label1 + a23 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c24_1 ? scr_label1 + a24 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c25_1 ? scr_label1 + a25 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c26_1 ? scr_label1 + a26 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c27_1 ? scr_label1 + a27 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c28_1 ? scr_label1 + a288 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c29_1 ? scr_label1 + a29 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c30_1 ? scr_label1 + a30 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c31_1 ? scr_label1 + a31 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c32_1 ? scr_label1 + a32 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c33_1 ? scr_label1 + a33 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c34_1 ? scr_label1 + a34 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c35_1 ? scr_label1 + a35 + ' ' + ' ' + '\n' : scr_label1
// scr_label1 := c40_1 ? scr_label1 + a40 + ' ' + ' ' + '\n' : scr_label1
scr_label2 = 'SAT\n'
scr_label2 := c01_2 ? scr_label2 + a01 + ' ' + ' ' + '\n' : scr_label2
scr_label2 := c02_2 ? scr_label2 + a02 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c03_2 ? scr_label2 + a03 + ' ' + ' '+ '\n' : scr_label2
scr_label2 := c04_2 ? scr_label2 + a04 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c05_2 ? scr_label2 + a05 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c06_2 ? scr_label2 + a06 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c07_2 ? scr_label2 + a07 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c08_2 ? scr_label2 + a08 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c09_2 ? scr_label2 + a09 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c10_2 ? scr_label2 + a101+ ' ' + ' ' + '\n': scr_label2
scr_label2 := c11_2 ? scr_label2 + a11 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c12_2 ? scr_label2 + a12 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c13_2 ? scr_label2 + a13 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c14_2 ? scr_label2 + a14 + ' ' + ' '+ '\n' : scr_label2
scr_label2 := c15_2 ? scr_label2 + a15 + ' ' + ' '+ '\n' : scr_label2
scr_label2 := c16_2 ? scr_label2 + a16 + ' ' + ' '+ '\n' : scr_label2
scr_label2 := c17_2 ? scr_label2 + a17 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c18_2 ? scr_label2 + a188 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c19_2 ? scr_label2 + a19 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c20_2 ? scr_label2 + a20 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c21_2 ? scr_label2 + a21 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c22_2 ? scr_label2 + a22 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c23_2 ? scr_label2 + a23 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c24_2 ? scr_label2 + a24 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c25_2 ? scr_label2 + a25 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c26_2 ? scr_label2 + a26 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c27_2 ? scr_label2 + a27 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c28_2 ? scr_label2 + a288 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c29_2 ? scr_label2 + a29 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c30_2 ? scr_label2 + a30 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c31_2 ? scr_label2 + a31 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c32_2 ? scr_label2 + a32 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c33_2 ? scr_label2 + a33 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c34_2 ? scr_label2 + a34 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c35_2 ? scr_label2 + a35 + ' ' + ' ' + '\n': scr_label2
// scr_label1 := scr_label1 + '\n'
// scr_label2 := scr_label2 + '\n'
y_position = 200 // Her iki tablo için sabit bir y değeri
all_labels = scr_label1 + '\n' + scr_label2
// lab_1 = label.new(bar_index+20 + loc, close, all_labels,color=color.rgb(57, 58, 57), textcolor=color.white, style=label.style_label_up)
lab_1 = label.new(bar_index + 20 + loc, 0.2, all_labels, color=#393a3900, textcolor=color.white, style=label.style_label_up, size=size.large)
label.delete(lab_1[1])
Editor is loading...
Leave a Comment