রেঙ্কো ইয়েন ইয়াং কোয়ান্ট ট্রেডিং কৌশল

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

সারসংক্ষেপ

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

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

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

বিশেষত, কৌশলটি প্রথমে রেঙ্কো ইটগুলির ওপেন প্রাইস o2 এবং ক্লোজ প্রাইস c2 গণনা করে। যদি o2 c2, এটি একটি ইয়িন লাইন নির্দেশ করে। যখন ইয়াং লাইন ইয়িন লাইনে পরিণত হয়, তখন একটি বিক্রয় সংকেত উত্পন্ন হয়। যখন ইয়িন লাইন ইয়াং লাইনে পরিণত হয়, তখন একটি ক্রয় সংকেত উত্পন্ন হয়।

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

সুবিধা

  1. রেঙ্কো ইটগুলি বাজারের গোলমাল ফিল্টার করে এবং ট্রেডিং সিগন্যালকে আরও স্পষ্ট করে।

  2. দাম-ভলিউম সম্পর্ককে একত্রিত করা মিথ্যা ব্রেকআউটের ঝুঁকি এড়ায়।

  3. ডিএপিএম মডেলটি ইনট্রা ডে ট্রেডিংয়ের জন্য সহজ এবং কার্যকর।

  4. স্বনির্ধারিত এটিআর পরামিতিগুলি ট্রেডিং ফ্রিকোয়েন্সি সামঞ্জস্য করে।

  5. কাস্টমাইজযোগ্য স্টপ লস ঝুঁকি ব্যবস্থাপনা উন্নত করে।

ঝুঁকি

  1. এখনও একটি অস্পষ্ট ভুয়া পলায়নের ঝুঁকি রয়েছে।

  2. ভুল রেঙ্কো প্যারামিটার সেটিং ট্রেন্ড মিস করতে পারে অথবা ট্রেডিং ফ্রিকোয়েন্সি বাড়িয়ে দিতে পারে।

  3. একটি খুব টাইট স্টপ লস একটি ছোট পলব্যাক দ্বারা বন্ধ হতে পারে।

অপ্টিমাইজেশন

  1. সিগন্যাল ফিল্টার করার জন্য অন্যান্য প্রযুক্তিগত সূচকগুলির সংমিশ্রণ বিবেচনা করুন।

  2. ট্রেলিং স্টপ লস ফিচার যুক্ত করার কথা ভাবুন।

  3. বিভিন্ন সম্পদের জন্য প্যারামিটার অপ্টিমাইজ করুন।

  4. মাল্টি-টাইমফ্রেম ট্রেডিংয়ের জন্য বিভিন্ন টাইমফ্রেম একত্রিত করার কথা বিবেচনা করুন।

সিদ্ধান্ত

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


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

//@version=4
// This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License https://creativecommons.org/licenses/by-sa/4.0/
// © dman103
strategy(title="Renko Strategy V2", shorttitle="Renko Strategy V2", overlay=true,precision=3, commission_value=0.025, default_qty_type=strategy.cash, default_qty_value=10000, initial_capital=10000)
// Version 2.0 of my previous renko strategy using Renko calculations, this time without Tilson T3 and without using security with Renko to remove repaints!
// Seems to work nicely on cryptocurrencies on higher time frames.

//== Description ==
// Strategy gets Renko values and uses renko close and open to trigger signals.
// Base on these results the strategy triggers a long and short orders, where green is uptrending and red is downtrending.
// This Renko version is based on ATR, you can Set ATR (in settings) to adjust it.

// == Notes ==
// Supports alerts.
// Supports backtesting time ranges.
// Shorts are disabled by default (can be enabled in settings).
// Link to previous Renko strategy V1: https://www.tradingview.com/script/KeWBWLGT-Renko-Strategy-T3-V1/
//
// Stay tuned for version V3 in the future as i have an in progress prototype, Follow to get updated: https://www.tradingview.com/u/dman103/#published-scripts

// === INPUT BACKTEST RANGE ===
useDate = input(true,     title='---------------- Trade Range ----------------', type=input.bool)
FromMonth = input(defval = 1, title = "From Month", minval = 1, maxval = 12)
FromDay   = input(defval = 1, title = "From Day", minval = 1, maxval = 31)
FromYear  = input(defval = 2017, title = "From Year", minval = 2000)
ToMonth   = input(defval = 1, title = "To Month", minval = 1, maxval = 12)
ToDay     = input(defval = 1, title = "To Day", minval = 1, maxval = 31)
ToYear    = input(defval = 2099, title = "To Year", minval = 2010)
start     = timestamp(FromYear, FromMonth, FromDay, 00, 00)  // backtest start window
finish    = timestamp(ToYear, ToMonth, ToDay, 23, 59)        // backtest finish window
window()  => time >= start and time <= finish ? true : false // create 

settings = input(true,     title='---------------- Settings ----------------', type=input.bool)

allow_short = input(false,title="Allow Short")
atr_len = input(10,"ATR Length")

atr = atr(atr_len)
// Thanks to renko snippet calculations from @RafaelZioni  https://www.tradingview.com/script/2vKhpfVH-Renko-XZ/
Renko1() =>
    p1 = 0.0
    p1 := close > nz(p1[1]) + atr ? nz(p1[1]) + atr : close < nz(p1[1]) - atr ? nz(p1[1]) - atr : nz(p1[1])
    p1
Renko2() =>
    p2 = 0.0
    Br_1 = Renko1()
    p2 := Renko1() != Renko1()[1] ? Br_1[1] : nz(p2[1])
    p2

Renko3() =>
    p3 = 0.0
    p3 := open > nz(p3[1]) + atr ? nz(p3[1]) + atr : open < nz(p3[1]) - atr ? nz(p3[1]) - atr : nz(p3[1])
    p3

Renko4() =>
    open_v = 0.0
    Br_2 = Renko3()
    open_v := Renko3() != Renko3()[1] ? Br_2[1] : nz(open_v[1])
    open_v

o2 = Renko4()
c2 = Renko1()
l2 =low
h2 = high

//=== Plotting ===

crossPlot= 0.0
if (o2 < c2)
    crossPlot :=o2
else 
    crossPlot := o2

// Used to make sure that even if o2 and c2 are equal, the result (short or long) will be based on previous trend.
bars_since_up=barssince(o2 < c2)
bars_since_down=barssince(o2 > c2)
go_long= (bars_since_up<bars_since_down) and  o2<c2
go_short = (bars_since_up>bars_since_down) and o2>c2
plotColor = go_long and  o2<c2 ? color.green : go_short and o2>c2?  color.red : color.white 
plot(crossPlot, color = plotColor, style = plot.style_circles, linewidth = 2,join=true)
changeCond = plotColor != plotColor[1]

//=== Buy/Sell ===
closeStatus =  strategy.openprofit > 0 ? "win" : "lose"
long_entry = plotColor == color.green and window()  and changeCond
long_exit_entry = plotColor == color.red //or (allow_alternative_sl and close < low_result  )
short_entry = plotColor == color.red  and window() and changeCond
short_exit_entry = plotColor == color.green   // or (allow_alternative_sl and close > high_result )

strategy.entry("long", true, when = long_entry)
strategy.close("long",when=long_exit_entry,comment=closeStatus)

if (allow_short)
    strategy.entry("short",false, when = short_entry)
strategy.close("short",when=short_exit_entry,comment=closeStatus)
//=== Alerts ===
alertcondition(go_long and changeCond , title='Renko Buy Signal', message='Renko Revered to Buy Signal')
alertcondition(go_short and changeCond , title='Renko Sell Signal', message='Renko Revered to Sell Signal')

আরো