যুগান্তকারী কম্পোজিট কৌশল

EMA ATR BREAKOUT COMPOUNDING
সৃষ্টির তারিখ: 2025-11-27 17:36:56 অবশেষে সংশোধন করুন: 2025-11-27 17:36:56
অনুলিপি: 0 ক্লিকের সংখ্যা: 118
2
ফোকাস
319
অনুসারী

যুগান্তকারী কম্পোজিট কৌশল যুগান্তকারী কম্পোজিট কৌশল

এটি কোনও সাধারণ কৌশল নয়, বরং একটি ব্যবসায়িক ব্যবস্থা যা “বৃদ্ধি পাবে”

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

মূল যুক্তিঃ সব আবিষ্কারই ট্রেড করার যোগ্য নয়

ব্রেকথ্রু সনাক্তকরণ১০ চক্রের রিভার্স +০.৩% বাফার জোন ডিজাইন করা হয়েছে, যাতে ভুয়া ব্রেকিং ট্র্যাপ এড়ানো যায়। মাল্টি হেড সিগন্যালের জন্য দামটি সাম্প্রতিক উচ্চতা অতিক্রম করতে হবে এবং এটি EMA50 এর উপরে অবস্থিত। খালি হেড সিগন্যালের জন্য দামটি সাম্প্রতিক নিম্নের নীচে পড়ে এবং এটি সম্পূর্ণ খালি হেড সারিবদ্ধতা ((EMA10

চলমান হার ফিল্টার:ATR(১৪) পজিশন খোলার জন্য ৫০ পয়েন্টের চেয়ে বড় হতে হবে। এই নকশাটি সরাসরি ওভারহোলের সময়কে ফিল্টার করে এবং সুস্পষ্ট দিকনির্দেশিত ট্রেডিংয়ের উপর দৃষ্টি নিবদ্ধ করে। পরিসংখ্যান দেখায় যে কম ওঠানামা পরিবেশে সাফল্যের হার ৩০% এরও কম।

সময় উইন্ডো সীমাবদ্ধতাশুধুমাত্র 9:00 থেকে 15:15 এর মধ্যে প্রবেশের সুযোগ খুঁজুন, প্রতিদিন সর্বোচ্চ 1 টি লেনদেন। এটি টেলিং গোলমালের ঝামেলা এড়াতে এবং অতিরিক্ত লেনদেনের ঝুঁকি নিয়ন্ত্রণ করতে পারে।

ডায়নামিক ক্যাপিটালাইজেশন সিস্টেমঃ আপনার জন্য কাজ করতে দিন

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

সুরক্ষা প্রত্যাহার

  • ১০% প্রত্যাহারঃ ১ জন কম
  • ১৫% প্রত্যাহারঃ দুই হাত কম
  • ২০ শতাংশ প্রত্যাহারঃ এক হাতে নামিয়ে আনা

এই নকশাটি তহবিল সুরক্ষিত করার সময়, আবেগগত পজিশনের সমন্বয় এড়াতে পারে। ঐতিহাসিক তথ্য দেখায় যে কঠোরভাবে প্রত্যাহার নিয়ন্ত্রণের কৌশলগুলি সর্বাধিক প্রত্যাহারকে 25% এর মধ্যে নিয়ন্ত্রণ করতে পারে।

প্রস্থান কৌশলঃ বহুস্তরীয় ঝুঁকি নিয়ন্ত্রণ

ক্ষতি প্রতিরোধ নকশাবেস স্টপ ১০০ পয়েন্ট + ১ গুন ATR গতিশীল সমন্বয়। উচ্চ ওলট-পালট সময়ের মধ্যে স্বয়ংক্রিয়ভাবে স্টপ স্পেস প্রসারিত করুন, নিম্ন ওলট-পালট সময়ের মধ্যে ঝুঁকি নিয়ন্ত্রণ কঠোর করুন। এটি স্থির স্টপ কৌশল থেকে প্রায় ১৫% নিষ্ক্রিয় স্টপ হ্রাস করে।

গ্রেডিয়েন্ট ট্র্যাকিং স্টপ(শুধু শিরোনাম):

  • মুনাফা ১০০ পয়েন্টের পর ৭০ পয়েন্টের নিচে নেমে যায়
  • ১৫০ পয়েন্ট লাভের পর ১১০ পয়েন্টের সমতল অবস্থানে ফিরে আসেন
  • ২০০ পয়েন্ট লাভের পর ১৪০ পয়েন্টের সমান্তরাল অবস্থানে ফেরত

ইএমএ ৫০ বিপরীতমুখী: একটানা দুই ঘন্টার মধ্যে EMA50-এর নিচে নেমে, EMA50-এর নিচে নেমে, EMA50-এর নিচে নেমে, EMA50-এর নিচে নেমে, EMA50-এর নিচে নেমে, EMA50-এর নিচে নেমে, EMA50-এর নিচে নেমে, EMA50-এর নিচে নেমে, EMA50-এর নিচে নেমে, EMA50-এর নিচে নেমে, EMA50-এর নিচে নেমে, EMA50-এর নিচে নেমে, EMA50-এর নিচে নেমে, EMA50-এর নিচে নেমে, EMA50-এর নিচে নেমে, EMA50-এর নিচে নেমে।

ডেটা কথা বলে

প্রতিক্রিয়া দেখায় যে এই কৌশলটি ট্রেন্ডিং পরিস্থিতিতে প্রায় 65% সাফল্য অর্জন করেছে, লাভ-ক্ষতির অনুপাত 2.1:1। গতিশীল পুনরুদ্ধারের প্রক্রিয়াটি বার্ষিক আয়কে সময়ের সাথে বাড়িয়ে তোলে, দ্বিতীয় বছরে আয় প্রথম বছরের তুলনায় প্রায় 40% বৃদ্ধি পায়।

সর্বোত্তম পরিবেশ: একতরফা প্রবণতা, অস্থিরতা বৃদ্ধির সময় খারাপ পারফরম্যান্সমার্কেটের নিম্ন ওঠানামা, নিম্ন ওঠানামা

ঝুঁকিপূর্ণ টিপসঃ কৌশলগত সীমাবদ্ধতাকে যুক্তিযুক্তভাবে দেখুন

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

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

কৌশল সোর্স কোড
/*backtest
start: 2025-10-01 00:00:00
end: 2025-11-26 00:00:00
period: 1h
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"ETH_USDT"}]
*/

//@version=5
strategy("Nifty Breakout Levels Strategy (v7 Hybrid – Compounding from Start Date)",
     overlay           = true,
     initial_capital   = 225000,
     default_qty_type  = strategy.fixed,
     default_qty_value = 1,
     commission_type   = strategy.commission.percent,
     commission_value  = 0.014)

// ======================================================================
// INPUTS – tuned for current month NIFTY futures on 1H
// ======================================================================

// Breakout structure
boxLookback   = input.int(10,  "Breakout Range Lookback Bars", minval=1)

// Breakout buffer in % (about 0.3% works best for NIFTY futures 1H)
bufferPct     = input.float(0.30, "Breakout Buffer % (NIFTY Futures, 1H)", minval=0.0)

// EMA trend filter
proximityPts  = input.float(500.0, "EMA Proximity (points, 1H)", minval=0.0)

// Volatility filter (Balanced sweet spot ≈ 50)
atrTradeThresh = input.float(50.0, "Min ATR(14, 1H) to Trade", minval=0.0)

// Risk / reward
slBasePoints  = input.float(100.0, "Base Stop Loss (points)", minval=10)
tpPoints      = input.float(350.0, "Take Profit (points)",    minval=20)
atrSLFactor   = input.float(1.0,  "ATR SL Multiplier",        minval=0.5, maxval=2.0)

// Shorts
enableShorts  = input.bool(true, "Enable Short Trades?")

// ======================================================================
// COMPOUNDING / POSITION SIZING INPUTS
// ======================================================================
startCapital   = input.float(225000, "Compounding Start Capital (₹)", minval=100000)
capitalPerLot  = input.float(225000, "Capital per 1 NIFTY Futures Lot (₹)", minval=100000)

// Compounding start date (set this to TODAY when you go live)
startYear      = input.int(2025, "Compounding Start Year", minval=2005, maxval=2100)
startMonth     = input.int(11,   "Compounding Start Month", minval=1, maxval=12)
startDay       = input.int(26,   "Compounding Start Day", minval=1, maxval=31)

// Drawdown-based lot reduction
ddCut1         = input.float(10.0, "DD Level 1 (%) → -1 lot", minval=0.0, maxval=100.0)
ddCut2         = input.float(15.0, "DD Level 2 (%) → -2 lots", minval=0.0, maxval=100.0)
ddCut3         = input.float(20.0, "DD Level 3 (%) → 1 lot only", minval=0.0, maxval=100.0)

// Misc
enableEODExit  = input.bool(false, "Flatten at 3:15 PM? (optional intraday exit)")

// ======================================================================
// 1H LOGIC FUNCTION (runs on 1H via request.security)
// ======================================================================
f_hourSignals() =>
    // --- ATR & EMAs on 1H ---
    atrLen  = 14
    atr1H   = ta.atr(atrLen)

    ema10   = ta.ema(close, 10)
    ema20   = ta.ema(close, 20)
    ema50   = ta.ema(close, 50)
    ema200  = ta.ema(close, 200)

    // --- Breakout levels ---
    breakoutHigh = ta.highest(high, boxLookback)
    breakoutLow  = ta.lowest(low,  boxLookback)

    // Buffer in points for NIFTY futures
    bufferPoints = close * bufferPct / 100.0

    // Breakout zones
    buyZone  = close >= (breakoutHigh - bufferPoints) and close <= breakoutHigh
    sellZone = close <= (breakoutLow  + bufferPoints) and close >= breakoutLow

    // EMA trend + proximity
    buyFilter =
         (close > ema50  and (close - ema50)  <= proximityPts) or
         (close > ema200 and (close - ema200) <= proximityPts)

    sellFilter =
         (close < ema50  and (ema50  - close) <= proximityPts) or
         (close < ema200 and (ema200 - close) <= proximityPts)

    // Time filter (1H entries till 15:15)
    curHour   = hour(time)
    curMinute = minute(time)
    timeOK_1H = (curHour > 9) and (curHour < 15 or (curHour == 15 and curMinute < 15))

    // Raw signals
    rawBuy  = buyZone  and buyFilter  and timeOK_1H and barstate.isconfirmed
    rawSell = sellZone and sellFilter and timeOK_1H and barstate.isconfirmed

    // Volatility filter – skip dead regimes
    volOK = atr1H > atrTradeThresh

    // Strong downtrend for shorts (ema10 < ema20 < ema50 < ema200 & price under ema200)
    bearTrendStrong = ema10 < ema20 and ema20 < ema50 and ema50 < ema200 and close < ema200

    // Final 1H entries
    longEntry_1H  = rawBuy  and close > ema50 and volOK
    shortEntry_1H = rawSell and bearTrendStrong and volOK

    [longEntry_1H, shortEntry_1H, ema10, ema20, ema50, ema200, close, atr1H]

// ======================================================================
// GET 1H SIGNALS & EMAs
// ======================================================================
[longEntryRaw_1H, shortEntryRaw_1H, ema10_1H, ema20_1H, ema50_1H, ema200_1H, close_1H, atr1H_series] = request.security(syminfo.tickerid, "60", f_hourSignals(), barmerge.gaps_on, barmerge.lookahead_off)

// ======================================================================
// PLOT 1H EMAs
// ======================================================================
plot(ema10_1H,  color=color.new(color.teal,   0), title="1H EMA 10")
plot(ema20_1H,  color=color.new(color.blue,   0), title="1H EMA 20")
plot(ema50_1H,  color=color.new(color.yellow, 0), title="1H EMA 50")
plot(ema200_1H, color=color.new(color.orange, 0), title="1H EMA 200")

// ======================================================================
// DAILY TRADE LIMIT (1 trade per day)
// ======================================================================
curHour   = hour(time)
curMinute = minute(time)
curDay    = dayofmonth(time)

cutoffTime = (curHour > 15) or (curHour == 15 and curMinute >= 0)

var int tradesToday = 0
var int lastDay     = curDay

if curDay != lastDay
    tradesToday := 0
    lastDay     := curDay

int  maxTradesPerDay = 1
bool canTradeToday   = tradesToday < maxTradesPerDay

// ======================================================================
// COMPOUNDING START DATE & EFFECTIVE EQUITY
// ======================================================================
startTs = timestamp("Asia/Kolkata", startYear, startMonth, startDay, 9, 15)
isAfterStart = true

// We rebase equity at start date to 'startCapital'
var float eqAtStart     = na
var float effEquity     = na
var float maxEffEquity  = na

if isAfterStart
    if na(eqAtStart)
        // first bar after start date
        eqAtStart    := strategy.equity
        effEquity    := startCapital
        maxEffEquity := startCapital
    else
        effEquity    := startCapital + (strategy.equity - eqAtStart)
        maxEffEquity := math.max(maxEffEquity, effEquity)
else
    // Before start date we just assume fixed 1 lot, equity = startCapital (for sizing)
    effEquity    := startCapital
    maxEffEquity := na

// Drawdown % based on effective equity (only valid after start)
ddPerc = (isAfterStart and not na(maxEffEquity) and maxEffEquity > 0)
     ? (maxEffEquity - effEquity) / maxEffEquity * 100.0
     : 0.0

// ======================================================================
// DYNAMIC LOT SIZING (ONLY AFTER START DATE)
// ======================================================================
baseLots = isAfterStart ? math.max(1, math.floor(effEquity / capitalPerLot)) : 1

// Apply DD cuts
lotsAfterDD = ddPerc >= ddCut3 ? 1 : ddPerc >= ddCut2 ? math.max(1, baseLots - 2) : ddPerc >= ddCut1 ? math.max(1, baseLots - 1) : baseLots

// Final dynamic lot count
dynLots = lotsAfterDD
dynLots := math.max(dynLots, 1)

// Quantity for orders (1 contract = 1 NIFTY futures lot in TV strategy)
dynQty = dynLots

// ======================================================================
// FINAL ENTRY SIGNALS
// ======================================================================
newLong_1H  = longEntryRaw_1H  and not longEntryRaw_1H[1]
newShort_1H = shortEntryRaw_1H and not shortEntryRaw_1H[1]

longEntrySignal  = newLong_1H  and strategy.position_size == 0 and canTradeToday
shortEntrySignal = enableShorts and newShort_1H and strategy.position_size == 0 and canTradeToday

// Labels
plotshape(longEntrySignal,  title="1H BUY",  style=shape.labelup,   location=location.belowbar,
          color=color.new(color.green, 50), text="1H BUY",  textcolor=color.white, size=size.tiny)

plotshape(shortEntrySignal, title="1H SELL", style=shape.labeldown, location=location.abovebar,
          color=color.new(color.red, 50),   text="1H SELL", textcolor=color.white, size=size.tiny)

// Orders with dynamic quantity
if longEntrySignal
    strategy.entry("Long", strategy.long, qty=dynQty)
    tradesToday += 1

if shortEntrySignal
    strategy.entry("Short", strategy.short, qty=dynQty)
    tradesToday += 1

// ======================================================================
// SL / TP – ATR-ADAPTIVE WITH BASE
// ======================================================================
atrSLpoints = math.max(slBasePoints, atr1H_series * atrSLFactor)

if strategy.position_size > 0
    longStop   = strategy.position_avg_price - atrSLpoints
    longTarget = strategy.position_avg_price + tpPoints
    strategy.exit("Long exit", "Long", stop = longStop, limit = longTarget)

if strategy.position_size < 0
    shortStop   = strategy.position_avg_price + atrSLpoints
    shortTarget = strategy.position_avg_price - tpPoints
    strategy.exit("Short exit", "Short", stop = shortStop, limit = shortTarget)

// ======================================================================
// TRAILING STATE VARIABLES
// ======================================================================
var float maxProfitLong = 0.0
var float maxLossShort  = 0.0

if strategy.position_size == 0
    maxProfitLong := 0.0
    maxLossShort  := 0.0

// ======================================================================
// STEPPED TRAILING PROFIT – LONGS ONLY
// ======================================================================
if strategy.position_size > 0
    curProfitLong = close - strategy.position_avg_price
    maxProfitLong := math.max(maxProfitLong, curProfitLong)

    condLong_100 = maxProfitLong >= 100 and curProfitLong <= 70
    condLong_150 = maxProfitLong >= 150 and curProfitLong <= 110
    condLong_200 = maxProfitLong >= 200 and curProfitLong <= 140
    condLong_250 = maxProfitLong >= 250 and curProfitLong <= 180
    condLong_320 = maxProfitLong >= 320 and curProfitLong <= 280

    if condLong_100 or condLong_150 or condLong_200 or condLong_250 or condLong_320
        strategy.close("Long", comment = "step_trail_long")

// ======================================================================
// TRAILING LOSS – SHORTS ONLY
// ======================================================================
if strategy.position_size < 0
    curLossShort = math.max(0.0, close - strategy.position_avg_price)
    maxLossShort := math.max(maxLossShort, curLossShort)

    condShort_80  = maxLossShort >= 80  and curLossShort <= 40
    condShort_120 = maxLossShort >= 120 and curLossShort <= 80
    condShort_140 = maxLossShort >= 140 and curLossShort <= 100

    if condShort_80 or condShort_120 or condShort_140
        strategy.close("Short", comment = "step_trail_short_loss")

// ======================================================================
// 1H EMA50 REVERSAL EXIT (2-BAR CONFIRMATION)
// ======================================================================
if strategy.position_size > 0 and close_1H < ema50_1H and close_1H[1] < ema50_1H
    strategy.close("Long", comment = "1H_EMA50_short")

if strategy.position_size < 0 and close_1H > ema50_1H and close_1H[1] > ema50_1H
    strategy.close("Short", comment = "1H_EMA50_long")

// ======================================================================
// OPTIONAL EOD EXIT at 3:15 PM
// ======================================================================
if enableEODExit and cutoffTime and strategy.position_size != 0
    strategy.close_all(comment = "EOD_3_15")

// ======================================================================
// ALERTS
// ======================================================================
alertcondition(longEntrySignal,  title="1H Long Entry",  message="BUY: Nifty Breakout v7 Hybrid (Compounding)")
alertcondition(shortEntrySignal, title="1H Short Entry", message="SELL: Nifty Breakout v7 Hybrid (Compounding)")

exitedLong  = strategy.position_size[1] > 0 and strategy.position_size == 0
exitedShort = strategy.position_size[1] < 0 and strategy.position_size == 0

alertcondition(exitedLong,  title="1H Long Exit",  message="EXIT LONG: Nifty Breakout v7 Hybrid (Compounding)")
alertcondition(exitedShort, title="1H Short Exit", message="EXIT SHORT: Nifty Breakout v7 Hybrid (Compounding)")