
यह रणनीति एक ट्रेडिंग सिस्टम है जिसमें द्विआधारी सममूल्य और यादृच्छिक आरएसआई संकेतक शामिल हैं। यह रणनीति 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)