
यह रणनीति एक बहु-सूचक सह-प्रवृत्ति रिवर्स ट्रेडिंग प्रणाली है, जो मुख्य रूप से तीन तकनीकी संकेतकों को जोड़ती है, जिसमें अपेक्षाकृत मजबूत सूचक (आरएसआई), पैरालॉग लाइन सूचक (एसएआर) और सरल चलती औसत (एसएमए) शामिल हैं। रणनीति का मुख्य विचार आरएसआई के माध्यम से संभावित रिवर्स के अवसरों की चेतावनी देने वाले सुपर-बिक्री संकेतों का उपयोग करना है, फिर एसएआर सूचक की दिशा में बदलाव के माध्यम से रिवर्स संकेतों की पुष्टि करना है, और अंत में गतिशील स्टॉप-स्टॉप-लॉस संदर्भ के रूप में चलती औसत का उपयोग करना है। इस बहु-सूचक सह-प्रमाणित विधि को प्रभावी रूप से झूठे संकेतों के हस्तक्षेप को कम करने और व्यापार की विश्वसनीयता को बढ़ाने के लिए उपयोग किया जा सकता है।
इस रणनीति के संचालन के लिए मुख्य रूप से तीन चरणों का पालन किया जाता हैः
रणनीति RSI और एसएआर के सामंजस्यपूर्ण सहयोग के माध्यम से एक अपेक्षाकृत विश्वसनीय ट्रेंड रिवर्स ट्रेडिंग सिस्टम का निर्माण करती है। गतिशील जोखिम नियंत्रण उपकरण के रूप में चलती औसत का उपयोग करना, ट्रेंड की प्रभावी पकड़ की गारंटी देता है, लेकिन जोखिम के गतिशील नियंत्रण को भी लागू करता है। रणनीति का मुख्य लाभ कई सिग्नल सत्यापन और स्पष्ट व्यापार नियमों में है, लेकिन वास्तविक अनुप्रयोगों में बाजार की स्थिति की पहचान और पैरामीटर के गतिशील अनुकूलन पर ध्यान देने की आवश्यकता होती है। बाजार की स्थिति फ़िल्टर को जोड़कर, स्टॉप-लॉस विधियों को अनुकूलित करके, स्थिति प्रबंधन जैसे दिशाओं में सुधार करके, रणनीति की स्थिरता और लाभप्रदता को और बढ़ाया जा सकता है।
/*backtest
start: 2024-07-15 00:00:00
end: 2025-02-15 00:00:00
period: 1h
basePeriod: 1h
exchanges: [{"eid":"Binance","currency":"BNB_USDT"}]
*/
//@version=5
strategy("SAR + RSI Strategy", overlay=true, margin_long=100, margin_short=100)
// ———————— SAR Parameters ————————
start = input(0.02, "SAR Start")
increment = input(0.02, "SAR Increment")
maximum = input(0.2, "SAR Maximum")
// ———————— RSI Parameters ————————
rsiLength = input(14, "RSI Length")
upperLevel = input(70, "RSI Upper Level")
lowerLevel = input(30, "RSI Lower Level")
// ———————— SMA Parameter ————————
smaLength = input(21, "SMA Exit Length")
// ———————— Indicators Calculation ————————
// SAR Calculation
sarValue = ta.sar(start, increment, maximum)
sarUp = sarValue < close
sarDown = sarValue > close
// RSI Calculation
rsi = ta.rsi(close, rsiLength)
rsiOverbought = ta.cross(rsi, upperLevel)
rsiOversold = ta.cross(rsi, lowerLevel)
// SMA Calculation
sma21 = ta.sma(close, smaLength)
// ———————— Entry Conditions ————————
longCondition =
// RSI oversold signal occurred in last 3 bars
(ta.barssince(rsiOversold) <= 3) and
// SAR reversal to bullish occurs now
sarUp and not sarUp[1]
shortCondition =
// RSI overbought signal occurred in last 3 bars
(ta.barssince(rsiOverbought) <= 3) and
// SAR reversal to bearish occurs now
sarDown and not sarDown[1]
// ———————— Exit Conditions ————————
exitLong = ta.crossunder(close, sma21)
exitShort = ta.crossover(close, sma21)
// ———————— Strategy Execution ————————
strategy.entry("Long", strategy.long, when=longCondition)
strategy.close("Long", when=exitLong)
strategy.entry("Short", strategy.short, when=shortCondition)
strategy.close("Short", when=exitShort)
// ———————— Visualizations ————————
// plot(sarValue, "SAR", style=plot.style_circles, color=sarUp ? color.green : color.red)
// plot(sma21, "21 SMA", color=color.orange)