Suraj

Wait 5 sec.

SurajGold FuturesCOMEX_DL:GC1!gchoprasuraj//@version=5 strategy("15m OB + RSI(21) Strategy", overlay=true, margin_long=100, margin_short=100) // 1. Define RSI(21) rsi21 = ta.rsi(close, 21) // 2. Define Order Block Proxy (Simplistic version using recent swing lows) swingLow = ta.lowest(low, 50) inDemandZone = close = swingLow // 3. Define Entry Conditions bullishCurl = ta.crossover(rsi21, 30) longCondition = inDemandZone and bullishCurl // 4. Execution & Fixed Risk Management if (longCondition) strategy.entry("Long OB", strategy.long) // Set fixed stop loss and take profit (e.g., 0.5% risk, 1.5% reward) stopLossLevel = strategy.position_avg_price * 0.995 takeProfitLevel = strategy.position_avg_price * 1.015 strategy.exit("Exit Long", "Long OB", stop=stopLossLevel, limit=takeProfitLevel)