My gptReliance Industries LimitedNSE:RELIANCEsharmasudhir382//@version=6 strategy("AI Style Breakout Strategy", overlay=true, initial_capital=100000, pyramiding=0) // Inputs fastEMA = input.int(20, "Fast EMA") slowEMA = input.int(50, "Slow EMA") rsiLen = input.int(14, "RSI Length") volLen = input.int(20, "Volume MA") lookback = input.int(20, "Support/Resistance Lookback") riskReward = input.float(2.0, "Risk Reward", step=0.1) // Indicators ema20 = ta.ema(close, fastEMA) ema50 = ta.ema(close, slowEMA) rsi = ta.rsi(close, rsiLen) volMA = ta.sma(volume, volLen) // Support / Resistance resistance = ta.highest(high, lookback) support = ta.lowest(low, lookback) // Trend upTrend = ema20 > ema50 downTrend = ema20 < ema50 // Volume Filter highVolume = volume > volMA // Entry Conditions buySignal = upTrend and close > resistance and rsi > 55 and highVolume sellSignal = downTrend and close < support and rsi < 45 and highVolume // Entries if buySignal strategy.entry("BUY", strategy.long) if sellSignal strategy.entry("SELL", strategy.short) // Exit Logic longSL = support longTP = close + (close - longSL) * riskReward shortSL = resistance shortTP = close - (shortSL - close) * riskReward strategy.exit("BUY EXIT", from_entry="BUY", stop=longSL, limit=longTP) strategy.exit("SELL EXIT", from_entry="SELL", stop=shortSL, limit=shortTP) // Plot plot(ema20, color=color.green, linewidth=2, title="EMA 20") plot(ema50, color=color.red, linewidth=2, title="EMA 50") plot(resistance, color=color.blue, title="Resistance") plot(support, color=color.orange, title="Support") plotshape(buySignal, title="BUY", style=shape.labelup, location=location.belowbar, color=color.green, text="BUY") plotshape(sellSignal, title="SELL", style=shape.labeldown, location=location.abovebar, color=color.red, text="SELL") // Alerts alertcondition(buySignal, title="Buy Alert", message="BUY Signal") alertcondition(sellSignal, title="Sell Alert", message="SELL Signal")