Gold Super Trend Scalping Strategy: XAUUSD ট্রেডিংয়ের সেরা কৌশল (কোডসহ)

//@version=5
strategy("TradeLogicBD - Gold Scalping 5Min", overlay=true, margin_long=100, margin_short=100, default_qty_type=strategy.percent_of_equity, default_qty_value=5)

emaFastLen   = input.int(9,  "Fast EMA",     minval=1)
emaSlowLen   = input.int(21, "Slow EMA",     minval=1)
rsiLen       = input.int(14, "RSI Length",   minval=1)
rsiOB        = input.int(65, "RSI Overbought")
rsiOS        = input.int(35, "RSI Oversold")
takeProfit   = input.float(0.8, "Take Profit", step=0.1)
stopLoss     = input.float(0.5, "Stop Loss", step=0.1)

emaFast = ta.ema(close, emaFastLen)
emaSlow = ta.ema(close, emaSlowLen)
rsiVal  = ta.rsi(close, rsiLen)

bullishTrend = emaFast > emaSlow
bearishTrend = emaFast < emaSlow

longCondition  = bullishTrend and ta.crossover(emaFast, emaSlow) and rsiVal < rsiOB and rsiVal > 50
shortCondition = bearishTrend and ta.crossunder(emaFast, emaSlow) and rsiVal > rsiOS and rsiVal < 50

if (longCondition)
    strategy.entry("Long", strategy.long, comment="Long")

if (shortCondition)
    strategy.entry("Short", strategy.short, comment="Short")

strategy.exit("TP/SL Long",  "Long",  limit=close + takeProfit, stop=close - stopLoss)
strategy.exit("TP/SL Short", "Short", limit=close - takeProfit, stop=close + stopLoss)

plot(emaFast, color=color.blue,  linewidth=2, title="EMA Fast")
plot(emaSlow, color=color.red,   linewidth=2, title="EMA Slow")

bgcolor(longCondition  ? color.new(color.green, 85) : na)
bgcolor(shortCondition ? color.new(color.red, 85)   : na)


  
এই পোস্টে এখনো কেউ মন্তব্য করে নি
মন্তব্য করতে এখানে ক্লিক করুন

Trade Logic BD এর নীতিমালা মেনে কমেন্ট করুন। প্রতিটি কমেন্ট রিভিউ করা হয়।

comment url