BTC $63,546.00 ▲ 0.27% ETH $1,858.49 ▼ 1.16% USDT $0.9992 ▲ 0.01% BNB $589.45 ▲ 0.29% XRP $1.08 ▼ 0.90% SOL $73.48 ▼ 0.15% DOGE $0.0702 ▼ 0.77% SHIB $0.00000503 ▲ 2.64% PEPE $0.00000291 ▲ 0.61% BTC $63,546.00 ▲ 0.27% ETH $1,858.49 ▼ 1.16% USDT $0.9992 ▲ 0.01% BNB $589.45 ▲ 0.29% XRP $1.08 ▼ 0.90% SOL $73.48 ▼ 0.15% DOGE $0.0702 ▼ 0.77% SHIB $0.00000503 ▲ 2.64% PEPE $0.00000291 ▲ 0.61%
Reklam Alanı728x90
DeFi Piyasa

Suraj

Suraj

Gold Futures COMEX_DL:GC1!

//@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 * 1.002) and 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)

İlgili Haberler

Yorumlar (0)

Yorum yapmak için giriş yapın.

Henüz yorum yapılmamış. İlk yorumu siz yapın.

Reklam Alanı728x90