//@version=5 indicator("LabotKripto Free Trend Helper", overlay=true, max_labels_count=500) // ---------------------------------------------------- // LabotKripto Free Pine Pack // Ez az indikátor oktatási és piaci figyelési célra készült. // Nem minősül pénzügyi, befektetési vagy kereskedési tanácsadásnak. // ---------------------------------------------------- // Inputs fastEmaLength = input.int(21, "Gyors EMA", minval=1) slowEmaLength = input.int(50, "Lassú EMA", minval=1) rsiLength = input.int(14, "RSI hossz", minval=1) rsiOverbought = input.int(70, "RSI túlvett szint", minval=50, maxval=100) rsiOversold = input.int(30, "RSI túladott szint", minval=0, maxval=50) // Calculations fastEma = ta.ema(close, fastEmaLength) slowEma = ta.ema(close, slowEmaLength) rsi = ta.rsi(close, rsiLength) trendUp = fastEma > slowEma trendDown = fastEma < slowEma longWatch = ta.crossover(fastEma, slowEma) shortWatch = ta.crossunder(fastEma, slowEma) // Plots plot(fastEma, title="Gyors EMA", linewidth=2) plot(slowEma, title="Lassú EMA", linewidth=2) bgcolor(trendUp ? color.new(color.green, 92) : na, title="Emelkedő trend háttér") bgcolor(trendDown ? color.new(color.red, 92) : na, title="Csökkenő trend háttér") plotshape(longWatch, title="Long figyelő jel", style=shape.triangleup, location=location.belowbar, size=size.small, text="LONG?") plotshape(shortWatch, title="Short figyelő jel", style=shape.triangledown, location=location.abovebar, size=size.small, text="SHORT?") // RSI status table var table statusTable = table.new(position.top_right, 2, 4, border_width=1) if barstate.islast table.cell(statusTable, 0, 0, "Trend") table.cell(statusTable, 1, 0, trendUp ? "Emelkedő" : trendDown ? "Csökkenő" : "Semleges") table.cell(statusTable, 0, 1, "RSI") table.cell(statusTable, 1, 1, str.tostring(rsi, "#.##")) table.cell(statusTable, 0, 2, "RSI állapot") table.cell(statusTable, 1, 2, rsi > rsiOverbought ? "Túlvett" : rsi < rsiOversold ? "Túladott" : "Normál") table.cell(statusTable, 0, 3, "Idősík") table.cell(statusTable, 1, 3, timeframe.period) // Alerts alertcondition(longWatch, title="LabotKripto Long Watch", message="LabotKripto Long Watch: {{ticker}} | close={{close}} | timeframe={{interval}}") alertcondition(shortWatch, title="LabotKripto Short Watch", message="LabotKripto Short Watch: {{ticker}} | close={{close}} | timeframe={{interval}}") // Webhook JSON példa TradingView alerthez: // { // "source": "tradingview", // "strategy": "labotkripto_free_trend_helper", // "symbol": "{{ticker}}", // "signal": "long_watch_or_short_watch", // "price": "{{close}}", // "timeframe": "{{interval}}", // "time": "{{timenow}}" // }