
यह रणनीति एक ट्रेडिंग सिस्टम है जिसमें सुपरट्रेंड ट्रेंड इंडिकेटर और आरएसआई (सापेक्ष रूप से मजबूत कमजोर) को शामिल किया गया है। रणनीति ट्रेंड ट्रैकिंग को गतिशीलता के संकेतकों के साथ जोड़कर व्यापार करती है जब बाजार में स्पष्ट और अच्छी गतिशीलता होती है। सिस्टम गतिशील समर्थन और प्रतिरोध स्तरों की गणना करने के लिए एटीआर (औसत वास्तविक लहर) का उपयोग करता है, और आरएसआई के साथ ओवरबॉय ओवरसेल सिग्नल के साथ प्रवेश समय निर्धारित करता है।
रणनीति का मूल तर्क निम्नलिखित प्रमुख तत्वों पर आधारित है:
रणनीति सुपरट्रेंड और आरएसआई संकेतकों के संयोजन के माध्यम से एक पूर्ण प्रवृत्ति ट्रैकिंग ट्रेडिंग सिस्टम का निर्माण करती है। रणनीति स्पष्ट रूप से ट्रेंडिंग बाजारों में बेहतर प्रदर्शन करती है, गतिशील स्टॉप लॉस और उचित स्टॉप सेट के माध्यम से जोखिम को नियंत्रित करती है। हालांकि कुछ सीमाएं हैं, लेकिन प्रस्तावित अनुकूलन दिशा के माध्यम से रणनीति की स्थिरता और अनुकूलन को और बढ़ाया जा सकता है। रणनीति मध्यम और दीर्घकालिक रुझानों को ट्रैक करने के लिए उपयुक्त है और कुछ लाभप्रदता बनाए रखने के साथ-साथ जोखिम को बेहतर तरीके से नियंत्रित करती है।
/*backtest
start: 2024-04-11 00:00:00
end: 2025-02-19 08:00:00
period: 1h
basePeriod: 1h
exchanges: [{"eid":"Binance","currency":"ETH_USDT"}]
*/
//@version=5
strategy("Supertrend + RSI Strategy", overlay=true)
// Input Parameters
atrLength = input.int(10, title="ATR Length", minval=1)
factor = input.float(3.0, title="Supertrend Factor", step=0.1)
rsiLength = input.int(14, title="RSI Length", minval=1)
rsiOverbought = input.int(70, title="RSI Overbought Level")
rsiOversold = input.int(30, title="RSI Oversold Level")
// Supertrend Calculation
atr = ta.atr(atrLength)
upperBand = ta.sma(close, atrLength) + (factor * atr)
lowerBand = ta.sma(close, atrLength) - (factor * atr)
supertrend = 0.0
supertrend := close > nz(supertrend[1], close) ? lowerBand : upperBand
supertrendSignal = close > supertrend ? "Buy" : "Sell"
// RSI Calculation
rsi = ta.rsi(close, rsiLength)
// Trading Logic
longCondition = (supertrendSignal == "Buy") and (rsi > rsiOversold)
shortCondition = (supertrendSignal == "Sell") and (rsi < rsiOverbought)
// Entry and Exit Conditions
if longCondition
strategy.entry("Long", strategy.long)
if shortCondition
strategy.entry("Short", strategy.short)
// Plot Supertrend
plot(supertrend, title="Supertrend", color=color.new(color.blue, 0), linewidth=2, style=plot.style_line)
// Plot RSI Levels
hline(rsiOverbought, "Overbought", color=color.red)
hline(rsiOversold, "Oversold", color=color.green)
plot(rsi, title="RSI", color=color.orange, style=plot.style_stepline)
// Alerts
alertcondition(longCondition, title="Buy Alert", message="Supertrend + RSI Buy Signal")
alertcondition(shortCondition, title="Sell Alert", message="Supertrend + RSI Sell Signal")