
یہ حکمت عملی ایک 200 سیکنڈ کی سادہ منتقل اوسط ((MA200) پر مبنی رجحان ٹریکنگ سسٹم ہے ، جس میں تکنیکی اشارے جیسے نسبتا strong مضبوط اشارے ((RSI) ، اوسط رجحان اشارے ((ADX) اور اوسط حقیقی طول و عرض ((ATR) شامل ہیں ، جو ایک مکمل تجارتی فیصلہ سازی کا فریم ورک تشکیل دیتے ہیں۔ حکمت عملی متحرک طور پر اسٹاپ نقصان اور منافع کے اہداف کی ترتیب کے ذریعہ ، خطرے پر موثر کنٹرول حاصل کرتی ہے۔ نتائج کی نظر میں ، اس حکمت عملی نے متعدد تجارتی اقسام میں بہتر جیت حاصل کی ہے ، جس میں مضبوط موافقت اور استحکام کا مظاہرہ کیا گیا ہے۔
اس حکمت عملی کا بنیادی منطق مندرجہ ذیل اہم نکات پر مبنی ہے:
یہ حکمت عملی متعدد تکنیکی اشارے کے ساتھ مل کر ایک مضبوط ٹرینڈ ٹریکنگ سسٹم بناتی ہے۔ حکمت عملی میں ڈیزائن پر توجہ دی جاتی ہے خطرے پر قابو پانے اور متحرک اسٹاپ نقصان اور سگنل کی تصدیق کے طریقہ کار کے ذریعہ تجارت کی وشوسنییتا کو بہتر بنانا۔ اگرچہ کچھ اصلاحات کی گنجائش موجود ہے ، لیکن مجموعی طور پر یہ ایک عملی طور پر قابل قدر تجارتی حکمت عملی ہے۔ اس کے بعد اس حکمت عملی کی کارکردگی کو مزید بڑھانے کے لئے پیرامیٹرز کو بہتر بنانے اور معاون اشارے شامل کرنے کی اجازت دی جاسکتی ہے۔
/*backtest
start: 2024-02-21 00:00:00
end: 2025-02-18 08:00:00
period: 1d
basePeriod: 1d
exchanges: [{"eid":"Binance","currency":"TRB_USDT"}]
*/
//@version=5
strategy("BTC/USD MA200 with RSI, ADX, ATR", overlay=true)
// Definition of the main moving average
ma_trend = ta.sma(close, 200) // Main trend filter
// Definition of RSI and ADX
rsi = ta.rsi(close, 14)
[diplus, diminus, adx] = ta.dmi(14, 14) // Correction for ADX
// Definition of ATR for Stop Loss and Take Profit
atr = ta.atr(14)
// Conditions for crossing of the MA200
crossover_condition = ta.crossover(close, ma_trend)
crossunder_condition = ta.crossunder(close, ma_trend)
// Trend confirmation after 2 bars
buy_confirmation = crossover_condition[2] and (rsi > 40) and (adx > 20) and close > ma_trend
sell_confirmation = crossunder_condition[2] and (rsi < 60) and (adx > 20) and close < ma_trend
// Definition of Stop Loss and Take Profit
take_profit = close * 1.02 // 2% profit
stop_loss = close - (1.5 * atr) // Dynamic stop based on ATR
// Execution of orders
if (buy_confirmation and strategy.opentrades == 0)
strategy.entry("Buy", strategy.long)
strategy.exit("Take Profit/Stop Loss", from_entry="Buy", limit=take_profit, stop=stop_loss)
label.new(bar_index, high, "BUY", style=label.style_label_down, color=color.green, textcolor=color.white, size=size.normal)
if (sell_confirmation)
if (strategy.opentrades > 0)
strategy.close("Buy")
label.new(bar_index, low, "SELL", style=label.style_label_up, color=color.red, textcolor=color.white, size=size.normal)
// Draw the main moving average
plot(ma_trend, color=color.purple, title="MA 200")