
حکمت عملی ایک سے زیادہ متحرک اوسط کراس اوور اور RSI اشارے پر مبنی ایک رجحان کی پیروی کرنے والا تجارتی نظام ہے۔ یہ حکمت عملی EMA20، EMA50 اور SMA200 کی تین موونگ ایوریجز کو یکجا کرتی ہے، مارکیٹ کے رجحان کو موونگ ایوریجز کے پوزیشن ریلیشن شپ سے جج کرتی ہے، اور ٹریڈنگ سگنلز کو فلٹر کرنے کے لیے RSI انڈیکیٹر کا استعمال کرتی ہے، اور جب قیمت پچھلی بلندی سے ٹوٹ جاتی ہے تو تجارت کرتی ہے۔ حکمت عملی طے شدہ منافع اور نقصان کو روکنے کے حالات کا تعین کرتی ہے اور 1 گھنٹے اور روزانہ کی سطح پر چلنے کے لیے موزوں ہے۔
حکمت عملی کی بنیادی منطق درج ذیل کلیدی شرائط پر مبنی ہے:
یہ حکمت عملی ایک مکمل ڈھانچہ اور واضح منطق کے ساتھ ٹرینڈ ٹریکنگ سسٹم ہے۔ متعدد تکنیکی اشاریوں کے مربوط استعمال کے ذریعے، مارکیٹ کے رجحانات کو مؤثر طریقے سے پکڑنا ممکن ہے اور ساتھ ہی ساتھ ایک مکمل رسک مینجمنٹ میکانزم بھی ہے۔ حکمت عملی کو بہتر بنانے کی ایک بڑی گنجائش ہے، اور مسلسل بہتری حکمت عملی کے استحکام اور منافع کو مزید بڑھا سکتی ہے۔ درمیانی اور طویل مدتی تاجروں کے لیے، یہ کوشش کرنے کے قابل حکمت عملی کا فریم ورک ہے۔
/*backtest
start: 2025-01-02 00:00:00
end: 2025-01-09 00:00:00
period: 5m
basePeriod: 5m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
strategy("EMA/SMA Strategy", overlay=false)
// Input parameters
ema20Length = input(20, title="20 EMA Length")
ema50Length = input(50, title="50 EMA Length")
sma200Length = input(200, title="200 SMA Length")
rsiLength = input(14, title="RSI Length")
rsiThreshold = input(40, title="RSI Threshold")
// Calculate indicators
ema20 = ta.ema(close, ema20Length)
ema50 = ta.ema(close, ema50Length)
sma200 = ta.sma(close, sma200Length)
rsiValue = ta.rsi(close, rsiLength)
// Conditions
emaCondition = ema20 > ema50 and sma200 < ema20 and sma200 < ema50
priceNearEMA = (close <= ema20 * 1.01 and close >= ema20 * 0.99) or (close <= ema50 * 1.01 and close >= ema50 * 0.99)
rsiCondition = rsiValue > rsiThreshold
// Entry condition: Price crosses previous candle high
entryCondition = priceNearEMA and rsiCondition and emaCondition and (close > high[1])
// Strategy entry
if entryCondition
strategy.entry("Long", strategy.long)
// Take profit and stop loss settings
takeProfitLevel = strategy.position_avg_price * 1.25 // Take profit at +25%
stopLossLevel = strategy.position_avg_price * 0.90 // Stop loss at -10%
// Exit conditions
if strategy.position_size > 0
strategy.exit("Take Profit", from_entry="Long", limit=takeProfitLevel)
strategy.exit("Stop Loss", from_entry="Long", stop=stopLossLevel)
// Plotting indicators for visualization
plot(ema20, color=color.blue, title="20 EMA")
plot(ema50, color=color.red, title="50 EMA")
plot(sma200, color=color.green, title="200 SMA")
hline(rsiThreshold, "RSI Threshold", color=color.orange)