
Strategi ini adalah sistem perdagangan bersepadu yang menggabungkan ICT (konsep pedagang dalaman), corak pengaliran dan analisis kawasan permintaan dan bekalan. Ia mengenal pasti peluang perdagangan berkemungkinan tinggi melalui analisis pelbagai dimensi struktur pasaran, digabungkan dengan petunjuk teknikal dan tingkah laku harga.
Logik utama strategi ini adalah berdasarkan tiga komponen utama:
Sistem ini menggunakan 10% dari dana untuk setiap perdagangan, dan menetapkan 1.5% untuk menghentikan kerugian dan 3% untuk menghentikan, yang menyediakan nisbah keuntungan risiko 2: 1.
Cadangan kawalan risiko:
Ini adalah sistem perdagangan komprehensif yang terstruktur dengan baik, yang menyediakan isyarat perdagangan yang boleh dipercayai melalui analisis pelbagai dimensi. Pengurusan risiko sistem adalah munasabah, tetapi masih ada ruang untuk pengoptimuman.
/*backtest
start: 2024-02-21 00:00:00
end: 2025-02-18 08:00:00
period: 1h
basePeriod: 1h
exchanges: [{"eid":"Binance","currency":"ETH_USDT"}]
*/
//@version=5
strategy("ICT + Engulfing + Supply & Demand", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=10)
// Input settings
timeframe = input.timeframe("15", title="Backtest Timeframe")
use_snd = input(true, title="Enable Supply & Demand Zones")
stopLossPerc = input(1.5, title="Stop Loss %")
takeProfitPerc = input(3, title="Take Profit %")
// Identify Engulfing Patterns
bullishEngulfing = (close[1] < open[1]) and (close > open) and (close > open[1]) and (open < close[1])
bearishEngulfing = (close[1] > open[1]) and (close < open) and (close < open[1]) and (open > close[1])
// Supply & Demand Zones (basic identification)
highestHigh = ta.highest(high, 20)
lowestLow = ta.lowest(low, 20)
supplyZone = use_snd ? highestHigh : na
demandZone = use_snd ? lowestLow : na
// Entry & Exit Conditions
longCondition = bullishEngulfing and close > demandZone
shortCondition = bearishEngulfing and close < supplyZone
// Stop-Loss & Take-Profit Calculation
longSL = close * (1 - stopLossPerc / 100)
longTP = close * (1 + takeProfitPerc / 100)
shortSL = close * (1 + stopLossPerc / 100)
shortTP = close * (1 - takeProfitPerc / 100)
// Execute trades
if (longCondition)
strategy.entry("Long", strategy.long)
strategy.exit("Long Exit", from_entry="Long", stop=longSL, limit=longTP)
if (shortCondition)
strategy.entry("Short", strategy.short)
strategy.exit("Short Exit", from_entry="Short", stop=shortSL, limit=shortTP)
// Plot Supply & Demand Zones
plot(use_snd ? supplyZone : na, color=color.red, title="Supply Zone")
plot(use_snd ? demandZone : na, color=color.green, title="Demand Zone")