
یہ حکمت عملی ایک اعلی درجے کی ٹریڈنگ سسٹم ہے جو سپر ٹرینڈ اشارے پر مبنی ہے جو مارکیٹ میں خرید و فروخت کے سگنل کی شناخت کے لئے رجحان کی تبدیلیوں کی تصدیق اور قیمتوں کے رویے کے تجزیہ کے ذریعہ استعمال کیا جاتا ہے۔ حکمت عملی متحرک رجحان سے باخبر رہنے کے طریقہ کار کو اپناتی ہے ، جس میں قیمتوں کے توڑنے کی توثیق شامل ہے ، جو مارکیٹ میں رجحان کے موڑ کو مؤثر طریقے سے پکڑ سکتی ہے۔
حکمت عملی کی بنیاد درج ذیل کلیدی عناصر پر مبنی ہے:
اس حکمت عملی نے ایک نسبتا reliable قابل اعتماد ٹریڈنگ سسٹم تشکیل دیا ہے جس میں ہائپر ٹرینڈ اشارے اور قیمت کے طرز عمل کا تجزیہ شامل ہے۔ اگرچہ کچھ ممکنہ خطرات موجود ہیں ، لیکن تجویز کردہ اصلاح کی سمت سے حکمت عملی کی استحکام اور منافع کو مزید فروغ دیا جاسکتا ہے۔ اس حکمت عملی کے کامیاب نفاذ کے لئے تاجروں کو مارکیٹ کے ماحول کو گہرائی سے سمجھنے اور پیرامیٹرز کو حقیقت کے مطابق لچکدار انداز میں ایڈجسٹ کرنے کی ضرورت ہے۔
/*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!")