
এই কৌশলটি একটি বুদ্ধিমান ট্রেডিং সিস্টেম যা প্রযুক্তিগত বিশ্লেষণের ক্লাসিক সমান্তরাল ক্রস এবং কে লাইন আকৃতির সনাক্তকরণকে সংযুক্ত করে। কৌশলটি কে লাইনের উপরের এবং নীচের লাইনের সাথে সত্তার সম্পর্ক বিশ্লেষণ করে, দ্বি-সমান্তরাল ক্রস সংকেতগুলির সাথে মিলিত হয়, যা বাজারের প্রবণতা পাল্টানোর সঠিকভাবে ধরা যায়। সিস্টেমটি কেবল দামের গতিকেই নজর রাখে না, তবে গড় তরঙ্গের পরিমাণ গণনা করে গতিশীলভাবে ট্রেডিং প্যারামিটারগুলি সামঞ্জস্য করে, কৌশলটির অভিযোজনযোগ্যতা উন্নত করে।
কৌশলটির মূল যুক্তি দুটি প্রধান অংশে বিভক্তঃ
K-লাইন আকৃতি সনাক্তকরণ মডিউল একটি সম্ভাব্য বিপরীত সিগন্যাল সনাক্ত করে, যা একটি উপরের এবং নীচের ছায়াছবির সাথে বস্তুর অনুপাতের সম্পর্ক গণনা করে। সিস্টেমটি সংকেত মানের অনুকূলিতকরণের জন্য একটি নিয়ন্ত্রিত ছায়াছবি গুণিতকরণ প্যারামিটার (wickMultiplier) এবং বস্তুর শতাংশ প্যারামিটার (bodyPercentage) সেট করে। যখন K-লাইনটি একটি উপযুক্ত দীর্ঘ উপরের ছায়াছবি বা দীর্ঘ নিচের ছায়াছবি প্রদর্শন করে, তখন সিস্টেমটি সংশ্লিষ্ট অতিরিক্ত বা খালি সংকেত দেয়।
ডাবল মিডল লাইন ক্রস সিস্টেমটি ট্রেন্ড ইন্ডিকেটর হিসাবে 14 পিরিয়ড এবং 28 পিরিয়ডের একটি সরল চলমান গড় ((এসএমএ)) ব্যবহার করে। যখন স্বল্পমেয়াদী মিডল লাইন দীর্ঘমেয়াদী মিডল লাইন অতিক্রম করে তখন সিস্টেমটি একটি মাল্টিসিগন্যাল তৈরি করে। যখন স্বল্পমেয়াদী মিডল লাইন দীর্ঘমেয়াদী মিডল লাইন অতিক্রম করে তখন সিস্টেমটি একটি শূন্য সিগন্যাল তৈরি করে।
এই কৌশলটি কে-লাইন মোডাল আইডেন্টিফিকেশন এবং সমান্তরাল ক্রস সিস্টেমের সাথে একত্রিত হয়ে একটি অপেক্ষাকৃত সম্পূর্ণ লেনদেনের সিদ্ধান্ত গ্রহণের কাঠামো তৈরি করে। কৌশলটির সুবিধাটি হ’ল এর কঠোর সংকেত-ছাঁচনির্মাণ প্রক্রিয়া এবং নমনীয় প্যারামিটার-নিয়ন্ত্রণের ক্ষমতা, তবে একই সাথে প্যারামিটার অপ্টিমাইজেশন এবং বাজারের পরিবেশের সাথে অভিযোজনযোগ্যতার বিষয়েও মনোযোগ দেওয়া দরকার। ক্রমাগত অপ্টিমাইজেশন এবং পরিমার্জনের মাধ্যমে, কৌশলটি বিভিন্ন বাজারের পরিবেশের মধ্যে স্থিতিশীল পারফরম্যান্স বজায় রাখার প্রত্যাশা করে।
/*backtest
start: 2024-10-28 00:00:00
end: 2024-11-27 00:00:00
period: 1h
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5 indicator("Wick Reversal Setup", overlay=true)
// Input parameters
wickMultiplier = input.float(3.5, title="Wick Multiplier", minval=0.5, maxval=20)
bodyPercentage = input.float(0.25, title="Body Percentage", minval=0.1, maxval=1.0)
// Calculate the average range over 50 periods
avgRange = ta.sma(high - low, 50)
// Define the lengths of wicks and bodies
bodyLength = math.abs(close - open)
upperWickLength = high - math.max(close, open)
lowerWickLength = math.min(close, open) - low
totalRange = high - low
// Long signal conditions
longSignal = (close > open and upperWickLength >= bodyLength * wickMultiplier and upperWickLength <= totalRange * bodyPercentage) or
(close < open and lowerWickLength >= bodyLength * wickMultiplier and upperWickLength <= totalRange * bodyPercentage) or
(close == open and close != high and upperWickLength >= bodyLength * wickMultiplier and upperWickLength <= totalRange * bodyPercentage) or
(open == high and close == high and totalRange >= avgRange)
// Short signal conditions
shortSignal = (close < open and (high - open) >= bodyLength * wickMultiplier and lowerWickLength <= totalRange * bodyPercentage) or
(close > open and (high - close) >= bodyLength * wickMultiplier and lowerWickLength <= totalRange * bodyPercentage) or
(close == open and close != low and lowerWickLength >= bodyLength * wickMultiplier and lowerWickLength <= totalRange * bodyPercentage) or
(open == low and close == low and totalRange >= avgRange)
// Plot signals
plotshape(series=longSignal, location=location.belowbar, color=color.green, style=shape.labelup, text="Long")
plotshape(series=shortSignal, location=location.abovebar, color=color.red, style=shape.labeldown, text="Short")
// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Sahaj_Beriwal
//@version=5
strategy("My strategy", overlay=true, margin_long=100, margin_short=100)
longCondition = ta.crossover(ta.sma(close, 14), ta.sma(close, 28))
if (longCondition)
strategy.entry("L", strategy.long)
shortCondition = ta.crossunder(ta.sma(close, 14), ta.sma(close, 28))
if (shortCondition)
strategy.entry("S", strategy.short)