
এই কৌশলটি একটি স্বয়ংক্রিয় ট্রেডিং সিস্টেম যা একাধিক চলমান গড় (এসএমএ) এবং তুলনামূলকভাবে দুর্বল সূচক (আরএসআই) ক্রস সিগন্যালের উপর ভিত্তি করে। এটি স্বল্পমেয়াদী এবং মধ্যমেয়াদী চলমান গড়ের একাধিক যাচাইকরণ ব্যবস্থাকে একত্রিত করে এবং আরএসআই সূচকগুলির মাধ্যমে প্রবণতা নিশ্চিত করে এবং গতিশীল এটিআর স্টপ লস ব্যবহার করে ঝুঁকি নিয়ন্ত্রণের জন্য একটি সম্পূর্ণ ট্রেডিং সিদ্ধান্ত গ্রহণের কাঠামো তৈরি করে। এই কৌশলটি মূলত বাজার প্রবণতার বিপরীত পয়েন্টগুলিকে ক্যাপচার করার জন্য ব্যবহৃত হয় এবং একাধিক প্রযুক্তিগত সূচকের ক্রস নিশ্চিতকরণের মাধ্যমে ব্যবসায়ের নির্ভুলতা বাড়ায়।
কৌশলটির মূল যুক্তিটি পাঁচটি মূল শর্তের উপর ভিত্তি করে তৈরি করা হয়েছেঃ
শুধুমাত্র যখন এই পাঁচটি শর্ত একসাথে পূরণ করা হয়, তখনই কৌশলটি একটি ক্রয় সংকেত তৈরি করে। প্রবেশের পরে, কৌশলটি এটিআর-ভিত্তিক গতিশীল স্টপ এবং স্টপ লেভেল ব্যবহার করে, যার মধ্যে স্টপটি 1.5x এটিআর এবং স্টপটি 2.5x এটিআর সেট করা হয়। এই নকশাটি বাজারের অস্থিরতার উপর নির্ভর করে স্বয়ংক্রিয়ভাবে ঝুঁকি ব্যবস্থাপনার পরামিতিগুলিকে সামঞ্জস্য করতে পারে।
এটি একটি যুক্তিসঙ্গতভাবে পরিকল্পিত প্রযুক্তিগত ট্রেডিং কৌশল যা একাধিক প্রযুক্তিগত সূচকগুলির ক্রস-নিশ্চিতকরণের মাধ্যমে ব্যবসায়ের নির্ভুলতা বাড়ায় এবং মুনাফা সুরক্ষার জন্য একটি গতিশীল ঝুঁকি ব্যবস্থাপনা সিস্টেম ব্যবহার করে। যদিও কৌশলটির কিছু সীমাবদ্ধতা রয়েছে, তবে প্রস্তাবিত অপ্টিমাইজেশনের দিকনির্দেশের মাধ্যমে এর কার্যকারিতা আরও বাড়ানো যেতে পারে। এই কৌশলটি ঝুঁকি সহ্য করার দৃ strong় ক্ষমতা এবং দীর্ঘমেয়াদী কৌশল অপ্টিমাইজেশনের জন্য ইচ্ছুক ব্যবসায়ীদের জন্য উপযুক্ত।
/*backtest
start: 2024-02-22 00:00:00
end: 2025-02-19 08:00:00
period: 1h
basePeriod: 1h
exchanges: [{"eid":"Binance","currency":"SOL_USDT"}]
*/
//@version=5
strategy("Virat Bharat Auto Trade", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=10)
// **User-Defined Inputs for Customization**
smaLength20 = input(20, title="SMA High/Low 20 Length")
smaLength50 = input(50, title="SMA High/Low 50 Length")
rsiLength = input(7, title="RSI Length")
rsiLevel = input(50, title="RSI Crossover Level")
atrMultiplierSL = input(1.5, title="ATR Multiplier for Stop Loss")
atrMultiplierTP = input(2.5, title="ATR Multiplier for Target")
// **Defining the Indicators with Custom Inputs**
smaHigh20 = ta.sma(high, smaLength20)
smaLow20 = ta.sma(low, smaLength20)
smaHigh50 = ta.sma(high, smaLength50)
smaLow50 = ta.sma(low, smaLength50)
rsiValue = ta.rsi(close, rsiLength)
atrValue = ta.atr(14) // ATR for Dynamic Stop Loss & Target
// **Conditions for Buy Signal**
condition1 = ta.crossover(close, smaHigh20)
condition2 = ta.crossover(close, smaLow20)
condition3 = ta.crossover(close, smaHigh50)
condition4 = ta.crossover(close, smaLow50)
condition5 = ta.crossover(rsiValue, rsiLevel)
// **Final Buy Signal (Only when all conditions match)**
buySignal = condition1 and condition2 and condition3 and condition4 and condition5
// **Buy Price, Stop Loss & Target**
buyPrice = close
stopLoss = buyPrice - (atrValue * atrMultiplierSL) // Dynamic Stop Loss
target = buyPrice + (atrValue * atrMultiplierTP) // Dynamic Target
// **Plot Buy Signal on Chart**
plotshape(buySignal, location=location.belowbar, color=color.green, style=shape.labelup, title="BUY", size=size.small, text="BUY")
// **Plot Labels for Buy, Stop Loss & Target**
if buySignal
label.new(x=bar_index, y=buyPrice, text="BUY @ " + str.tostring(buyPrice, format="#.##"), color=color.green, textcolor=color.white, size=size.small, style=label.style_label_down, yloc=yloc.price)
label.new(x=bar_index, y=stopLoss, text="STOP LOSS @ " + str.tostring(stopLoss, format="#.##"), color=color.red, textcolor=color.white, size=size.small, style=label.style_label_down, yloc=yloc.price)
label.new(x=bar_index, y=target, text="TARGET @ " + str.tostring(target, format="#.##"), color=color.blue, textcolor=color.white, size=size.small, style=label.style_label_up, yloc=yloc.price)
// **Strategy Trading Logic - Automated Entry & Exit**
if buySignal
strategy.entry("BUY", strategy.long)
strategy.exit("SELL", from_entry="BUY", loss=atrValue * atrMultiplierSL, profit=atrValue * atrMultiplierTP)