
یہ حکمت عملی ایک متحرک کم پوزیشن کی حکمت عملی ہے جو نسبتا strong مضبوط اشاریہ ((RSI) پر مبنی ہے ، مارکیٹ کے رجحانات کو پکڑنے کے لئے متحرک کھلی پوزیشن اور پوزیشن کی شرائط طے کرتی ہے۔ حکمت عملی ایک ٹریڈنگ سگنل پیدا کرتی ہے جب RSI اشارے اوورلوڈ اوورلوڈ سطح سے تجاوز کرتے ہیں ، اور ایک منفرد متحرک کم پوزیشن میکانزم متعارف کرایا جاتا ہے جس میں مختلف RSI سطحوں پر کم پوزیشن کی شرائط طے کرکے تجارت کی کارکردگی کو بہتر بنایا جاتا ہے۔ اس حکمت عملی میں ایک مکمل کثیر فاریکس ٹریڈنگ سسٹم کا استعمال کیا گیا ہے ، جو مارکیٹ میں باہمی اتار چڑھاؤ میں تجارتی مواقع کو پکڑنے کے قابل ہے۔
حکمت عملی کی بنیادی منطق میں درج ذیل کلیدی اجزاء شامل ہیں:
یہ ایک حکمت عملی ہے جس میں مارکیٹ کے مواقع کو پکڑنے کے لئے آر ایس آئی اشارے اور متحرک پیوریج میکانزم کے ذریعہ ایک معقول متحرک ٹریڈنگ حکمت عملی تیار کی گئی ہے۔ اس حکمت عملی کی اہم خصوصیات یہ ہیں کہ اس میں اعلی نظام سازی ، بہتر خطرے سے متعلق کنٹرول اور اعلی موافقت ہے۔ اگرچہ اس میں کچھ موروثی خطرات موجود ہیں ، لیکن پیرامیٹرز کی اصلاح اور فعالیت میں توسیع کے ذریعہ اس حکمت عملی میں بہتری کی گنجائش ہے۔ مستحکم تجارتی نظام کی تلاش میں سرمایہ کاروں کے لئے یہ ایک قابل غور حکمت عملی کا فریم ورک ہے۔
/*backtest
start: 2024-10-01 00:00:00
end: 2024-10-31 23:59:59
period: 3h
basePeriod: 3h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
strategy("RSI Strategy with Close Levels", shorttitle="RSI Strat", overlay=true)
// RSI Input settings
rsiLength = input.int(14, title="RSI Length")
rsiOverbought = input.int(70, title="RSI Overbought Level")
rsiOversold = input.int(30, title="RSI Oversold Level")
rsiCloseLongLevel = input.int(60, title="RSI Level to Close Long Position")
rsiCloseShortLevel = input.int(40, title="RSI Level to Close Short Position")
// Calculate RSI
rsi = ta.rsi(close, rsiLength)
// Generate buy and sell signals based on RSI levels
buySignal = ta.crossover(rsi, rsiOversold)
sellSignal = ta.crossunder(rsi, rsiOverbought)
// Check if there are open positions
var bool inPosition = na
if (strategy.opentrades > 0)
inPosition := true
else
inPosition := false
// Open long position on buy signal if not already in a position
if (buySignal and not inPosition)
strategy.entry("Buy", strategy.long)
inPosition := true
// Close long position on sell signal or when RSI reaches the close long level
if (inPosition and strategy.position_size > 0 and (sellSignal or rsi >= rsiCloseLongLevel))
strategy.close("Buy")
inPosition := false
// Open short position on sell signal if not already in a position
if (sellSignal and not inPosition)
strategy.entry("Sell", strategy.short)
inPosition := true
// Close short position on buy signal or when RSI reaches the close short level
if (inPosition and strategy.position_size < 0 and (buySignal or rsi <= rsiCloseShortLevel))
strategy.close("Sell")
inPosition := false
// Plot buy and sell signals
//plotshape(series=buySignal, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
//plotshape(series=sellSignal, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
// Plot RSI for visualization
hline(rsiOverbought, "RSI Overbought", color=color.red)
hline(rsiOversold, "RSI Oversold", color=color.green)
hline(rsiCloseLongLevel, "RSI Close Long Level", color=color.blue)
hline(rsiCloseShortLevel, "RSI Close Short Level", color=color.purple)
plot(rsi, title="RSI", color=color.orange)