ক্যান্ডেলস্টিক প্যাটার্ন ট্রেডিং কৌশল

লেখক:চাওঝাং, তারিখ: ২০২৩-১২-১৯ 10:56:36
ট্যাগঃ

img

সারসংক্ষেপ

এটি একটি কৌশল যা বিভিন্ন মোমবাতি প্যাটার্নগুলিকে ট্রেডিং সংকেত হিসাবে ব্যবহার করে। এটি 9 টি সাধারণ মোমবাতি প্যাটার্ন সনাক্ত করতে পারে এবং সেই প্যাটার্নগুলির উপর ভিত্তি করে ক্রয় এবং বিক্রয় সংকেত তৈরি করতে পারে।

কৌশলগত যুক্তি

এই কৌশলটির মূল যুক্তি হ'ল ডোজি, হ্যামার, মর্নিং স্টার ইত্যাদি সহ বিভিন্ন মোমবাতি প্যাটার্ন সনাক্ত করা। যখন একটি উত্থান প্যাটার্ন সনাক্ত করা হয়, তখন একটি ক্রয় সংকেত ট্রিগার করা হবে। যখন একটি হ্রাস প্যাটার্ন সনাক্ত করা হয়, তখন একটি বিক্রয় সংকেত ট্রিগার করা হবে।

উদাহরণস্বরূপ, যখন তিনটি পরপর সাদা মোমবাতি উচ্চতর উচ্চ এবং উচ্চতর নিম্ন সঙ্গে সনাক্ত করা হয়, এটি একটি ষাঁড়ের বাজার নির্দেশ করে Three White Soldiers এর সংকেত দেয়। এই ক্ষেত্রে একটি ক্রয় সংকেত উৎপন্ন হবে।

উদাহরণস্বরূপ, যখন একটি দীর্ঘ হ্রাসকারী মোমবাতি পুরোপুরি পূর্ববর্তী উত্থান মোমবাতির দেহকে গ্রাস করে, তখন এটি একটি হ্রাসকারী গ্রাসকারী প্যাটার্ন গঠন করে, যা প্রবণতা বিপরীতকে বোঝায়। এই ক্ষেত্রে একটি বিক্রয় সংকেত সক্রিয় করা হবে।

সুবিধা বিশ্লেষণ

এই ধরনের প্যাটার্ন-চেনা কৌশলগুলি স্বল্পমেয়াদী বিপরীত পয়েন্টগুলি ক্যাপচার করতে পারে এবং স্বল্পমেয়াদী ব্যবসায়ের জন্য বিশেষভাবে উপযুক্ত। সঠিক প্যাটার্ন সংকেতগুলি সনাক্ত করা সময়মত মূল্য বিপরীতগুলি ক্যাপচার করতে পারে এবং লাভজনক দিকে যেতে পারে।

সরল প্রযুক্তিগত সূচক কৌশল যেমন চলমান গড়ের তুলনায়, ক্যান্ডেলস্টিক প্যাটার্ন কৌশল মূল্য কর্ম এবং বাজারের আবেগ বিচার অন্তর্ভুক্ত, ট্রেডিং সংকেত আরো সঠিক এবং নির্ভরযোগ্য করে তোলে।

ঝুঁকি বিশ্লেষণ

এই কৌশলটি মূলত ক্যান্ডেলস্টিক প্যাটার্নের সঠিক সনাক্তকরণের উপর নির্ভর করে। যদি সনাক্তকরণ ভুল হয়, তাহলে মিথ্যা ট্রেডিং সংকেত তৈরি করা এবং ক্ষতির কারণ হওয়া সহজ।

এছাড়াও, কোনও প্রযুক্তিগত বিশ্লেষণ কৌশল নীতিগত প্রভাব, ব্ল্যাক সোয়ান ইভেন্ট ইত্যাদির মতো ব্যবসায়ের উপর প্রভাব ফেলতে পারে এমন সিস্টেমিক ঝুঁকিগুলি সম্পূর্ণরূপে এড়াতে পারে না।

ঝুঁকি স্টপ লস দ্বারা নিয়ন্ত্রিত হতে পারে। যখন দাম বিপরীত দিকের দিকে একটি পরিসীমা মাধ্যমে বিরতি, স্টপ লস সময়মত পজিশন প্রস্থান করতে ট্রিগার করা যেতে পারে।

অপ্টিমাইজেশান নির্দেশাবলী

সিগন্যাল নিশ্চিতকরণের জন্য আরও দক্ষ মোমবাতি প্যাটার্ন যুক্ত করা যেতে পারে, যেমন হ্যামার, ইনভার্টেড হ্যামার, বিভাজক লাইন ইত্যাদি।

অন্যান্য সূচকগুলি সংকেত ফিল্টারিংয়ের জন্য অন্তর্ভুক্ত করা যেতে পারে, অনিশ্চিত বাজারের পরিবেশে সংকেত গ্রহণ এড়ানো। এমএসিডি, আরএসআই এর মতো সূচকগুলির সংকেতগুলি নিম্নমানের মোমবাতি সংকেতগুলি ফিল্টার করতে ব্যবহার করা যেতে পারে।

স্টপ লস লজিকটি যখন মূল্য বিপরীত দিকের দিকে একটি পরিসীমা থেকে বেরিয়ে আসে তখন ট্রিগার করতে অপ্টিমাইজ করা যায়। স্টপ লস পরিসীমাটি গতিশীলভাবে সামঞ্জস্য করতে অস্থিরতা সূচকগুলির সাথে একত্রিত করুন।

সংক্ষিপ্তসার

এটি একটি খুব ব্যবহারিক স্বল্পমেয়াদী ট্রেডিং কৌশল। এটি ট্রেডিং সংকেত তৈরি করতে এবং স্বল্পমেয়াদী বিপরীতমুখী সুযোগগুলি ক্যাপচার করার জন্য সাধারণ মোমবাতি প্যাটার্নগুলি সনাক্ত করে। এছাড়াও সম্ভাব্য ঝুঁকিগুলি লক্ষ্য করতে এবং ঝুঁকি নিয়ন্ত্রণ এবং দক্ষতা উন্নত করতে যথাযথভাবে অনুকূলিতকরণ করতে হবে।


/*backtest
start: 2022-12-12 00:00:00
end: 2023-12-18 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=3
//Dan Pasco
strategy("Candlestick Signals Strategy" , shorttitle="Candlestick Signal Strategy $1000", overlay = true , initial_capital = 1000)

//Settings input menu
dojicon = input(title = "Show Doji's", type=bool, defval = true)
gravedojicon = input(title = "Gravestone Doji/Dragonfly Doji", type=bool, defval = true)
tbctwscon = input(title = "3 Red Crows/3 Green Soldiers", type=bool, defval = true)
tlscon = input(title = "Three Line Strike", type=bool, defval = true)
pcon = input(title = "Piercing/Dark Cloud", type=bool, defval = true)
mscon = input(title = "Morning Star", type=bool, defval = true)
escon = input(title = "Evening Star", type=bool, defval = true)
econ = input(title = "Engulfing", type=bool, defval = true)
hcon = input(title = "Hammer", type=bool, defval = true)
fscon = input(title = "Falling Star", type=bool, defval = true)

//Doji Up
dojiup = (open-close)>0 ? (high-open)>(open-close) and (close-low)>(open-close) and (close-low)>(high-open) and (open-close)<((high-open)/8) : (open-low)>(close-open) and (high-close)>(close-open) and (open-low)>(high-close) and (close-open)<((high-close)/8) and dojicon == true
plotshape(dojiup, style=shape.cross,location=location.belowbar, text="Doji", color=black)

//Doji Down
dojidown = (open-close)>0 ? (high-open)>(open-close) and (close-low)>(open-close) and (high-open)>(close-low) and (open-close)<((close-low)/8) : (open-low)>(close-open) and (high-close)>(close-open) and (high-close)>(open-low) and (close-open)<((high-close)/8) and dojicon == true
plotshape(dojidown, style=shape.cross,location=location.abovebar, text="Doji", color=black)

//Gravestone Doji Bull
gravedojibull = (close-open)>0 and ((high-close)/8)>(close-open) and ((high-close)/5)>(open-low) and gravedojicon == true
plotshape(gravedojibull, style=shape.arrowdown,location=location.abovebar, text="Gravestone Doji", color=red)

//Gravestone Doji Bear
gravedojibear = (open-close)>0 and ((high-open)/8)>(open-close) and ((high-open)/5)>(close-low) and gravedojicon == true
plotshape(gravedojibear, style=shape.arrowdown,location=location.abovebar, text="Gravestone Doji", color=red)

//Dragonfly Doji Bull
dragondojibull = (close-open)>0 and ((open-low)/8)>(close-open) and ((open-low)/5)>(high-close) and gravedojicon == true
plotshape(dragondojibull, style=shape.arrowup,location=location.belowbar, text="Dragonfly Doji", color=green)

//Dragonfly Doji Bear
dragondojibear = (open-close)>0 and ((close-low)/8)>(open-close) and ((close-low)/5)>(high-open) and gravedojicon == true
plotshape(dragondojibear, style=shape.arrowup,location=location.belowbar, text="Dragonfly Doji", color=green)

//Three Black Crows
tbc = (low[2]<low[3] and low[1]<low[2] and low<low[1] and high[2]<high[3] and high[1]<high[2] and high<high[1] and (close[3]-open[3])>0 and (open[2]-close[2])>0 and (open[1]-close[1])>0 and (open-close)>0 and (open-close)>(close-low) and (open-close)>(high-open) and (open[1]-close[1])>(close[1]-low[1]) and (open[1]-close[1])>(high[1]-open[1]) and (open[2]-close[2])>(close[2]-low[2]) and (open[2]-close[2])>(high[2]-open[2]) and tbctwscon == true)
plotshape(tbc, style=shape.arrowdown,location=location.abovebar, text="3 Red Crows", color=red)

//Three White Soldiers
tws = (high[2]>high[3] and high[1]>high[2] and high>high[1] and low[2]>low[3] and low[1]>low[2] and low>low[1] and (open[3]-close[3])>0 and (close[2]-open[2])>0 and (close[1]-open[1])>0 and (close-open)>0 and (close-open)>(open-low) and (close-open)>(high-close) and (close[1]-open[1])>(open[1]-low[1]) and (close[1]-open[1])>(high[1]-close[1]) and (close[2]-open[2])>(open[2]-low[2]) and (close[2]-open[2])>(high[2]-close[2]) and tbctwscon == true)
plotshape(tws, style=shape.arrowup,location=location.belowbar, text="3 Green Soldiers", color=green)

//Three Line Strike Up
tlsu = ((close-open)>0 and (open[1]-close[1])>0 and (open[2]-close[2])>0 and (open[3]-close[3])>0 and open<close[1] and low[1]<low[2] and low[2]<low[3] and high>high[3] and low<low[1] and tlscon == true)
plotshape(tlsu, style=shape.arrowup,location=location.belowbar, text="3 Line Strike", color=green)

//Three Line Strike Down
tlsd = ((open-close)>0 and (close[1]-open[1])>0 and (close[2]-open[2])>0 and (close[3]-open[3])>0 and open>close[1] and high[1]>high[2] and high[2]>high[3] and low<low[3] and high>high[1] and tlscon == true)
plotshape(tlsd, style=shape.arrowdown,location=location.abovebar, text="3 Line Strike", color=red)

//Piercing Up
pu = ((open[1]-close[1])>0 and (close-open)>0 and (open[1]-close[1])>(high[1]-open[1]) and (open[1]-close[1])>(close[1]-low[1]) and (close-open)>(high-close) and (close-open)>(open-low) and open<close[1] and ((open[1]+close[1])/2)<close and ((close-open)/2)>(high-close) and close<open[1] and (high<high[1] or low>low[1]) and pcon == true)
plotshape(pu, style=shape.arrowup,location=location.belowbar, text="Piercing Up", color=green)

//Dark Cloud
dc = ((close[1]-open[1])>0 and (open-close)>0 and (close[1]-open[1])>(high[1]-close[1]) and (close[1]-open[1])>(open[1]-low[1]) and (open-close)>(high-open) and (open-close)>(close-low) and open>close[1] and ((open[1]+close[1])/2)>close and ((open-close)/2)>(close-low) and close>open[1] and (high<high[1] or low>low[1]) and pcon == true)
plotshape(dc, style=shape.arrowdown,location=location.abovebar, text="Dark Cloud", color=red)

//Morning Star 1 Up
ms1u = ((open[2]-close[2])>0 and (close-open)>0 and (open[1]-close[1])>=0 and (open[2]-close[2])>(high[2]-open[2]) and (open[2]-close[2])>(close[2]-low[2]) and (close-open)>(high-close) and (close-open)>(open-low) and (close-open)>(open[1]-close[1]) and (open[2]-close[2])>(open[1]-close[1]) and open[1]<close[2] and open[1]<open and open[1]!=close[1] and mscon == true)
plotshape(ms1u, style=shape.arrowup,location=location.belowbar, text="Morning Star", color=green)

//Morning Star 2 Up
ms2u = ((open[2]-close[2])>0 and (close-open)>0 and (close[1]-open[1])>=0 and (open[2]-close[2])>(high[2]-open[2]) and (open[2]-close[2])>(close[2]-low[2]) and (close-open)>(high-close) and (close-open)>(open-low) and (close-open)>(close[1]-open[1]) and (open[2]-close[2])>(close[1]-open[1]) and close[1]<close[2] and close[1]<open and open[1]!=close[1] and mscon == true)
plotshape(ms2u, style=shape.arrowup,location=location.belowbar, text="Morning Star X2", color=green)

//Evening Star 1 Down
es1d = ((close[2]-open[2])>0 and (open-close)>0 and (close[1]-open[1])>=0 and (close[2]-open[2])>(high[2]-close[2]) and (close[2]-open[2])>(open[2]-low[2]) and (open-close)>(high-open) and (open-close)>(close-low) and (open-close)>(close[1]-open[1]) and (close[2]-open[2])>(close[1]-open[1]) and open[1]>close[2] and open[1]>open and escon == true)
plotshape(es1d, style=shape.arrowdown,location=location.abovebar, text="Evening Star", color=red)

//Evening Star 2 Down
es2d = ((close[2]-open[2])>0 and (open-close)>0 and (open[1]-close[1])>=0 and (close[2]-open[2])>(high[2]-close[2]) and (close[2]-open[2])>(open[2]-low[2]) and (open-close)>(high-open) and (open-close)>(close-low) and (open-close)>(open[1]-close[1]) and (close[2]-open[2])>(open[1]-close[1]) and close[1]>close[2] and close[1]>open and close[1]!=open[1] and escon == true) 
plotshape(es2d, style=shape.arrowdown,location=location.abovebar, text="Evening  X2", color=red)

//Bullish Engulfing
beu = (open[1]-close[1])>0 and (close-open)>0 and high>high[1] and low<low[1] and (close-open)>(open[1]-close[1]) and (close-open)>(high-close) and (close-open)>(open-low) and econ == true
plotshape(beu, style=shape.arrowup,location=location.belowbar, text="Engulfing", color=green)

//Bearish Engulfing
bed = (close[1]-open[1])>0 and (open-close)>0 and high>high[1] and low<low[1] and (open-close)>(close[1]-open[1]) and (open-close)>(high-open) and (open-close)>(close-low) and econ == true
plotshape(bed, style=shape.arrowdown,location=location.abovebar, text="Engulfing", color=red)

//Bullish Hammer Up
bhu1 = (close-open)>0 and ((close-open)/3)>(high-close) and ((open-low)/2)>(close-open) and (close-open)>((open-low)/8) and hcon == true
plotshape(bhu1, style=shape.arrowup,location=location.belowbar, text="Hammer", color=green)

//Bearish Hammer Up
bhu2 = (open-close)>0 and ((open-close)/3)>(high-open) and ((close-low)/2)>(open-close) and (open-close)>((close-low)/8) and hcon == true
plotshape(bhu2, style=shape.arrowup,location=location.belowbar, text="Hammer", color=green)

//Bullish Falling Star
bfs1 = (close-open)>0 and ((close-open)/3)>(open-low) and ((high-close)/2)>(close-open) and (close-open)>((high-close)/8) and fscon == true
plotshape(bfs1, style=shape.arrowdown,location=location.abovebar, text="Falling Star", color=red)

//Bearish Falling Star
bfs2 = (open-close)>0 and ((open-close)/3)>(close-low) and ((high-open)/2)>(open-close) and (open-close)>((high-open)/8) and fscon == true
plotshape(bfs2, style=shape.arrowdown,location=location.abovebar, text="Falling Star", color=red)

//Declaring the buy signals
buy = (dragondojibear == true and gravedojicon == true) or (dragondojibull == true and gravedojicon == true) or (tws == true and tbctwscon == true) or (tlsu == true and tlscon == true) or (pu == true and pcon == true) or (ms1u == true and mscon == true) or (ms2u == true and mscon == true) or (beu == true and econ == true) or (bhu1 == true and hcon == true) or (bhu2 == true and hcon == true)

//Declaring the sell signals
sell = (gravedojibear == true and gravedojicon == true) or (gravedojibull == true and gravedojicon == true) or (tbc == true and tbctwscon == true) or (tlsd == true and tlscon == true) or (dc == true and pcon == true) or (es1d == true and escon == true) or (es2d == true and escon == true) or (bed == true and econ == true) or (bfs1 == true and fscon == true) or (bfs2 == true and fscon == true)

//Execute historic backtesting
ordersize = floor(strategy.equity/close) // To dynamically calculate the order size as the account equity increases or decreases.
strategy.entry("long",strategy.long,ordersize,when=buy) // Buy 
strategy.close("long", when=sell) //Sell

আরো