সুপার ইচি কৌশল

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

img

সারসংক্ষেপ

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

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

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

সুপার ইচি কৌশল মূলত নিম্নলিখিত উপাদানগুলিকে মূল্যায়ন করে ট্রেডিং দিকনির্দেশনা নির্ধারণ করেঃ

  1. টেনকান এবং কিজুন সম্পর্ক: টেনকান যখন উপরে থাকে তখন বাউলি, যখন নিচে থাকে তখন বিয়ারি

  2. মেঘের রঙ: মেঘ যখন সবুজ হয় তখন বাউশ, যখন লাল হয় তখন হ্রাস

  3. দামের পুনরুদ্ধার: প্রবেশের আগে লাইন থেকে একটি pullback প্রয়োজন

বিশেষ করে, ট্রেডিং সিগন্যালগুলি হলঃ

দীর্ঘ সংকেত:

  • কিজুনের উপরে টেনকান
  • টেনকান ও কিজুনের উপরে দাম
  • মেঘের উপরে টেনকান এবং কিজুন
  • দাম টেনকান ও কিজুনের নিচে নেমেছে

সংক্ষিপ্ত সংকেত:

  • কিজুনের নিচে টেনকান
  • টেনকান ও কিজুনের দামের নিচে
  • মেঘের নিচে টেনকান এবং কিজুন
  • দাম টেনকান এবং কিজুনের উপরে ফিরে আসে

যখন লং/শর্ট সিগন্যালটি ট্রিগার করা হয়, তখন বর্তমান অবস্থানের ভিত্তিতে একটি পজিশন খোলা হবে।

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

সুপার ইচি কৌশল নিম্নলিখিত সুবিধাগুলি আছেঃ

  1. প্রবণতা সঠিকভাবে নির্ধারণ করতে Ichimoku সমন্বয় ব্যবহার করে

  2. টেনকান/কিজুন স্বল্পমেয়াদী প্রবণতা দেখায়, ক্লাউড দীর্ঘমেয়াদী প্রবণতা দেখায়

  3. পলব্যাক বাধ্যবাধকতা ভুয়া ব্রেকআউট এড়ায়

  4. ঝুঁকি ব্যবস্থাপনা হ্রাস সীমাবদ্ধ করার জন্য স্টপ লস জন্য সাম্প্রতিক সুইং উচ্চ / নিম্ন ব্যবহার করে

  5. ধ্রুবক লাভের জন্য যুক্তিসঙ্গত ঝুঁকি-প্রতিফলন অনুপাত

  6. মাঝারি থেকে দীর্ঘমেয়াদী ট্রেডিংয়ের জন্য বিভিন্ন সময়সীমার জন্য প্রযোজ্য

  7. পরিষ্কার যুক্তি এবং বড় অপ্টিমাইজেশান স্থান

  8. বিভিন্ন বাজারের পরিস্থিতিতে ভাল পারফর্ম করে

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

সুপার ইচি কৌশল এছাড়াও নিম্নলিখিত ঝুঁকি আছেঃ

  1. স্টপ লস প্রায়শই রেঞ্জিং মার্কেটে সক্রিয় হতে পারে, লাভজনকতা প্রভাবিত করে

  2. প্রবণতা দ্রুত পরিবর্তনের সময় দ্রুত পজিশন বিপরীত করতে ব্যর্থ হলে ক্ষতি হতে পারে।

  3. ডিফল্ট রিস্ক-প্রতিফলন অনুপাত সমস্ত যন্ত্রের জন্য উপযুক্ত নাও হতে পারে, সূক্ষ্ম সমন্বয় প্রয়োজন

  4. ক্লাউড ব্রেকআউট সীমিত ফলো-থ্রো হলে সীমিত আপসাইড সম্ভাব্যতা

  5. সক্রিয় যন্ত্রগুলির জন্য সূচক পরামিতিগুলির ব্যাপক পরীক্ষা এবং অপ্টিমাইজেশান প্রয়োজন

ঝুঁকিগুলি নিম্নলিখিতগুলির মাধ্যমে হ্রাস করা যেতে পারেঃ

  1. বিভিন্ন সময়সীমা এবং যন্ত্রের জন্য পরামিতি অপ্টিমাইজ করা

  2. ব্যাপ্তি বাজারের সময় মিথ্যা ব্রেকআউট এন্ট্রি এড়ানোর জন্য ফিল্টার যোগ করা

  3. স্টপ আউট হ্রাস করার জন্য গতিশীল স্টপ লস ব্যবহার করা

  4. বিভিন্ন ঝুঁকি-প্রতিদান অনুপাতের সেটিংস পরীক্ষা করা

  5. চার্ট প্যাটার্ন ইত্যাদি ব্যবহার করে সিগন্যাল শক্তি নিশ্চিত করা।

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

সুপার ইচি কৌশল নিম্নলিখিত দিকগুলিতে অপ্টিমাইজ করা যেতে পারেঃ

  1. টেনকান/কিজুন প্যারামিটারগুলিকে ট্রেডিংয়ের জন্য আরও ভালভাবে উপযুক্ত করে তুলুন

  2. দীর্ঘমেয়াদী প্রবণতা মূল্যায়নের জন্য ক্লাউড প্যারামিটার অপ্টিমাইজ করুন

  3. স্টপ লস অ্যালগরিদম উন্নত করুন, যেমন ATR-ভিত্তিক বা ট্রেলিং স্টপ

  4. মিথ্যা এন্ট্রি হ্রাস করার জন্য অন্যান্য সূচক ব্যবহার করে ফিল্টার যোগ করুন

  5. বিভিন্ন যন্ত্র ও সময়সীমার জন্য ঝুঁকি-প্রতিফলন অনুপাতের সূক্ষ্ম সমন্বয়

  6. বিভিন্ন বাজারের অস্থিরতার জন্য মার্টিনগেল পজিশন সাইজিং ব্যবহার করুন

  7. প্যারামিটার অপ্টিমাইজেশান এবং দৃঢ়তার জন্য মেশিন লার্নিং ব্যবহার করুন

  8. দিনের তুলনায় রাতারাতি সেশনের জন্য পৃথক পরামিতি সেট করুন

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

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


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

// Strategy based on the the SuperIchi indicator.
//
// Strategy was designed for the purpose of back testing. 
// See strategy documentation for info on trade entry logic.
// 
// Credits:
//  - SuperIchi [LUX]: LuxAlgo (https://www.tradingview.com/script/vDGd9X9y-SuperIchi-LUX/)

//@version=5
strategy("SuperIchi Strategy", overlay=true, initial_capital=1000, currency=currency.NONE, max_labels_count=500, default_qty_type=strategy.cash, commission_type=strategy.commission.percent, commission_value=0.01)

// =============================================================================
// STRATEGY INPUT SETTINGS
// =============================================================================

// ---------------
// Risk Management
// ---------------
swingLength = input.int(15, "Swing High/Low Lookback Length", group='Strategy: Risk Management', tooltip='Stop Loss is calculated by the swing high or low over the previous X candles')
accountRiskPercent = input.float(2, "Account percent loss per trade", step=0.1, group='Strategy: Risk Management', tooltip='Each trade will risk X% of the account balance')
profitFactor = input.float(2, "Profit Factor (R:R Ratio)", step = 0.1, group='Strategy: Risk Management')
useAtrOverride = input.bool(true, "Use Swing High/Low ATR Override", group='Strategy: Risk Management', tooltip='In some cases price may not have a large enough (if any) swing withing previous X candles. Turn this on to use an ATR value when swing high/low is lower than the given ATR value')
atrMultiplier = input.int(1, "Swing High/Low ATR Override Multiplier", group='Strategy: Risk Management')
atrLength = input.int(14, "Swing High/Low ATR Override Length", group='Strategy: Risk Management')

// -----------------
// Strategy Settings
// -----------------
pullbackLength = input.int(5, "Pullback Lookback Length", group='Strategy: Settings', tooltip='Number of candles to consider for a pullback into the moving averages (prerequisite for trade entry)')

// ----------
// Date Range
// ----------
start_year = input.int(title='Start Date', defval=2022, minval=2010, maxval=3000, group='Strategy: Date Range', inline='1')
start_month = input.int(title='', defval=1, group='Strategy: Date Range', inline='1', options = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12])
start_date = input.int(title='', defval=1, group='Strategy: Date Range', inline='1', options = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31])
end_year = input.int(title='End Date', defval=2023, minval=1800, maxval=3000, group='Strategy: Date Range', inline='2')
end_month = input.int(title='', defval=1, group='Strategy: Date Range', inline='2', options = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12])
end_date = input.int(title='', defval=1, group='Strategy: Date Range', inline='2', options = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31])
in_date_range = time >= timestamp(syminfo.timezone, start_year, start_month, start_date, 0, 0) and time < timestamp(syminfo.timezone, end_year, end_month, end_date, 0, 0)

// =============================================================================
// INDICATORS
// =============================================================================

// ---------------
// SuperIchi [LUX]
// ---------------
tenkan_len  = input(9,'Tenkan          ',inline='SuperIchi', group='Indicator: SuperIchi Settings')
tenkan_mult = input(2.,'',inline='SuperIchi', group='Indicator: SuperIchi Settings')

kijun_len   = input(26,'Kijun             ',inline='SuperIchi', group='Indicator: SuperIchi Settings')
kijun_mult  = input(4.,'',inline='SuperIchi', group='Indicator: SuperIchi Settings')

spanB_len   = input(52,'Senkou Span B ',inline='SuperIchi', group='Indicator: SuperIchi Settings')
spanB_mult  = input(6.,'',inline='SuperIchi', group='Indicator: SuperIchi Settings')

offset      = input(26,'Displacement', inline='SuperIchi', group='Indicator: SuperIchi Settings')
//------------------------------------------------------------------------------
avg(src,length,mult)=>
    atr = ta.atr(length)*mult
    up = hl2 + atr
    dn = hl2 - atr
    upper = 0.,lower = 0.
    upper := src[1] < upper[1] ? math.min(up,upper[1]) : up
    lower := src[1] > lower[1] ? math.max(dn,lower[1]) : dn
    
    os = 0,max = 0.,min = 0.
    os := src > upper ? 1 : src < lower ? 0 : os[1]
    spt = os == 1 ? lower : upper
    max := ta.cross(src,spt) ? math.max(src,max[1]) : os == 1 ? math.max(src,max[1]) : spt
    min := ta.cross(src,spt) ? math.min(src,min[1]) : os == 0 ? math.min(src,min[1]) : spt
    math.avg(max,min)
//------------------------------------------------------------------------------
tenkan = avg(close,tenkan_len,tenkan_mult)
kijun = avg(close,kijun_len,kijun_mult)

senkouA = math.avg(kijun,tenkan)
senkouB = avg(close,spanB_len,spanB_mult)
//------------------------------------------------------------------------------
tenkan_css = #2157f3 //blue
kijun_css = #ff5d00 //red

cloud_a = color.new(color.teal,80)
cloud_b = color.new(color.red,80)

chikou_css = #7b1fa2

plot(tenkan,'Tenkan-Sen',tenkan_css)
plot(kijun,'Kijun-Sen',kijun_css)

plot(ta.crossover(tenkan,kijun) ? kijun : na,'Crossover',#2157f3,3,plot.style_circles)
plot(ta.crossunder(tenkan,kijun) ? kijun : na,'Crossunder',#ff5d00,3,plot.style_circles)

A = plot(senkouA,'Senkou Span A',na,offset=offset-1)
B = plot(senkouB,'Senkou Span B',na,offset=offset-1)
fill(A,B,senkouA > senkouB ? cloud_a : cloud_b)

plot(close,'Chikou',chikou_css,offset=-offset+1,display=display.none)


// =============================================================================
// STRATEGY LOGIC
// =============================================================================
plotchar(kijun, "kijun", "", location = location.top)
plotchar(senkouA[offset-1], "senkouA", "", location = location.top)


plotchar(tenkan > kijun, "line above", "", location = location.top)
plotchar(close > tenkan, "price above", "", location = location.top)
plotchar(kijun > senkouA[offset-1], "above cloud", "", location = location.top)
// blue line above red line + price above both lines + both lines above cloud
longSen = tenkan > kijun and close > tenkan and kijun > senkouA[offset-1]
// red line below blue line + price below both lines + both lines below cloud
shortSen = tenkan < kijun and close < tenkan and kijun < senkouA[offset-1]

plotchar(longSen, "longSen", "", location = location.top)
plotchar(shortSen, "shortSen", "", location = location.top)

// Cloud is green
longSenkou = senkouA[offset-1] > senkouB[offset-1]
// Cloud is red
shortSenkou = senkouA[offset-1] < senkouB[offset-1]

// price must have pulled back below sen lines before entry
barsSinceLongPullback = ta.barssince(close < kijun and close < tenkan)
longPullback = barsSinceLongPullback <= pullbackLength
// price must have pulled back above sen lines before entry
barsSinceShortPullback = ta.barssince(close > kijun and close > tenkan)
shortPullback = barsSinceShortPullback <= pullbackLength

// plotchar(lowestClose, "lowestClose", "", location = location.top)
// plotchar(highestClose, "highestClose", "", location = location.top)

inLong = strategy.position_size > 0
inShort = strategy.position_size < 0

longCondition = longSen and longSenkou and longPullback and in_date_range
shortCondition = shortSen and shortSenkou and shortPullback and in_date_range

swingLow = ta.lowest(source=low, length=swingLength)
swingHigh = ta.highest(source=high, length=swingLength)

atr = useAtrOverride ? ta.atr(atrLength) * atrMultiplier : 0
longSl = math.min(close - atr, swingLow)
shortSl = math.max(close + atr, swingHigh)

longStopPercent = math.abs((1 - (longSl / close)) * 100)
shortStopPercent = math.abs((1 - (shortSl / close)) * 100)

longTpPercent = longStopPercent * profitFactor
shortTpPercent = shortStopPercent * profitFactor
longTp = close + (close * (longTpPercent / 100))
shortTp = close - (close * (shortTpPercent / 100))

// Position sizing (default risk 2% per trade)
riskAmt = strategy.equity * accountRiskPercent / 100
longQty = math.abs(riskAmt / longStopPercent * 100) / close
shortQty = math.abs(riskAmt / shortStopPercent * 100) / close

if (longCondition and not inLong)
    strategy.entry("Long", strategy.long, qty=longQty)
    strategy.exit("Long  SL/TP", from_entry="Long", stop=longSl, limit=longTp, alert_message='Long SL Hit')
    buyLabel = label.new(x=bar_index, y=high[1], color=color.green, style=label.style_label_up)
    label.set_y(id=buyLabel, y=low)
    label.set_tooltip(id=buyLabel, tooltip="Risk Amt: " + str.tostring(riskAmt) + "\nQty: " + str.tostring(longQty) + "\nSwing low: " + str.tostring(swingLow) + "\nStop Percent: " + str.tostring(longStopPercent) + "\nTP Percent: " + str.tostring(longTpPercent))

if (shortCondition and not inShort)
    strategy.entry("Short", strategy.short, qty=shortQty)
    strategy.exit("Short  SL/TP", from_entry="Short", stop=shortSl, limit=shortTp, alert_message='Short SL Hit')
    sellLabel = label.new(x=bar_index, y=high[1], color=color.red, style=label.style_label_up)
    label.set_y(id=sellLabel, y=low)
    label.set_tooltip(id=sellLabel, tooltip="Risk Amt: " + str.tostring(riskAmt) + "\nQty: " + str.tostring(shortQty) + "\nSwing high: " + str.tostring(swingHigh) + "\nStop Percent: " + str.tostring(shortStopPercent) + "\nTP Percent: " + str.tostring(shortTpPercent))


আরো