
یہ حکمت عملی ایک ٹریڈنگ سسٹم ہے جس میں رجحانات کی پیروی اور متحرک الٹ کو شامل کیا گیا ہے۔ یہ بنیادی طور پر 34 دوروں کے ای ایم اے کی اوسط پر مبنی ہے جس میں مجموعی رجحانات کا فیصلہ کیا جاتا ہے ، جس میں آر ایس آئی کے ذریعہ زیادہ خرید و فروخت والے علاقوں کی نشاندہی کی جاتی ہے ، جبکہ K لائن کی شکل اور ٹرانزیکشن کی مقدار کے ساتھ تجارت کی تصدیق کے اشارے ملتے ہیں۔ یہ حکمت عملی اے ٹی آر پر مبنی متحرک اسٹاپ نقصان اور منافع کے طریقوں کو اپناتی ہے ، جس سے مارکیٹ میں اتار چڑھاؤ کے مطابق ٹریڈنگ پیرامیٹرز کو ایڈجسٹ کیا جاسکتا ہے۔
حکمت عملی کی بنیادی منطق میں درج ذیل کلیدی عناصر شامل ہیں:
اس حکمت عملی میں متعدد تکنیکی اشارے شامل ہیں تاکہ ایک مکمل تجارتی نظام تشکیل دیا جاسکے ، جس میں بہتر موافقت اور توسیع کی گنجائش ہے۔ اس حکمت عملی کے بنیادی فوائد کثیر جہتی سگنل کی تصدیق اور متحرک خطرے کے انتظام میں ہیں ، لیکن اس کے ساتھ ساتھ پیرامیٹرز کی اصلاح اور مارکیٹ کے ماحول میں موافقت کے مسائل پر بھی توجہ دینے کی ضرورت ہے۔ مسلسل اصلاح اور بہتری کے ذریعہ ، اس حکمت عملی کو مختلف مارکیٹ کے ماحول میں مستحکم کارکردگی برقرار رکھنے کی امید ہے۔
/*backtest
start: 2024-08-01 00:00:00
end: 2025-02-18 08:00:00
period: 1d
basePeriod: 1d
exchanges: [{"eid":"Binance","currency":"BTC_USDT"}]
*/
// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © bommytarton
//@version=6
strategy("Improved Momentum and Pivot Reversal Strategy", overlay=true)
// Define user inputs
lengthEMA = input.int(34, title="EMA Length", minval=1)
lengthRSI = input.int(14, title="RSI Length", minval=1)
rsiOverbought = input.int(70, title="RSI Overbought Level", minval=50, maxval=100)
rsiOversold = input.int(30, title="RSI Oversold Level", minval=0, maxval=50)
lengthATR = input.int(14, title="ATR Length", minval=1)
multATR = input.float(1.5, title="ATR Multiplier for Take-Profit", minval=1.0)
stopLossMultiplier = input.float(1.0, title="Stop Loss Multiplier for ATR", minval=0.5, maxval=3.0) // Adjust the stop-loss to be tighter or wider
// Calculate the indicators
ema34 = ta.ema(close, lengthEMA)
rsiValue = ta.rsi(close, lengthRSI)
atrValue = ta.atr(lengthATR)
// Define entry conditions
longCondition = close > ema34 and close[1] < open[1] and close > open and close[2] > open[2] and close[1] < open[1] and rsiValue > 50
// Define stop-loss and take-profit based on ATR
stopLoss = close - (atrValue * stopLossMultiplier) // Tighter stop-loss using the ATR multiplier
takeProfit = close + (atrValue * multATR) // Take profit with adjustable multiplier
// Volume condition filter (make sure that the volume is higher than average over the past 20 bars)
avgVolume = ta.sma(volume, 20)
volumeCondition = volume > avgVolume
// Only trigger long if all conditions are met (trend above 34 EMA, red-green-green candle pattern, volume confirmation)
if (longCondition and volumeCondition)
strategy.entry("Long", strategy.long, stop=stopLoss, limit=takeProfit)
// Exit conditions based on RSI overbought/oversold and trailing stop
exitCondition = rsiValue > rsiOverbought or close < stopLoss
// Execute the exit strategy when RSI is overbought or price hits the stop-loss level
if (exitCondition)
strategy.close("Long") // Close the position when exit condition is met
// Plotting for visualization
plot(ema34, title="34 EMA", color=color.blue)
plot(stopLoss, title="Stop Loss", color=color.red, linewidth=2)
plot(takeProfit, title="Take Profit", color=color.green, linewidth=2)