
یہ ایک ٹرینڈ ٹریکنگ حکمت عملی ہے جو تین سادہ حرکت پذیر اوسط ((SMA) پر مبنی ہے۔ یہ حکمت عملی مارکیٹ کے رجحانات کی نشاندہی کرنے اور مناسب وقت پر تجارت کرنے کے لئے 21، 50 اور 100 دورانیہ کی حرکت پذیر اوسط کے کراس اور پوزیشن تعلقات کا استعمال کرتی ہے۔ یہ حکمت عملی بنیادی طور پر 5 منٹ کے ٹائم فریم پر چلتی ہے ، جبکہ رجحانات کی تصدیق کے لئے 30 منٹ کے چارٹ کا حوالہ دینے کی سفارش کی جاتی ہے۔
حکمت عملی ٹریڈنگ سگنل کے تعین کے لئے تین فلٹرنگ میکانزم کا استعمال کرتی ہے:
خریداری کی شرائط کو ایک ہی وقت میں پورا کیا جانا چاہئے:
فروخت کی شرائط کو پورا کرنا ضروری ہے:
رسک کنٹرول کی تجاویز:
یہ ایک ساختہ ، منطقی اور واضح رجحان کی پیروی کرنے والی حکمت عملی ہے۔ ٹرپل مساوی لائن فلٹرنگ اور رجحان کی تصدیق کے طریقہ کار کے ذریعہ ، یہ جعلی سگنل کو مؤثر طریقے سے کم کرنے اور تجارت کی کامیابی کی شرح کو بڑھانے کے قابل ہے۔ حکمت عملی میں اچھی توسیع ہے ، جس کو مختلف مارکیٹ کے حالات کے مطابق بہتر بنانے کے لئے ایڈجسٹ کیا جاسکتا ہے۔
/*backtest
start: 2024-02-21 00:00:00
end: 2024-06-08 00:00:00
period: 1h
basePeriod: 1h
exchanges: [{"eid":"Binance","currency":"ETH_USDT"}]
*/
// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Vezpa
//@version=5
strategy("Vezpa's Gold Strategy", overlay=true)
// ======================== MAIN STRATEGY ========================
// Input parameters for the main strategy
fast_length = input.int(21, title="Fast MA Length", minval=1)
slow_length = input.int(50, title="Slow MA Length", minval=1)
trend_filter_length = input.int(100, title="Trend Filter MA Length", minval=1)
// Calculate moving averages for the main strategy
fast_ma = ta.sma(close, fast_length)
slow_ma = ta.sma(close, slow_length)
trend_ma = ta.sma(close, trend_filter_length)
// Plot moving averages
plot(fast_ma, color=color.blue, title="21 MA")
plot(slow_ma, color=color.red, title="50 MA")
plot(trend_ma, color=color.orange, title="100 MA")
// Buy condition: 21 MA crosses above 50 MA AND both are above the 100 MA
if (ta.crossover(fast_ma, slow_ma) and fast_ma > trend_ma and slow_ma > trend_ma)
strategy.entry("Buy", strategy.long)
// Sell condition: 21 MA crosses below 50 MA AND both are below the 100 MA
if (ta.crossunder(fast_ma, slow_ma) and fast_ma < trend_ma and slow_ma < trend_ma)
strategy.close("Buy")
// Plot buy signals as green balloons
plotshape(series=ta.crossover(fast_ma, slow_ma) and fast_ma > trend_ma and slow_ma > trend_ma,
title="Buy Signal",
location=location.belowbar,
color=color.green,
style=shape.labelup,
text="BUY",
textcolor=color.white,
size=size.small,
transp=0)
// Plot sell signals as red balloons
plotshape(series=ta.crossunder(fast_ma, slow_ma) and fast_ma < trend_ma and slow_ma < trend_ma,
title="Sell Signal",
location=location.abovebar,
color=color.red,
style=shape.labeldown,
text="SELL",
textcolor=color.white,
size=size.small,
transp=0)