
यह रणनीति एक सुपरट्रेंड सूचक पर आधारित एक उन्नत ट्रेडिंग प्रणाली है, जो प्रवृत्ति में परिवर्तन की पुष्टि और मूल्य व्यवहार के विश्लेषण के माध्यम से बाजार में खरीद और बिक्री के संकेतों की पहचान करती है। यह रणनीति गतिशील प्रवृत्ति ट्रैकिंग तंत्र का उपयोग करती है, जो मूल्य ब्रेकथ्रू सत्यापन के साथ संयुक्त है, जो प्रभावी रूप से बाजार की प्रवृत्ति के मोड़ को पकड़ने में सक्षम है।
रणनीति का मूल निम्नलिखित प्रमुख तत्वों पर आधारित है:
रणनीति के संयोजन के माध्यम से एक अपेक्षाकृत विश्वसनीय व्यापार प्रणाली का निर्माण किया गया है। हालांकि कुछ संभावित जोखिम हैं, लेकिन रणनीति की स्थिरता और लाभप्रदता को और अधिक बढ़ाने के लिए अनुशंसित अनुकूलन दिशाओं के माध्यम से। रणनीति के सफल कार्यान्वयन के लिए एक व्यापारी को बाजार की स्थिति की गहरी समझ की आवश्यकता होती है और वास्तविक स्थिति के आधार पर पैरामीटर सेटिंग्स को समायोजित करने के लिए लचीलापन की आवश्यकता होती है।
/*backtest
start: 2024-08-01 00:00:00
end: 2025-02-19 08:00:00
period: 1d
basePeriod: 1d
exchanges: [{"eid":"Binance","currency":"DOGE_USDT"}]
*/
//@version=5
strategy("Supertrend Strategy with Money Ocean Trade", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=100)
// Input parameters
supertrendLength = input.int(6, title="Supertrend Length")
supertrendFactor = input.float(0.25, title="Supertrend Factor")
// Supertrend calculation
[supertrend, direction] = ta.supertrend(supertrendFactor, supertrendLength)
// Plot Supertrend line
supertrendColor = direction == 1 ? color.green : color.red
plot(supertrend, title="Supertrend", color=supertrendColor, linewidth=2, style=plot.style_line)
// Variables to track trend change and candle break
var bool trendChanged = false
var float prevSupertrend = na
if (not na(prevSupertrend) and direction != nz(ta.valuewhen(prevSupertrend != supertrend, direction, 1)))
trendChanged := true
else
trendChanged := false
prevSupertrend := supertrend
longEntry = trendChanged and close[1] < supertrend[1] and close > supertrend
shortEntry = trendChanged and close[1] > supertrend[1] and close < supertrend
// Strategy execution
if (longEntry)
strategy.entry("Long", strategy.long)
if (shortEntry)
strategy.entry("Short", strategy.short)
// Plot entry signals on the chart
plotshape(series=longEntry, location=location.belowbar, color=color.green, style=shape.labelup, title="BUY")
plotshape(series=shortEntry, location=location.abovebar, color=color.red, style=shape.labeldown, title="SELL")
// Alerts
alertcondition(longEntry, title="Buy Signal", message="Buy Signal Triggered!")
alertcondition(shortEntry, title="Short Signal", message="Short Signal Triggered!")