choch bos telegram

mail@pastecode.io avatar
unknown
plain_text
2 months ago
4.6 kB
0
Indexable
Never
/////////////////
c1 = input.symbol(title='1', defval='BINANCE:BTCUSDT.P',group = "1. Grup Hisseleri")
c2 = input.symbol(title='2', defval='BINANCE:ETHUSDT.P')
c3 = input.symbol(title='3', defval='BINANCE:BCHUSDT.P')
c4 = input.symbol(title='4', defval='BINANCE:XRPUSDT.P')
c5 = input.symbol(title='5', defval='BINANCE:EOSUSDT.P')
c6 = input.symbol(title='6', defval='BINANCE:LTCUSDT.P')
c7 = input.symbol(title='7', defval='BINANCE:TRXUSDT.P')
c8 = input.symbol(title='8', defval='BINANCE:ETCUSDT.P')
c9 = input.symbol(title='9', defval='BINANCE:LINKUSDT.P')
c10 = input.symbol(title='10', defval='BINANCE:XLMUSDT.P')
c11 = input.symbol(title='11', defval='BINANCE:ADAUSDT.P')
c12 = input.symbol(title='12', defval='BINANCE:XMRUSDT.P')
c13 = input.symbol(title='13', defval='BINANCE:DASHUSDT.P')
c14 = input.symbol(title='14', defval='BINANCE:ZECUSDT.P')
c15 = input.symbol(title='15', defval='BINANCE:XTZUSDT.P')
c16 = input.symbol(title='16', defval='BINANCE:BNBUSDT.P')
c17 = input.symbol(title='17', defval='BINANCE:ATOMUSDT.P')
c18 = input.symbol(title='18', defval='BINANCE:ONTUSDT.P')
c19 = input.symbol(title='19', defval='BINANCE:IOTAUSDT.P')
c20 = input.symbol(title='20', defval='BINANCE:BATUSDT.P')
c21 = input.symbol(title='21', defval='BINANCE:VETUSDT.P')
c22 = input.symbol(title='22', defval='BINANCE:NEOUSDT.P')
c23 = input.symbol(title='23', defval='BINANCE:QTUMUSDT.P')
c24 = input.symbol(title='24', defval='BINANCE:JASMYUSDT.P')
c25 = input.symbol(title='25', defval='BINANCE:IOSTUSDT.P')
c26 = input.symbol(title='26', defval='BINANCE:THETAUSDT.P')
c27 = input.symbol(title='27', defval='BINANCE:ALGOUSDT.P')
c28 = input.symbol(title='28', defval='BINANCE:ZILUSDT.P')
c29 = input.symbol(title='29', defval='BINANCE:KNCUSDT.P')
c30 = input.symbol(title='30', defval='BINANCE:BAKEUSDT.P')
c31 = input.symbol(title='31', defval='BINANCE:ZRXUSDT.P')
c32 = input.symbol(title='32', defval='BINANCE:COMPUSDT.P')
c33 = input.symbol(title='33', defval='BINANCE:OMGUSDT.P')
c34 = input.symbol(title='34', defval='BINANCE:DOGEUSDT.P')
c35 = input.symbol(title='35', defval='BINANCE:SXPUSDT.P')
c36 = input.symbol(title='31', defval='BINANCE:KAVAUSDT.P')
c37 = input.symbol(title='32', defval='BINANCE:BANDUSDT.P')
c38 = input.symbol(title='33', defval='BINANCE:RLCUSDT.P')
c39 = input.symbol(title='34', defval='BINANCE:WAVESUSDT.P')
c40 = input.symbol(title='35', defval='BINANCE:MKRUSDT.P')







sinyal = al  ? close : sat  ? -1 * close : 0

strateji = "TeyitSinyal"
TELEGRAMID = input.string(defval = "@....", title ="TELEGRAM CHAT ID")
grafikId = input.string(defval = "....", title = "GRAFİK ID")
alarmTetikle(sembol,sinyal)=>
    durum = request.security(sembol,timeframe.period,sinyal)
    mesaj = durum > 0 ? "AL" : durum < 0 ? "SAT" : ""
    if durum != 0 and str.length(sembol) > 1 // herhangi bir sinyal var ise yani
        alarmMesajiJSON = "<strong>"+ syminfo.ticker(sembol)+"</strong>" +" => "+mesaj +"\\n" + "PERİYOT : " + str.tostring(timeframe.period) +"\\n"+ "STRATEJİ : " + strateji + "\\n" + "FİYAT : " + str.tostring(math.round(math.abs(durum),2))
        reply = ',"reply_markup":{"inline_keyboard":[[{"text":"📉 Tradingview","url":"https://tr.tradingview.com/chart/'+grafikId+'/?symbol='+sembol+"&interval="+str.tostring(timeframe.period)+'"}]]}'
        
        alert(message='{"chat_id":"'+TELEGRAMID+'","text":"'+alarmMesajiJSON+'","parse_mode":"html"'+reply+'}',freq =  alert.freq_once_per_bar_close)




////

alarmTetikle(c1,sinyal)
alarmTetikle(c2,sinyal)
alarmTetikle(c3,sinyal)
alarmTetikle(c4,sinyal)
alarmTetikle(c5,sinyal)
alarmTetikle(c6,sinyal)
alarmTetikle(c7,sinyal)
alarmTetikle(c8,sinyal)
alarmTetikle(c9,sinyal)
alarmTetikle(c10,sinyal)
alarmTetikle(c11,sinyal)
alarmTetikle(c12,sinyal)
alarmTetikle(c13,sinyal)
alarmTetikle(c14,sinyal)
alarmTetikle(c15,sinyal)
alarmTetikle(c16,sinyal)
alarmTetikle(c17,sinyal)
alarmTetikle(c18,sinyal)
alarmTetikle(c19,sinyal)
alarmTetikle(c20,sinyal)
alarmTetikle(c21,sinyal)
alarmTetikle(c22,sinyal)
alarmTetikle(c23,sinyal)
alarmTetikle(c24,sinyal)
alarmTetikle(c25,sinyal)
alarmTetikle(c26,sinyal)
alarmTetikle(c27,sinyal)
alarmTetikle(c28,sinyal)
alarmTetikle(c29,sinyal)
alarmTetikle(c30,sinyal)
alarmTetikle(c31,sinyal)
alarmTetikle(c32,sinyal)
alarmTetikle(c33,sinyal)
alarmTetikle(c34,sinyal)
alarmTetikle(c35,sinyal)
alarmTetikle(c36,sinyal)
alarmTetikle(c37,sinyal)
alarmTetikle(c38,sinyal)
alarmTetikle(c39,sinyal)
alarmTetikle(c40,sinyal)
Leave a Comment