Untitled
unknown
plain_text
18 days ago
15 kB
75
Indexable
Never
// © Mr_Rakun //@version=5 indicator('Screener Haftalık Kesişim', overlay=true) //////////// // INPUTS // // Haftalık WMA hesaplamaları wma9l = input.int(9, title="WMA 9 Periyodu") wma15l = input.int(15, title="WMA 15 Periyodu") weeklyWMA9 = ta.wma(close, wma9l) weeklyWMA15 = ta.wma(close, wma15l) col_width = input.float(5, title = "Column Width (%)") scr_numb = input.int(1, title = "Screen #", tooltip = '1 - rightmost screener', minval = 1) // Al sinyali - Fiyat haftalık WMA 9'un üzerine geçmeli ve WMA 9, WMA 15'ten büyük olmalı buySignal = ta.crossover(close, weeklyWMA9) and weeklyWMA9 > weeklyWMA15 // Sinyal çizimi plotshape(buySignal, title="Al Sinyali", location=location.belowbar, color=color.green, style=shape.labelup, size=size.small, text="AL") // WMA'ları grafikte gösterme plot(weeklyWMA9, color=color.blue, linewidth=2, title="Haftalık WMA 9") plot(weeklyWMA15, color=color.red, linewidth=2, title="Haftalık WMA 15") ///////////// // SYMBOLS // u01 = input.bool(true, title = "", group = 'Symbols', inline = 's01') u02 = input.bool(true, title = "", group = 'Symbols', inline = 's02') u03 = input.bool(true, title = "", group = 'Symbols', inline = 's03') u04 = input.bool(true, title = "", group = 'Symbols', inline = 's04') u05 = input.bool(true, title = "", group = 'Symbols', inline = 's05') u06 = input.bool(true, title = "", group = 'Symbols', inline = 's06') u07 = input.bool(true, title = "", group = 'Symbols', inline = 's07') u08 = input.bool(true, title = "", group = 'Symbols', inline = 's08') u09 = input.bool(true, title = "", group = 'Symbols', inline = 's09') u10 = input.bool(true, title = "", group = 'Symbols', inline = 's10') u11 = input.bool(true, title = "", group = 'Symbols', inline = 's11') u12 = input.bool(true, title = "", group = 'Symbols', inline = 's12') u13 = input.bool(true, title = "", group = 'Symbols', inline = 's13') u14 = input.bool(true, title = "", group = 'Symbols', inline = 's14') u15 = input.bool(true, title = "", group = 'Symbols', inline = 's15') u16 = input.bool(true, title = "", group = 'Symbols', inline = 's16') u17 = input.bool(true, title = "", group = 'Symbols', inline = 's17') u18 = input.bool(true, title = "", group = 'Symbols', inline = 's18') u19 = input.bool(true, title = "", group = 'Symbols', inline = 's19') u20 = input.bool(true, title = "", group = 'Symbols', inline = 's20') u21 = input.bool(true, title = "", group = 'Symbols', inline = 's21') u22 = input.bool(true, title = "", group = 'Symbols', inline = 's22') u23 = input.bool(true, title = "", group = 'Symbols', inline = 's23') u24 = input.bool(true, title = "", group = 'Symbols', inline = 's24') u25 = input.bool(true, title = "", group = 'Symbols', inline = 's25') u26 = input.bool(true, title = "", group = 'Symbols', inline = 's26') u27 = input.bool(true, title = "", group = 'Symbols', inline = 's27') u28 = input.bool(true, title = "", group = 'Symbols', inline = 's28') u29 = input.bool(true, title = "", group = 'Symbols', inline = 's29') u30 = input.bool(true, title = "", group = 'Symbols', inline = 's30') u31 = input.bool(true, title = "", group = 'Symbols', inline = 's31') u32 = input.bool(true, title = "", group = 'Symbols', inline = 's32') u33 = input.bool(true, title = "", group = 'Symbols', inline = 's33') u34 = input.bool(true, title = "", group = 'Symbols', inline = 's34') u35 = input.bool(true, title = "", group = 'Symbols', inline = 's35') u36 = input.bool(false, title = "", group = 'Symbols', inline = 's36') u37 = input.bool(false, title = "", group = 'Symbols', inline = 's37') u38 = input.bool(false, title = "", group = 'Symbols', inline = 's38') u39 = input.bool(false, title = "", group = 'Symbols', inline = 's39') u40 = input.bool(false, title = "", group = 'Symbols', inline = 's40') s01 = input.symbol('XRPUSDT', group = 'Symbols', inline = 's01') s02 = input.symbol('BTCUSDT', group = 'Symbols', inline = 's02') s03 = input.symbol('DOGEUSDT', group = 'Symbols', inline = 's03') s04 = input.symbol('BNBUSDT', group = 'Symbols', inline = 's04') s05 = input.symbol('ETHUSDT', group = 'Symbols', inline = 's05') s06 = input.symbol('ADAUSDT', group = 'Symbols', inline = 's06') s07 = input.symbol('XRPBTC', group = 'Symbols', inline = 's07') s08 = input.symbol('DOGEBTC', group = 'Symbols', inline = 's08') s09 = input.symbol('TRXUSDT', group = 'Symbols', inline = 's09') s10 = input.symbol('DOGEUSDT', group = 'Symbols', inline = 's10') s11 = input.symbol('BNBUSDT', group = 'Symbols', inline = 's11') s12 = input.symbol('ADAUSDT', group = 'Symbols', inline = 's12') s13 = input.symbol('VETUSDT', group = 'Symbols', inline = 's13') s14 = input.symbol('ETHBTC', group = 'Symbols', inline = 's14') s15 = input.symbol('BNBBTC', group = 'Symbols', inline = 's15') s16 = input.symbol('EOSUSDT', group = 'Symbols', inline = 's16') s17 = input.symbol('XLMUSDT', group = 'Symbols', inline = 's17') s18 = input.symbol('LTCUSDT', group = 'Symbols', inline = 's18') s19 = input.symbol('DOGEBTC', group = 'Symbols', inline = 's19') s20 = input.symbol('WINUSDT', group = 'Symbols', inline = 's20') s21 = input.symbol('DOTUSDT', group = 'Symbols', inline = 's21') s22 = input.symbol('BTTUSDT', group = 'Symbols', inline = 's22') s23 = input.symbol('BCHUSDT', group = 'Symbols', inline = 's23') s24 = input.symbol('ADABTC', group = 'Symbols', inline = 's24') s25 = input.symbol('IOSTUSDT', group = 'Symbols', inline = 's25') s26 = input.symbol('CHZUSDT', group = 'Symbols', inline = 's26') s27 = input.symbol('LINKUSDT', group = 'Symbols', inline = 's27') s28 = input.symbol('TRXBTC', group = 'Symbols', inline = 's28') s29 = input.symbol('BCHUSDT', group = 'Symbols', inline = 's29') s30 = input.symbol('BTCEUR', group = 'Symbols', inline = 's30') s31 = input.symbol('FILUSDT', group = 'Symbols', inline = 's31') s32 = input.symbol('HOTUSDT', group = 'Symbols', inline = 's32') s33 = input.symbol('SXPUSDT', group = 'Symbols', inline = 's33') s34 = input.symbol('BCHUSDT', group = 'Symbols', inline = 's34') s35 = input.symbol('RVNUSDT', group = 'Symbols', inline = 's35') s36 = input.symbol('ATOMUSDT', group = 'Symbols', inline = 's36') s37 = input.symbol('XRPBNB', group = 'Symbols', inline = 's37') s38 = input.symbol('LTCBTC', group = 'Symbols', inline = 's38') s39 = input.symbol('IOSTBTC', group = 'Symbols', inline = 's39') s40 = input.symbol('GRTUSDT', group = 'Symbols', inline = 's40') ////////////////// // CALCULATIONS // // Get only symbol only_symbol(s) => array.get(str.split(s, ":"), 1) screener_func(wma9l, wma15l) => buySignal = false fast_wma = ta.wma (close, wma9l) slow_wma = ta.wma (close, wma15l) buySignal := ta.crossover(close, fast_wma) and fast_wma > slow_wma buySignal // Security call wma01 = request.security(s01, "W", screener_func(wma9l, wma15l)) wma02 = request.security(s02, "W", screener_func(wma9l, wma15l)) wma03 = request.security(s03, "W", screener_func(wma9l, wma15l)) wma04 = request.security(s04, "W", screener_func(wma9l, wma15l)) wma05 = request.security(s05, "W", screener_func(wma9l, wma15l)) wma06 = request.security(s06, "W", screener_func(wma9l, wma15l)) wma07 = request.security(s07, "W", screener_func(wma9l, wma15l)) wma08 = request.security(s08, "W", screener_func(wma9l, wma15l)) wma09 = request.security(s09, "W", screener_func(wma9l, wma15l)) wma10 = request.security(s10, "W", screener_func(wma9l, wma15l)) wma11 = request.security(s11, "W", screener_func(wma9l, wma15l)) wma12 = request.security(s12, "W", screener_func(wma9l, wma15l)) wma13 = request.security(s13, "W", screener_func(wma9l, wma15l)) wma14 = request.security(s14, "W", screener_func(wma9l, wma15l)) wma15 = request.security(s15, "W", screener_func(wma9l, wma15l)) wma16 = request.security(s16, "W", screener_func(wma9l, wma15l)) wma17 = request.security(s17, "W", screener_func(wma9l, wma15l)) wma18 = request.security(s18, "W", screener_func(wma9l, wma15l)) wma19 = request.security(s19, "W", screener_func(wma9l, wma15l)) wma20 = request.security(s20, "W", screener_func(wma9l, wma15l)) wma21 = request.security(s21, "W", screener_func(wma9l, wma15l)) wma22 = request.security(s22, "W", screener_func(wma9l, wma15l)) wma23 = request.security(s23, "W", screener_func(wma9l, wma15l)) wma24 = request.security(s24, "W", screener_func(wma9l, wma15l)) wma25 = request.security(s25, "W", screener_func(wma9l, wma15l)) wma26 = request.security(s26, "W", screener_func(wma9l, wma15l)) wma27 = request.security(s27, "W", screener_func(wma9l, wma15l)) wma28 = request.security(s28, "W", screener_func(wma9l, wma15l)) wma29 = request.security(s29, "W", screener_func(wma9l, wma15l)) wma30 = request.security(s30, "W", screener_func(wma9l, wma15l)) wma31 = request.security(s31, "W", screener_func(wma9l, wma15l)) wma32 = request.security(s32, "W", screener_func(wma9l, wma15l)) wma33 = request.security(s33, "W", screener_func(wma9l, wma15l)) wma34 = request.security(s34, "W", screener_func(wma9l, wma15l)) wma35 = request.security(s35, "W", screener_func(wma9l, wma15l)) wma36 = request.security(s36, "W", screener_func(wma9l, wma15l)) wma37 = request.security(s37, "W", screener_func(wma9l, wma15l)) wma38 = request.security(s38, "W", screener_func(wma9l, wma15l)) wma39 = request.security(s39, "W", screener_func(wma9l, wma15l)) wma40 = request.security(s40, "W", screener_func(wma9l, wma15l)) //////////// // ARRAYS // s_arr = array.new_string(0) u_arr = array.new_bool(0) wma_arr = array.new_bool(0) // Add Symbols array.push(s_arr, only_symbol(s01)) array.push(s_arr, only_symbol(s02)) array.push(s_arr, only_symbol(s03)) array.push(s_arr, only_symbol(s04)) array.push(s_arr, only_symbol(s05)) array.push(s_arr, only_symbol(s06)) array.push(s_arr, only_symbol(s07)) array.push(s_arr, only_symbol(s08)) array.push(s_arr, only_symbol(s09)) array.push(s_arr, only_symbol(s10)) array.push(s_arr, only_symbol(s11)) array.push(s_arr, only_symbol(s12)) array.push(s_arr, only_symbol(s13)) array.push(s_arr, only_symbol(s14)) array.push(s_arr, only_symbol(s15)) array.push(s_arr, only_symbol(s16)) array.push(s_arr, only_symbol(s17)) array.push(s_arr, only_symbol(s18)) array.push(s_arr, only_symbol(s19)) array.push(s_arr, only_symbol(s20)) array.push(s_arr, only_symbol(s21)) array.push(s_arr, only_symbol(s22)) array.push(s_arr, only_symbol(s23)) array.push(s_arr, only_symbol(s24)) array.push(s_arr, only_symbol(s25)) array.push(s_arr, only_symbol(s26)) array.push(s_arr, only_symbol(s27)) array.push(s_arr, only_symbol(s28)) array.push(s_arr, only_symbol(s29)) array.push(s_arr, only_symbol(s30)) array.push(s_arr, only_symbol(s31)) array.push(s_arr, only_symbol(s32)) array.push(s_arr, only_symbol(s33)) array.push(s_arr, only_symbol(s34)) array.push(s_arr, only_symbol(s35)) array.push(s_arr, only_symbol(s36)) array.push(s_arr, only_symbol(s37)) array.push(s_arr, only_symbol(s38)) array.push(s_arr, only_symbol(s39)) array.push(s_arr, only_symbol(s40)) // FLAGS array.push(u_arr, u01) array.push(u_arr, u02) array.push(u_arr, u03) array.push(u_arr, u04) array.push(u_arr, u05) array.push(u_arr, u06) array.push(u_arr, u07) array.push(u_arr, u08) array.push(u_arr, u09) array.push(u_arr, u10) array.push(u_arr, u11) array.push(u_arr, u12) array.push(u_arr, u13) array.push(u_arr, u14) array.push(u_arr, u15) array.push(u_arr, u16) array.push(u_arr, u17) array.push(u_arr, u18) array.push(u_arr, u19) array.push(u_arr, u20) array.push(u_arr, u21) array.push(u_arr, u22) array.push(u_arr, u23) array.push(u_arr, u24) array.push(u_arr, u25) array.push(u_arr, u26) array.push(u_arr, u27) array.push(u_arr, u28) array.push(u_arr, u29) array.push(u_arr, u30) array.push(u_arr, u31) array.push(u_arr, u32) array.push(u_arr, u33) array.push(u_arr, u34) array.push(u_arr, u35) array.push(u_arr, u36) array.push(u_arr, u37) array.push(u_arr, u38) array.push(u_arr, u39) array.push(u_arr, u40) // RSI array.push(wma_arr, wma01) array.push(wma_arr, wma02) array.push(wma_arr, wma03) array.push(wma_arr, wma04) array.push(wma_arr, wma05) array.push(wma_arr, wma06) array.push(wma_arr, wma07) array.push(wma_arr, wma08) array.push(wma_arr, wma09) array.push(wma_arr, wma10) array.push(wma_arr, wma11) array.push(wma_arr, wma12) array.push(wma_arr, wma13) array.push(wma_arr, wma14) array.push(wma_arr, wma15) array.push(wma_arr, wma16) array.push(wma_arr, wma17) array.push(wma_arr, wma18) array.push(wma_arr, wma19) array.push(wma_arr, wma20) array.push(wma_arr, wma21) array.push(wma_arr, wma22) array.push(wma_arr, wma23) array.push(wma_arr, wma24) array.push(wma_arr, wma25) array.push(wma_arr, wma26) array.push(wma_arr, wma27) array.push(wma_arr, wma28) array.push(wma_arr, wma29) array.push(wma_arr, wma30) array.push(wma_arr, wma31) array.push(wma_arr, wma32) array.push(wma_arr, wma33) array.push(wma_arr, wma34) array.push(wma_arr, wma35) array.push(wma_arr, wma36) array.push(wma_arr, wma37) array.push(wma_arr, wma38) array.push(wma_arr, wma39) array.push(wma_arr, wma40) /////////// // PLOTS // var tbl = table.new(position.top_right, 3, 41, frame_color=#151715, frame_width=1, border_width=2, border_color=color.new(color.white, 100)) if barstate.islast table.cell(tbl, 0, 0, 'Symbol', width = col_width, text_halign = text.align_center, bgcolor = color.gray, text_color = color.white, text_size = size.small) table.cell(tbl, 1, 0, 'Koşul', width = col_width, text_halign = text.align_center, bgcolor = color.gray, text_color = color.white, text_size = size.small) if (scr_numb > 1) table.cell(tbl, 2, 0, '', width = col_width * 2 * (scr_numb - 1), text_halign = text.align_center, bgcolor = color.new(color.gray, 100), text_size = size.small) for i = 0 to 39 if array.get(u_arr, i) rsi_col = array.get(wma_arr, i) ? color.green : color.red table.cell(tbl, 0, i + 1, array.get(s_arr, i), text_halign = text.align_center, bgcolor = color.gray, text_color = color.white, text_size = size.small) table.cell(tbl, 1, i + 1, array.get(wma_arr, i) ? "AL" :"Koşul Sağlanmadı", text_halign = text.align_center, bgcolor = rsi_col, text_color = color.white, text_size = size.small)
Leave a Comment