
یہ حکمت عملی ایک ٹریڈنگ سسٹم ہے جو رجحانات کی پیروی کرتی ہے جس میں دوہری اوسط اور بے ترتیب آر ایس آئی اشارے شامل ہیں۔ مارکیٹ میں رجحانات کا اندازہ لگانے کے لئے 21 دوروں اور 55 دوروں کی سادہ حرکت پذیر اوسط کا استعمال کرتے ہوئے ، بے ترتیب آر ایس آئی کے اوور بیئر اوور سیل زون میں داخل ہونے اور باہر نکلنے کے لئے بہترین نقطہ نظر تلاش کرنے کے لئے ، رجحانات کی تجارت کو بہتر بنانے کے لئے استعمال کیا جاتا ہے۔ یہ حکمت عملی اوپر کی طرف رجحانات کی تصدیق کی بنیاد پر ، اوور سیل زون میں خریدنے کے مواقع کی تلاش میں ، اوور سیل زون میں فروخت کے مواقع کی تلاش میں ہے۔
اس حکمت عملی کا بنیادی منطق یہ ہے:
یہ حکمت عملی کلاسیکی تکنیکی اشارے کے ساتھ مل کر ایک مکمل رجحان ٹریکنگ ٹریڈنگ سسٹم بناتی ہے۔ حکمت عملی کو سادہ اور بدیہی رکھتے ہوئے ، متعدد سگنل کی تصدیق کے ذریعہ وشوسنییتا میں اضافہ کیا گیا ہے۔ معقول پیرامیٹرز کی اصلاح اور خطرے کے انتظام کے ذریعہ ، اس حکمت عملی کی عمدہ عملی قدر ہے۔ یہ تجویز کیا گیا ہے کہ تاجروں کو عملی طور پر استعمال کرنے سے پہلے کافی آراء کی جانچ پڑتال کی جائے اور پیرامیٹرز کو مارکیٹ کی مخصوص خصوصیات کے مطابق ایڈجسٹ کیا جائے۔
/*backtest
start: 2022-02-11 00:00:00
end: 2025-02-08 08:00:00
period: 1d
basePeriod: 1d
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=6
strategy("SMA & Stoch RSI Buy Strategy with K > 80 Exit", overlay=true)
// Input parameters for the SMAs
sma21Length = input(21, title="21 SMA Length")
sma55Length = input(55, title="55 SMA Length")
// Input parameters for the Stochastic RSI
stochRsiLength = input(14, title="Stoch RSI Length")
stochRsiK = input(3, title="Stoch RSI %K Smoothing")
stochRsiD = input(3, title="Stoch RSI %D Smoothing")
// Calculate the SMAs
sma21 = ta.sma(close, sma21Length)
sma55 = ta.sma(close, sma55Length)
// Calculate the Stochastic RSI
rsiValue = ta.rsi(close, stochRsiLength)
stochRsi = ta.stoch(rsiValue, rsiValue, rsiValue, stochRsiLength)
stochRsiKLine = ta.sma(stochRsi, stochRsiK)
stochRsiDLine = ta.sma(stochRsiKLine, stochRsiD)
// Buy signal conditions
smaCondition = sma21 > sma55
stochRsiCondition = ta.crossover(stochRsiKLine, stochRsiDLine) and stochRsiKLine < 20
// Entry condition
buySignal = smaCondition and stochRsiCondition
// Exit condition: Stochastic RSI K > 80 and K crosses below D
exitCondition = ta.crossunder(stochRsiKLine, stochRsiDLine) and stochRsiKLine > 80
// Execute buy order on signal
if (buySignal)
strategy.entry("Buy", strategy.long)
// Exit the trade on the modified exit condition
if (exitCondition)
strategy.close("Buy")
// Plot the SMAs
plot(sma21, color=color.blue, title="21 SMA")
plot(sma55, color=color.red, title="55 SMA")
// Plot Stochastic RSI for reference (not overlayed)
hline(20, "Stoch RSI 20", color=color.gray, linestyle=hline.style_dotted)
hline(80, "Stoch RSI 80", color=color.gray, linestyle=hline.style_dotted)
plot(stochRsiKLine, title="%K Line", color=color.green)
plot(stochRsiDLine, title="%D Line", color=color.red)