
یہ حکمت عملی ایک رجحان سے باخبر رہنے والا تجارتی نظام ہے جس میں ڈونچین چینل اور 200 سیکنڈ کی سادہ حرکت پذیر اوسط (ایس ایم اے) کا امتزاج کیا گیا ہے۔ اس حکمت عملی میں ممکنہ زیادہ اور کم مواقع کی نشاندہی کرنے کے لئے ڈونچین چینل کو توڑنے اور ایس ایم اے کی نقل و حرکت کے ساتھ قیمتوں کو دیکھنے کے ذریعہ ممکنہ اوور اور ڈراپ مواقع کی نشاندہی کی گئی ہے۔ اس کے علاوہ ، اس حکمت عملی میں خطرے کو کنٹرول کرنے کے لئے چینل کی درمیانی لائن پر مبنی متحرک اسٹاپ نقصان کا طریقہ کار بھی ڈیزائن کیا گیا ہے۔
حکمت عملی کی بنیادی منطق درج ذیل کلیدی عناصر پر مبنی ہے:
رسک کنٹرول کی تجاویز:
سگنل کی اصلاح:
سٹاپ نقصان کی اصلاح:
پوزیشن مینجمنٹ کی اصلاح:
ٹائمنگ کی اصلاح:
اس حکمت عملی میں کلاسیکی ڈونگچیئن چینل اور منتقل اوسط اشارے کو ملا کر ، ایک منطقی طور پر واضح ، خطرے پر قابو پانے والا رجحان ٹریکنگ سسٹم بنایا گیا ہے۔ اس حکمت عملی کے بنیادی فوائد سگنل کی وضاحت اور خطرے پر قابو پانے میں معقول ہیں ، لیکن یہ ہلچل والی مارکیٹ میں خراب کارکردگی کا مظاہرہ کرسکتا ہے۔ اس حکمت عملی میں تبادلہ کی تصدیق ، نقصان کی روک تھام کے طریقہ کار کو بہتر بنانے اور متحرک پوزیشن مینجمنٹ متعارف کروانے جیسے طریقوں کو شامل کرکے ، اس میں بہت زیادہ اصلاح کی گنجائش موجود ہے۔
/*backtest
start: 2024-02-21 00:00:00
end: 2024-03-18 00:00:00
period: 1d
basePeriod: 1d
exchanges: [{"eid":"Binance","currency":"SOL_USDT"}]
*/
// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © ardhankurniawan
//@version=5
strategy("Donchian Channel Strategy with SMA 200 and Custom SL", overlay=true)
// Parameters
length = 20
smaLength = 200 // Changed SMA to 200
// Calculate Donchian Channel
upper = ta.highest(high, length)
lower = ta.lowest(low, length)
mid = (upper + lower) / 2 // Mid Line
// Calculate SMA 200
sma200 = ta.sma(close, smaLength)
// Plot Donchian Channel, SMA 200, and Mid Line
plot(upper, color=color.green, linewidth=2, title="Upper Line")
plot(lower, color=color.red, linewidth=2, title="Lower Line")
plot(mid, color=color.orange, linewidth=1, title="Mid Line")
plot(sma200, color=color.blue, linewidth=2, title="SMA 200")
// Long and Short logic based on SMA 200
longCondition = upper > ta.highest(upper[1], length) and close > sma200
shortCondition = lower < ta.lowest(lower[1], length) and close < sma200
// Calculate Stop Loss for Long and Short based on new conditions
longSL = mid - 0.45 * (mid - lower) // SL for Long when price crosses down mid line
shortSL = mid + 0.45 * (upper - mid) // SL for Short when price crosses up mid line
// Enter Long or Short position
if (longCondition)
strategy.entry("Long", strategy.long)
if (shortCondition)
strategy.entry("Short", strategy.short)
// Place Stop Loss
strategy.exit("Exit Long", from_entry="Long", stop=longSL)
strategy.exit("Exit Short", from_entry="Short", stop=shortSL)