ক্রস-টাইমফ্রেম ইমপুটাম ট্র্যাকিং কৌশল

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

img

সারসংক্ষেপ

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

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

এই কৌশল দুটি অংশ নিয়ে গঠিত:

  1. 123 বিপরীত অংশঃ এটি ক্রয় / বিক্রয় সংকেত উত্পন্ন করে যখন শেষ দুটি মোমবাতি একটি শিখর / তল গঠন করে এবং স্টোক্যাস্টিক্স দোলক 50 এর নীচে / উপরে থাকে।

  2. এমএসিডি অংশঃ যখন এমএসিডি লাইন সিগন্যাল লাইনের উপরে অতিক্রম করে তখন এটি ক্রয় সংকেত তৈরি করে এবং যখন এটি নীচে অতিক্রম করে তখন বিক্রয় সংকেত দেয়।

চূড়ান্ত সংকেতটি তখনই সক্রিয় হয় যখন উভয় পক্ষই ব্যবসায়ের দিকনির্দেশনা নিয়ে একমত হয়।

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

কৌশলটি স্বল্পমেয়াদী বিপরীতমুখী এবং মাঝারি থেকে দীর্ঘমেয়াদী প্রবণতাকে একত্রিত করে, যা এটিকে প্রবণতা চলাচলে লক করার অনুমতি দেয়। এটি বিশেষত ব্যাপ্তি বাজারে জয় হারকে উন্নত করে যেখানে 123 বিপরীতমুখী শব্দটি ফিল্টার করতে সহায়তা করে।

বিভিন্ন বাজারের অবস্থার জন্য বিপরীতমুখী এবং প্রবণতা সংকেতগুলি ভারসাম্য বজায় রাখার জন্য পরামিতিগুলিও সামঞ্জস্য করা যেতে পারে।

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

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

এমএসিডি সময়ের সংক্ষিপ্তকরণ বা স্টপ যোগ করা ঝুঁকি নিয়ন্ত্রণে সহায়তা করতে পারে।

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

কৌশলটি অপ্টিমাইজ করার সম্ভাব্য উপায়ঃ

  1. রিভার্সেশন উন্নত করতে 123 রিভার্সেশন প্যারামিটার টিউন করুন।

  2. প্রবণতা সনাক্তকরণ উন্নত করতে MACD পরামিতিগুলিকে সেট করুন।

  3. পারফরম্যান্স উন্নত করতে অন্যান্য সূচক সহ ফিল্টার যুক্ত করুন।

  4. ঝুঁকি নিয়ন্ত্রণে স্টপ লস যোগ করুন।

সিদ্ধান্ত

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


/*backtest
start: 2024-01-01 00:00:00
end: 2024-01-31 00:00:00
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=4
////////////////////////////////////////////////////////////
//  Copyright by HPotter v1.0 28/01/2021
// This is combo strategies for get a cumulative signal. 
//
// First strategy
// This System was created from the Book "How I Tripled My Money In The 
// Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
// The strategy buys at market, if close price is higher than the previous close 
// during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50. 
// The strategy sells at market, if close price is lower than the previous close price 
// during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
//
// Second strategy
// MACD – Moving Average Convergence Divergence. The MACD is calculated 
// by subtracting a 26-day moving average of a security's price from a 
// 12-day moving average of its price. The result is an indicator that 
// oscillates above and below zero. When the MACD is above zero, it means 
// the 12-day moving average is higher than the 26-day moving average. 
// This is bullish as it shows that current expectations (i.e., the 12-day 
// moving average) are more bullish than previous expectations (i.e., the 
// 26-day average). This implies a bullish, or upward, shift in the supply/demand 
// lines. When the MACD falls below zero, it means that the 12-day moving average 
// is less than the 26-day moving average, implying a bearish shift in the 
// supply/demand lines.
// A 9-day moving average of the MACD (not of the security's price) is usually 
// plotted on top of the MACD indicator. This line is referred to as the "signal" 
// line. The signal line anticipates the convergence of the two moving averages 
// (i.e., the movement of the MACD toward the zero line).
// Let's consider the rational behind this technique. The MACD is the difference 
// between two moving averages of price. When the shorter-term moving average rises 
// above the longer-term moving average (i.e., the MACD rises above zero), it means 
// that investor expectations are becoming more bullish (i.e., there has been an 
// upward shift in the supply/demand lines). By plotting a 9-day moving average of 
// the MACD, we can see the changing of expectations (i.e., the shifting of the 
// supply/demand lines) as they occur.
//
// WARNING:
// - For purpose educate only
// - This script to change bars colors.
////////////////////////////////////////////////////////////
Reversal123(Length, KSmoothing, DLength, Level) =>
    vFast = sma(stoch(close, high, low, Length), KSmoothing) 
    vSlow = sma(vFast, DLength)
    pos = 0.0
    pos := iff(close[2] < close[1] and close > close[1] and vFast < vSlow and vFast > Level, 1,
	         iff(close[2] > close[1] and close < close[1] and vFast > vSlow and vFast < Level, -1, nz(pos[1], 0))) 
	pos

MACD(fastLength,slowLength,signalLength) =>
    pos = 0.0
    fastMA = ema(close, fastLength)
    slowMA = ema(close, slowLength)
    macd = fastMA - slowMA
    signal = sma(macd, signalLength)
    pos:= iff(signal < macd , 1,
	       iff(signal > macd, -1, nz(pos[1], 0))) 
    pos

strategy(title="Combo Backtest 123 Reversal & MACD Crossover", shorttitle="Combo", overlay = true)
line1 = input(true, "---- 123 Reversal ----")
Length = input(14, minval=1)
KSmoothing = input(1, minval=1)
DLength = input(3, minval=1)
Level = input(50, minval=1)
//-------------------------
fastLength = input(8, minval=1)
slowLength = input(16,minval=1)
signalLength=input(11,minval=1)
xSeria = input(title="Source", type=input.source, defval=close)
reverse = input(false, title="Trade reverse")
posReversal123 = Reversal123(Length, KSmoothing, DLength, Level)
posMACD = MACD(fastLength,slowLength, signalLength)
pos = iff(posReversal123 == 1 and posMACD == 1 , 1,
	   iff(posReversal123 == -1 and posMACD == -1, -1, 0)) 
possig = iff(reverse and pos == 1, -1,
          iff(reverse and pos == -1 , 1, pos))	   
if (possig == 1) 
    strategy.entry("Long", strategy.long)
if (possig == -1)
    strategy.entry("Short", strategy.short)	 
if (possig == 0) 
    strategy.close_all()
barcolor(possig == -1 ? #b50404: possig == 1 ? #079605 : #0536b3 )

আরো