
FARHOD TRADER 🏆
//
@version
=5
strategy("4H Support + 15M Engulfing & RSI", overlay=true, initial_capital=1000)
// --- 1. KATTA TAYMFREYM (4H) MA'LUMOTLARI ---
// Oxirgi 20 ta sham ichidagi eng past nuqtani olamiz
htf_low =
request.security
(syminfo.tickerid, "240", ta.lowest(low, 20)[1])
// --- 2. KICHIK TAYMFREYM (15M) INDIKATORLARI ---
rsi_15m = ta.rsi(close, 14)
// Bullish Engulfing aniqlash
isEngulfing = close[1] < open[1] and close > open and close > open[1] and open < close[1]
// RSI Divergence mantiqi
rsi_low_point = ta.lowest(rsi_15m, 10)[1]
isRSIDiv = rsi_15m > rsi_low_point and low <= ta.lowest(low, 10)[1]
// --- 3. KIRISH SHARTLARI ---
// Narx 4H dagi support zonasiga 0.2% masofada yaqinlashganda
near_4h_support = low <= htf_low * 1.002
buy_condition = near_4h_support and isEngulfing and rsi_15m < 50
// --- 4. SAVDO BUYRUQLARI ---
if (buy_condition)
strategy.entry("Long", strategy.long)
// Stop Loss va Take Profit (Risk/Reward 1:2)
if (strategy.position_size > 0)
strategy.exit("Exit", "Long", stop=low * 0.99, limit=close * 1.02)
// --- 5. VIZUALIZATSIYA (XATO TO'G'RILANDI) ---
plot(htf_low, "4H Support", color=
color.new
(
color.red
, 0), style=plot.style_linebr, linewidth=2)
plotshape(buy_condition, "BUY", shape.labelup, location=location.belowbar, color=
color.green
, text="BUY 15M", textcolor=color.white)
Шу индикаторни ташлаб берайми
Агар класларимиз етарлича бўлса бисмиллах фойдаланилар