ছায়াহীন গড় কে-লাইন এবং ভলিউম-ওয়েটেড গড় মূল্য ট্রেডিং সিস্টেমের উন্নত সংস্করণ

VWAP HA SL TP IST ATR
সৃষ্টির তারিখ: 2025-02-21 14:49:07 অবশেষে সংশোধন করুন: 2025-02-21 14:49:07
অনুলিপি: 0 ক্লিকের সংখ্যা: 423
2
ফোকাস
319
অনুসারী

ছায়াহীন গড় কে-লাইন এবং ভলিউম-ওয়েটেড গড় মূল্য ট্রেডিং সিস্টেমের উন্নত সংস্করণ ছায়াহীন গড় কে-লাইন এবং ভলিউম-ওয়েটেড গড় মূল্য ট্রেডিং সিস্টেমের উন্নত সংস্করণ

ওভারভিউ

এটি একটি স্বয়ংক্রিয় ট্রেডিং সিস্টেম যা একটি অস্পষ্ট গড় K-লাইন (Heikin-Ashi) এবং একটি ক্রয়-বিক্রয় ওজনের গড় মূল্য (VWAP) এর উপর ভিত্তি করে। এই কৌশলটি নির্দিষ্ট K-লাইন মোডগুলি সনাক্ত করে, VWAP এর সাথে গতিশীল সমর্থন / প্রতিরোধের অবস্থান হিসাবে, এবং সেট করা ট্রেডিং সময়কালে ক্রয়-বিক্রয় কার্য সম্পাদন করে। সিস্টেমটি একটি নির্দিষ্ট স্টপ-ড্রপ পয়েন্ট-লস ম্যানেজমেন্ট ঝুঁকি গ্রহণ করে এবং রাতারাতি ঝুঁকি এড়াতে প্রতিদিন নির্দিষ্ট সময়ে পজিশনটি চাপ দেয়।

কৌশল নীতি

কৌশলটির মূল যুক্তি নিম্নলিখিত মূল উপাদানগুলির উপর ভিত্তি করে:

  1. Heikin-Ashi K লাইন ব্যবহার করে প্রচলিত K লাইন পরিবর্তে, খোলা মূল্য, সর্বোচ্চ মূল্য, সর্বনিম্ন মূল্য এবং বন্ধ মূল্যের গড় মান গণনা করে বাজারের প্রবণতা আরও ভালভাবে সনাক্ত করা যায়।
  2. ক্রয় শর্তঃ সবুজ হেইকিন-আশি কে লাইন (নিম্ন-ছায়াহীন লাইন) গঠিত হয় এবং দাম ভিডাব্লুএপি-র উপরে থাকে।
  3. বিক্রির শর্তঃ লাল হেইকিন-আশি কে লাইন (কোনও ছায়ামুক্ত লাইন) গঠিত হয় এবং দাম ভিডাব্লুএপি-র নিচে থাকে।
  4. একটি নির্দিষ্ট ৫০ পয়েন্টের স্টপ-অফ লক্ষ্যমাত্রা ব্যবহার করে, যখন এটি খরচ মূল্যের কাছে পৌঁছায় তখন এটি সমতল হয়।
  5. ১৫ঃ০১-এ সমস্ত অব্যবহৃত পজিশনের জন্য বাধ্যতামূলকভাবে প্লেইন করা।

কৌশলগত সুবিধা

  1. Heikin-Ashi এবং VWAP-এর সাথে মিলিত এই দুটি শক্তিশালী প্রযুক্তিগত সূচক ট্রেডিং সিগন্যালের নির্ভরযোগ্যতা বাড়ায়।
  2. শ্যাডোলেস ওয়্যারেন্টি আরও শক্তিশালী ট্রেন্ড কনফার্মেশন সিগন্যাল নিশ্চিত করে।
  3. ফিক্সড স্টপ লস পয়েন্টগুলি কঠোর ঝুঁকি নিয়ন্ত্রণে সহায়তা করে।
  4. এই কৌশলটি রাতারাতি ঝুঁকি এড়াতে সাহায্য করে।
  5. এটি সম্পূর্ণরূপে স্বয়ংক্রিয় এবং মানুষের দ্বারা আবেগগত হস্তক্ষেপকে হ্রাস করে।

কৌশলগত ঝুঁকি

  1. নির্দিষ্ট স্টপ-অফ-স্টপ পয়েন্টগুলি সমস্ত বাজার অবস্থার জন্য উপযুক্ত নাও হতে পারে, বিশেষত যখন ওঠানামা থাকে।
  2. বাধ্যতামূলকভাবে সমতলতার সময়টি মিস করা ধারাবাহিকতার কারণ হতে পারে।
  3. এই ধরনের কঠোর নিয়মের ফলে কিছু কার্যকর ব্যবসায়ের সুযোগ হাতছাড়া হতে পারে।
  4. এদিকে, অন্যদিকে, ক্রমাগত মিথ্যা সংকেত হতে পারে।
  5. VWAP রেফারেন্সের মান কম লেনদেনের সময় হ্রাস পেতে পারে।

কৌশল অপ্টিমাইজেশনের দিকনির্দেশনা

  1. এটিআর-এর গতিশীল সমন্বয় স্টপ-অফ-লস পয়েন্টের প্রবর্তন, যাতে কৌশলটি বাজারের অস্থিরতার সাথে আরও ভালভাবে খাপ খায়।
  2. ট্রেন্ড ফিল্টার যুক্ত করুন এবং ট্রান্সওভার মার্কেটে মিথ্যা সংকেত হ্রাস করুন।
  3. পজিশন সময় অপ্টিমাইজ করুন, বাজারের গতিশীলতার উপর ভিত্তি করে সামঞ্জস্য করুন।
  4. ভিডাব্লুএপি সূচকের নির্ভরযোগ্যতা বাড়ানোর জন্য লেনদেনের পরিমাণ ফিল্টার যুক্ত করা হয়েছে।
  5. এই নতুন ফিচারটি ব্যবহার করে, আপনি আপনার ব্যবসায়ের লাভ সুরক্ষিত করতে পারবেন।

সারসংক্ষেপ

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

কৌশল সোর্স কোড
/*backtest
start: 2024-07-16 00:00:00
end: 2025-02-19 08:00:00
period: 1d
basePeriod: 1d
exchanges: [{"eid":"Binance","currency":"ETH_USDT"}]
*/

//@version=5
strategy("Buy and Sell Signal with VWAP and Timed Exit", overlay=true)

// VWAP Calculation
vwap = ta.vwap(close)

// Heikin-Ashi Formula
var float heikin_open = na
var float heikin_close = na

heikin_open := na(heikin_open[1]) ? (open + close) / 2 : (heikin_open[1] + heikin_close[1]) / 2
heikin_close := (open + high + low + close) / 4
heikin_high = math.max(high, math.max(heikin_open, heikin_close))
heikin_low = math.min(low, math.min(heikin_open, heikin_close))

// Conditions for Sell (Red Heikin-Ashi with no upper shadow) and Buy (Green Heikin-Ashi with no lower shadow)
no_upper_shadow = heikin_high == math.max(heikin_open, heikin_close)
no_lower_shadow = heikin_low == math.min(heikin_open, heikin_close)

// Condition for red (sell) and green (buy) Heikin-Ashi candles
is_red_candle = heikin_close < heikin_open
is_green_candle = heikin_close > heikin_open

// Buy and Sell Signal Conditions
sell_signal = is_red_candle and no_upper_shadow and close < vwap
buy_signal = is_green_candle and no_lower_shadow and close > vwap

// Check current time (for 15:01 IST)
is_after_1501 = (hour == 15 and minute > 1) or (hour > 15)

// Check for open positions
open_sell_position = strategy.position_size < 0
open_buy_position = strategy.position_size > 0

// Trigger Sell order only if no open sell position exists and time is before 15:01, and price is below VWAP
if sell_signal and not open_sell_position and not is_after_1501
    strategy.entry("Sell", strategy.short)

// Trigger Buy order only if no open buy position exists and time is before 15:01, and price is above VWAP
if buy_signal and not open_buy_position and not is_after_1501
    strategy.entry("Buy", strategy.long)

// Define exit condition for Sell (opposite of Buy conditions)
exit_sell_condition = false

if open_sell_position
    entry_price = strategy.position_avg_price  // Get the average entry price for Sell
    current_price = close  // Current market price for Sell

    // Exit conditions for Sell
    exit_sell_condition := current_price > entry_price or entry_price - current_price >= 50

    // Exit if conditions are met
    if exit_sell_condition
        strategy.close("Sell")

// Define exit condition for Buy (opposite of Sell conditions)
exit_buy_condition = false

if open_buy_position
    entry_price = strategy.position_avg_price  // Get the average entry price for Buy
    current_price = close  // Current market price for Buy

    // Exit conditions for Buy
    exit_buy_condition := current_price < entry_price or current_price - entry_price >= 50

    // Exit if conditions are met
    if exit_buy_condition
        strategy.close("Buy")

// Exit at 15:01 IST for both Buy and Sell if not already exited
if (open_sell_position or open_buy_position) and (hour == 15 and minute == 1)
    strategy.close("Sell")
    strategy.close("Buy")

// Plot VWAP
plot(vwap, color=color.blue, linewidth=2, title="VWAP")

// Plot Heikin-Ashi Candles
plotcandle(heikin_open, heikin_high, heikin_low, heikin_close, color = is_red_candle ? color.red : (is_green_candle ? color.green : color.gray))

// Plot Sell signal on the chart
plotshape(sell_signal and not open_sell_position and not is_after_1501, style=shape.labeldown, location=location.abovebar, color=color.red, text="SELL", size=size.small)

// Plot Buy signal on the chart
plotshape(buy_signal and not open_buy_position and not is_after_1501, style=shape.labelup, location=location.belowbar, color=color.green, text="BUY", size=size.small)

// Plot Exit signals on the chart
plotshape(exit_sell_condition and open_sell_position, style=shape.labelup, location=location.belowbar, color=color.blue, text="EXIT SELL", size=size.small)
plotshape(exit_buy_condition and open_buy_position, style=shape.labeldown, location=location.abovebar, color=color.blue, text="EXIT BUY", size=size.small)