
এই কৌশলটি একটি স্কাল্পার ট্রেডিং কৌশল যা স্বতঃস্ফূর্তভাবে মুদ্রা ক্রয় এবং ধারণ করে, যা র্যান্ডম সূচক সমতল চলমান গড় (RSI) এবং সূচকীয় চলমান গড় (EMA) উপর ভিত্তি করে। এটি 5 মিনিটের K লাইনের জন্য প্রযোজ্য এবং বিটিসির জন্য অপ্টিমাইজ করা হয়েছে। কৌশলটির লক্ষ্য হ’ল যতটা সম্ভব মুদ্রা ধরে রাখা যখন এটি ক্রসওভার হয় বা খুব বেশি পড়ে না।
এই কৌশলটি RSI সূচককে ব্যবহার করে ওভার-বই ওভার-সোল্ড অঞ্চলে রয়েছে কিনা তা নির্ধারণ করে এবং একটি কে এবং ডি মানের সাথে র্যান্ডম RSI সূচকের সম্পর্ককে কেনার এবং বিক্রি করার জন্য সংকেত দেয়।
যখন র্যান্ডম আরএসআই এর কে লাইন ২০ এর নিচে থাকে তখন ওভারসোল্ড বলে গণ্য করা হয় এবং কে লাইনটি ডি লাইনের চেয়ে বড় হলে কেনার সংকেত দেওয়া হয়। এর পরে, তিনটি শর্তের ভিত্তিতে বিক্রি করা হবে কিনা তা বিচার করা হবেঃ 1) দাম 1% এর বেশি বেড়ে গেলে ইএমএ উল্টে যায়; 2) যখন র্যান্ডম আরএসআই এর কে লাইনটি ডি লাইনের নিচে থাকে; 3) যখন স্টপডাউন মূল্য প্রবেশের দামের 98.5% পৌঁছে যায়।
উপরন্তু, স্বল্পমেয়াদী ইএমএ-র পতন যখন একটি উত্থানের পরে ঘটে তখন এটি একটি বিক্রয় সংকেত হিসাবে বিবেচিত হয়।
এই কৌশলটি র্যান্ডম আরএসআই এবং ইএমএর মতো একাধিক সূচকের সুবিধাগুলিকে একত্রিত করে এবং ক্রয় এবং বিক্রয়ের সময় নির্ধারণের জন্য একটি আরও শক্তিশালী পদ্ধতি ব্যবহার করে। প্যারামিটার অপ্টিমাইজেশন এবং ঝুঁকি পরিচালনার মাধ্যমে কৌশলটির আয় এবং স্থিতিশীলতা আরও বাড়ানো যেতে পারে। সামগ্রিকভাবে, কৌশলটি যুক্তিসঙ্গতভাবে যুক্তিসঙ্গত এবং রিয়েল-টাইমে যাচাই এবং অপ্টিমাইজেশনের জন্য উপযুক্ত।
/*backtest
start: 2023-09-30 00:00:00
end: 2023-10-30 00:00:00
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
strategy(title="Stochastic RSI W Auto Buy Scalper Scirpt III ", shorttitle="Stoch RSI_III", format=format.price, precision=2)
smoothK = input.int(3, "K", minval=1)
smoothD = input.int(3, "D", minval=1)
lengthRSI = input.int(14, "RSI Length", minval=1)
lengthStoch = input.int(14, "Stochastic Length", minval=1)
src = input(close, title="RSI Source")
rsi1 = ta.rsi(src, lengthRSI)
k = ta.sma(ta.stoch(rsi1, rsi1, rsi1, lengthStoch), smoothK)
d = ta.sma(k, smoothD)
plot(k, "K", color=#2962FF)
plot(d, "D", color=#FF6D00)
h0 = hline(80, "Upper Band", color=#787B86)
hline(50, "Middle Band", color=color.new(#787B86, 50))
h1 = hline(20, "Lower Band", color=#787B86)
longStopLoss = strategy.opentrades.entry_price(0)* (.985)
stochDropping = ta.falling(k,2)
shortSma = ta.sma(hlc3,12)
shorterSma = ta.sma(hlc3,3)
plot(shortSma[3])
shortSmaFlip = (ta.change(shortSma,3)>0) and ta.falling(hlc3,1)
shorterSmaFlip = (ta.change(shorterSma,2)>0) and ta.falling(hlc3,1)
messageSellText ='"type": "sell", "symbol": "BTCUSD", "marketPosition": "{{strategy.market_position}}"'
messageBuyText ='"type": "buy", "symbol": "BTCUSD", "marketPosition": {{strategy.market_position}}"'
fill(h0, h1, color=color.rgb(33, 150, 243, 90), title="Background")
strategy.entry("Tech", strategy.long, when=(strategy.position_size <= 0 and k<17 and k>d),alert_message=messageBuyText)
//original: strategy.close("TL", when=(strategy.position_size >= 0 and (k>90 and k<d)))
takeProfit = hlc3 > strategy.opentrades.entry_price(0)*1.01
//longStopLoss = strategy.opentrades.entry_price(0)* (.995)
strategy.close("Tech", when=(strategy.position_size >= 0 and (k>90 and k<d and stochDropping)) or close<longStopLoss, comment="rsi or Stop sell",alert_message=messageSellText)
//strategy.close("Tech", when=(strategy.position_size >= 0 and close<longStopLoss), comment="stopLoss sell",alert_message=messageSellText)
strategy.close("Tech", when=(shortSmaFlip and k>20 and takeProfit),comment="Sma after profit",alert_message=messageSellText)