
یہ حکمت عملی ایک اعلی انکولی ارورنگ حکمت عملی ہے جس میں اوسط (ای ایم اے) ، سپلائی زون اور ٹرانزیکشن کی مقدار شامل ہے۔ یہ مارکیٹ کے رجحانات کی شناخت کے لئے متعدد تکنیکی اشارے کی کراس تصدیق کرتا ہے اور اہم سپلائی زون کے قریب تجارت کرتا ہے۔ حکمت عملی متحرک اسٹاپ نقصان اور منافع بخش اہداف کو اپناتی ہے ، جو اے ٹی آر اشارے کے ذریعہ مارکیٹ کی اتار چڑھاؤ کے مطابق ہے۔
حکمت عملی کی بنیادی منطق درج ذیل کلیدی عناصر پر مبنی ہے:
خاص طور پر ، جب 9 سائیکل ای ایم اے مسلسل 3 سائیکلوں میں بڑھتا ہے ، اور 15 سائیکل ای ایم اے بھی بڑھتا ہوا رجحان ہے ، اور قیمت طلب کے علاقے سے اوپر ہے ، اور 20 سائیکل کی تجارت کی اوسط لائن 50 سائیکل کی تجارت کی اوسط لائن سے زیادہ ہے ، تو نظام ایک کثیر سگنل جاری کرے گا۔ خالی سگنل کی منطق اس کے برعکس ہے۔
رسک کنٹرول کے اقدامات:
یہ ایک مکمل ٹریڈنگ سسٹم ہے جس میں متعدد تکنیکی تجزیہ ٹولز کو ملا دیا گیا ہے ، جس میں متعدد تصدیق کے میکانزم کے ذریعہ تجارت کی وشوسنییتا کو بہتر بنایا گیا ہے۔ حکمت عملی کی طاقت اس کی موافقت اور خطرے کے انتظام کی صلاحیت میں ہے ، لیکن اس کے ساتھ ہی مختلف مارکیٹ کے ماحول میں کارکردگی کے اختلافات کو بھی مدنظر رکھنا ہوگا۔ تجویز کردہ اصلاحی سمت کے ذریعہ ، اس حکمت عملی میں مزید بہتری کی گنجائش ہے۔
/*backtest
start: 2024-02-08 00:00:00
end: 2025-02-06 08:00:00
period: 1d
basePeriod: 1d
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
strategy("Optimized Scalping Strategy with EMA & Supply/Demand Zones", overlay=true)
// Inputs
ema9_length = input(9, title="EMA 9 Length")
ema15_length = input(15, title="EMA 15 Length")
higher_tf = input.timeframe("15", title="Higher Timeframe for Zones")
atr_mult = input(1.5, title="ATR Multiplier for Stop Loss")
risk_reward = input.float(1.2, title="Risk-Reward Ratio", options=[1.2, 1.3, 1.4])
// Calculating EMAs
ema9 = ta.ema(close, ema9_length)
ema15 = ta.ema(close, ema15_length)
// Function to detect supply & demand zones
get_zone(tf) =>
high_tf_high = request.security(syminfo.tickerid, tf, ta.highest(high, 50))
high_tf_low = request.security(syminfo.tickerid, tf, ta.lowest(low, 50))
[high_tf_high, high_tf_low]
[supply_zone, demand_zone] = get_zone(higher_tf)
// ATR-based Stop Loss and Take Profit
atr = ta.atr(14)
long_sl = close - (atr * atr_mult)
long_tp = close + (atr * atr_mult * risk_reward)
short_sl = close + (atr * atr_mult)
short_tp = close - (atr * atr_mult * risk_reward)
// Entry conditions with volume and trend confirmation
longCondition = ta.rising(ema9, 3) and ta.rising(ema15, 3) and close > demand_zone and ta.sma(volume, 20) > ta.sma(volume, 50)
shortCondition = ta.falling(ema9, 3) and ta.falling(ema15, 3) and close < supply_zone and ta.sma(volume, 20) > ta.sma(volume, 50)
// Exit conditions using ATR-based SL/TP with additional trend confirmation
exitLong = (close >= long_tp or close <= long_sl) and ta.falling(ema9, 2)
exitShort = (close <= short_tp or close >= short_sl) and ta.rising(ema9, 2)
// Executing trades with improved risk management
if longCondition
strategy.entry("Long", strategy.long)
strategy.exit("Long Exit", from_entry="Long", stop=long_sl, limit=long_tp)
if shortCondition
strategy.entry("Short", strategy.short)
strategy.exit("Short Exit", from_entry="Short", stop=short_sl, limit=short_tp)
// Plotting
plot(ema9, color=color.blue, title="EMA 9")
plot(ema15, color=color.red, title="EMA 15")
plot(supply_zone, color=color.orange, title="Supply Zone")
plot(demand_zone, color=color.green, title="Demand Zone")