Mahadev Apple Inc.BATS:AAPLamitastha108//@version=6 indicator("BUY ONLY SIGNAL", overlay=true) // ===== Inputs ===== emaLen = input.int(200, title="Trend EMA Length") fastLen = input.int(20, title="Fast EMA Length") rsiLen = input.int(14, title="RSI Length") rsiLevel = input.int(60, title="RSI Minimum Level") // ===== Calculations ===== trendEma = ta.ema(close, emaLen) fastEma = ta.ema(close, fastLen) rsi = ta.rsi(close, rsiLen) // ===== Buy Condition ===== buy = ta.crossover(close, fastEma) and close > trendEma and rsi > rsiLevel // ===== Plot EMAs ===== plot(trendEma, color=color.red, linewidth=2, title="200 EMA") plot(fastEma, color=color.green, linewidth=2, title="20 EMA") // ===== Buy Signal Label ===== plotshape(buy, title="BUY", style=shape.labelup, location=location.belowbar, color=color.lime, text="BUY", textcolor=color.black, size=size.large) // ===== Background highlight (optional visual) ===== bgcolor(buy ? color.new(color.green, 85) : na) // ===== Alert ===== alertcondition(buy, title="BUY Alert", message="BUY Signal Generated on {{ticker}} at {{close}}")