RSI ٹریڈنگ حکمت عملی کے ساتھ Momentum Oscillator


تخلیق کی تاریخ: 2023-09-18 14:07:51 آخر میں ترمیم کریں: 2023-09-18 14:07:51
کاپی: 0 کلکس کی تعداد: 812
1
پر توجہ دیں
1617
پیروکار

[[سادہ چینی]

جائزہ

اس حکمت عملی کا مقصد قیمتوں میں اتار چڑھاؤ اور بہترین داخلے کے نقطہ کی پیش گوئی کرنا ہے ، جس میں بلین بینڈ اور ایک نسبتا strong مضبوط RSI کا استعمال کیا جاتا ہے۔ حکمت عملی کی منطق بہت سیدھی ہے ، ہم اس بات پر توجہ دیتے ہیں کہ جب اختتامی قیمت بلین بینڈ کو ٹریک کرتی ہے تو ، اس کے بعد دو حالات پیدا ہوں گے۔ قیمت یا تو بلین بینڈ سے ٹریک سے پیچھے ہٹ جاتی ہے ، یا پھر نیچے آتی رہتی ہے۔ قیمت کی نشاندہی کرنے کے لئے ، ہم قیمت کے رجحان کو مزید جاننے کے لئے دوسرا اشارے RSI کا استعمال کرتے ہیں۔ مثال کے طور پر ، اگر قیمت بولین بینڈ کو ٹریک کرتی ہے لیکن RSI کی قیمت اوور سیل زون میں داخل نہیں ہوتی ہے ، تو ہم اس بات کا تعین کرسکتے ہیں کہ قیمت نیچے کی طرف بڑھتی رہے گی۔ اگر RSI کی قیمت اوور سیل زون میں ہے تو ، ہم اس قیمت کے علاقے کو اپنے نقطہ نظر کے طور پر استعمال کرسکتے ہیں۔

ہمیں روکنے کی ضرورت ہے کہ اگر RSI زیادہ عرصے تک oversold زون میں رہتا ہے تو اس سے بچنے کے لئے بہت سارے پیسے ضائع ہوجائیں۔

بہترین اسٹاپ زون یہ ہے کہ جب قیمت بلین کے وسط / اوپری ریل سے اوپر کی طرف واپس آجائے یا آر ایس آئی نے اوپری خرید زون تک پہنچنے پر ، جو بھی پہلے آئے۔

ایک سے زیادہ داخلے:

RSI < 30 اور اختتامی قیمت < برن نیچے ٹریک

ٹوکیو:

RSI > 70

حکمت عملی کا اصول

یہ حکمت عملی سب سے پہلے آر ایس آئی کے اشارے کا حساب لگاتی ہے تاکہ یہ معلوم کیا جاسکے کہ آیا اوورلوڈ کو اوورلوڈ کیا گیا ہے یا نہیں۔ اس کے بعد بلین بینڈ کے درمیانی ، اوپری اور نچلے ریلوں کا حساب لگایا جاتا ہے۔ جب بند ہونے والی قیمتوں میں بلین کی نچلی ریل اور آر ایس آئی 30 سے کم ہوتی ہے تو ، زیادہ کام کریں۔ جب آر ایس آئی 70 سے زیادہ ہوتی ہے تو ، بیعانہ

جب آپ کثیر سر میں داخل ہوں تو ، اسٹاپ نقصان کی پوزیشن طے کریں۔ اسٹاپ نقصان کی پوزیشن داخل ہونے کی قیمت کے طور پر طے کی گئی ہے(1 + فکسڈ تناسب) ، اسٹاپ نقصان کی قیمت پر مقرر کیا گیا ہے(1- فکسڈ تناسب)

اس طرح، ہم خریدتے ہیں جب RSI کم ہے اور RSI اعلی ہے جب ہم خریدتے ہیں اور فروخت کرتے ہیں جب RSI کم ہے.

طاقت کا تجزیہ

  • قیمتوں میں اضافے کے لئے برن بینڈ کا استعمال
  • RSI اشارے جعلی بریک کو فلٹر کرتے ہیں تاکہ داخلے کی وشوسنییتا کو یقینی بنایا جاسکے
  • اسٹاپ نقصان کو روکنے کے لئے سیٹ کریں ، ایک ہی تجارت کے خطرے کو اچھی طرح سے کنٹرول کریں
  • اعداد و شمار کو بھرپور طریقے سے ریٹائر کریں ، پیرامیٹرز کو ایڈجسٹ کریں ، مستحکم منافع حاصل کریں

خطرے کا تجزیہ

  • برین بینڈ قیمتوں کے نقطہ نظر کی مکمل پیش گوئی نہیں کر سکتا ہے اور اس میں ناکامی کی شرح موجود ہے۔
  • RSI اشارے کے غلط سگنل کا امکان موجود ہے
  • اسٹاپ نقصان کے قریب سے زیادہ پوزیشن نہیں رکھ سکتے ، خطرہ بہت زیادہ ہے

برن بینڈ پیرامیٹرز کو ایڈجسٹ کرکے ، دوسرے اشارے کے ساتھ ساتھ ، اور مناسب طور پر اسٹاپ نقصان کی حد کو چھوڑ کر خطرے کو کم کیا جاسکتا ہے۔

اصلاح کی سمت

  • KD، MACD اور دیگر اشارے کے ساتھ مل کر فلٹرنگ داخلہ پر غور کیا جا سکتا ہے
  • متحرک ایڈجسٹمنٹ سٹاپ نقصان اسٹاپ تناسب
  • برن بینڈ پیرامیٹرز کو بہتر بنائیں
  • مختلف تجارتی اقسام کے پیرامیٹرز کی مضبوطی کی جانچ

خلاصہ کریں۔

اس حکمت عملی میں مجموعی طور پر رسک کمائی کا توازن اچھا ہے ، اور اس کی جانچ پڑتال کی کارکردگی اچھی ہے۔ پیرامیٹرز کو ایڈجسٹ کرنے اور اشارے کو بہتر بنانے کے ذریعے اس کی افادیت کو مزید بڑھایا جاسکتا ہے۔ برن بینڈ پر مبنی ریورس ٹریڈنگ کا نظریہ سادہ اور قابل اعتماد ہے ، اور اس میں مزید تحقیق اور بہتری کے قابل ہے۔

||

Overview

This strategy combines Bollinger Bands and the Relative Strength Index (RSI) indicator to predict price volatility and determine optimal entry points. The logic is straightforward - we watch for closing prices that touch the Bollinger lower band, after which there are two possible scenarios: either the price bounces back from the lower Bollinger band, or it continues falling. To confirm the price movement, we use a second indicator, RSI, to further investigate the trend. For example, if the price reaches the lower Bollinger band but the RSI value is not in oversold territory, we can conclude the price will continue down. If the RSI value is oversold, we can use this area as our entry point.

A stop loss is necessary to avoid losing too much capital if the RSI lingers too long in oversold territory.

The best take profit area is when the price rebounds back above the Bollinger middle band/upper band or when RSI reaches overbought levels, whichever comes first.

Long entry:

RSI < 30 and close price < Bollinger lower band

Long exit:

RSI > 70

Strategy Logic

The strategy first calculates the RSI indicator and sets upper/lower boundaries to determine overbought/oversold levels. It then calculates the Bollinger middle, upper and lower bands. When the closing price touches the lower band and RSI is below 30, go long. When RSI is above 70, close the position.

Upon entering long, set stop loss and take profit points. The take profit is set at entry price * (1 + fixed percentage), stop loss is set at entry price * (1 - fixed percentage).

This allows us to buy at Bollinger lower band when RSI is low and sell when RSI is high, profiting from the reversal. Stop loss and take profit control risk.

Advantage Analysis

  • Bollinger Bands determine reversal points accurately
  • RSI filters out false breakouts, ensuring reliable entry
  • Stop loss and take profit manage trade risk effectively
  • Extensive backtesting and parameter optimization ensure stable profitability

Risk Analysis

  • Bollinger Bands do not perfectly predict reversals, some failures occur
  • RSI can also give false signals
  • Stop loss too close cannot hold position, too loose increases risk

Risks can be mitigated by adjusting Bollinger parameters, using other indicators, and widening stop loss appropriately.

Optimization Directions

  • Consider combining with other indicators like KD, MACD to filter entries
  • Dynamically adjust stop loss/take profit percentages
  • Optimize Bollinger parameters
  • Test robustness across different products

Conclusion

The overall risk/reward profile of this strategy is balanced and backtest results are good. Further improvements can be made through parameter optimization and indicator enhancements. The reversal trading concept based on Bollinger Bands is simple and reliable, warranting further research and refinement.

[/trans]

حکمت عملی کا ماخذ کوڈ
/*backtest
start: 2023-09-10 00:00:00
end: 2023-09-17 00:00:00
period: 1m
basePeriod: 1m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=4
//strategy(title="Bollinger Band with RSI", shorttitle="BB&RSI", format=format.price, precision=2, pyramiding=50, initial_capital=10000, calc_on_order_fills=false, calc_on_every_tick=true, default_qty_type=strategy.cash, default_qty_value=1000, currency="USD")
len = input(14, minval=1, title="Length")
src = input(close, "Source", type = input.source)
up = rma(max(change(src), 0), len)
down = rma(-min(change(src), 0), len)
rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down))
plot(rsi, "RSI", color=#8E1599)
band1 = hline(70, "Upper Band", color=#C0C0C0)
band0 = hline(30, "Lower Band", color=#C0C0C0)
fill(band1, band0, color=#9915FF, transp=90, title="Background")

length_bb = input(20,title="BB Length", minval=1)
mult = input(2.0, minval=0.001, maxval=50, title="BB StdDev")
basis = sma(src, length_bb)
dev = mult * stdev(src, length_bb)
upper = basis + dev
lower = basis - dev
offset = input(0, "BB Offset", type = input.integer, minval = -500, maxval = 500)


Plot_PnL = input(title="Plot Cummulative PnL", type=input.bool, defval=false)
Plot_Pos = input(title="Plot Current Position Size", type=input.bool, defval=false)

long_tp_inp = input(10, title='Long Take Profit %', step=0.1)/100
long_sl_inp = input(25, title='Long Stop Loss %', step=0.1)/100
// Take profit/stop loss
long_take_level = strategy.position_avg_price * (1 + long_tp_inp)
long_stop_level = strategy.position_avg_price * (1 - long_sl_inp)

entry_long = rsi < 30 and src < lower
exit_long = rsi > 70

plotshape(entry_long, style=shape.labelup, color=color.green,  location=location.bottom, text="L", textcolor=color.white, title="LONG_ORDER")
plotshape(exit_long, style=shape.labeldown, color=color.red,  location=location.top, text="S", textcolor=color.white, title="SHORT_ORDER")

strategy.entry("Long",true,when=entry_long)    
strategy.exit("TP/SL","Long", limit=long_take_level, stop=long_stop_level)
strategy.close("Long", when=exit_long, comment="Exit")
plot(Plot_PnL ? strategy.equity-strategy.initial_capital : na, title="PnL", color=color.red)
plot(Plot_Pos ? strategy.position_size : na, title="open_position", color=color.fuchsia)