কৌশল অনুসরণ করে ডাবল বিপরীত ওসিলেটিং ব্যান্ড ট্রেন্ড

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

img

সারসংক্ষেপ

কৌশল নীতি

123 বিপরীত পদ্ধতি

ফ্র্যাক্টাল কাওস ব্যান্ড সূচকটি উপরের এবং নীচের রেল গঠন করতে মূল্যের সর্বোচ্চ এবং সর্বনিম্ন গ্রাফিং করে বাজারের প্রবণতা নির্ধারণ করে। নির্দিষ্ট নিয়মগুলি হলঃ

যখন দাম উপরের রেলের মধ্য দিয়ে যায় তখন কিনুন; যখন দাম নীচের রেলের মধ্য দিয়ে যায় তখন বিক্রি করুন।

এই বিভাগটি মূলত ট্রেন্ড ফিল্টার হিসেবে কাজ করে, 123 বিপরীত সিগন্যালের সাথে মিলিত। শুধুমাত্র যখন উভয় সংকেত সামঞ্জস্যপূর্ণ হয় তখনই একটি অবস্থান খোলা হবে।

কৌশলটির সুবিধা

  1. সুযোগগুলোকে ব্যাপকভাবে কাজে লাগানোর জন্য বিপরীতমুখী এবং প্রবণতাকে একত্রিত করা

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

  1. মিথ্যা সংকেত হ্রাস এবং জয় হার উন্নত

  1. নমনীয় পরামিতি সমন্বয় এবং শক্তিশালী অভিযোজনযোগ্যতা

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

ঝুঁকি এবং অপ্টিমাইজেশন

  1. মার্জিন মূলধন সমর্থন প্রয়োজন

  1. ফিল্টারিংয়ের জন্য আরও সূচক একত্রিত করতে পারে

সিদ্ধান্ত


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

//@version=4
////////////////////////////////////////////////////////////
//  Copyright by HPotter v1.0 21/09/2020
// 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
//  Stock market moves in a highly chaotic way, but at a larger scale, the movements 
// follow a certain pattern that can be applied to shorter or longer periods of time 
// and we can use Fractal Chaos Bands Indicator to identify those patterns. Basically, 
// the Fractal Chaos Bands Indicator helps us to identify whether the stock market is 
// trending or not. When a market is trending, the bands will have a slope and if market 
// is not trending the bands will flatten out. As the slope of the bands decreases, it 
// signifies that the market is choppy, insecure and variable. As the graph becomes more 
// and more abrupt, be it going up or down, the significance is that the market becomes 
// trendy, or stable. Fractal Chaos Bands Indicator is used similarly to other bands-indicator 
// (Bollinger bands for instance), offering trading opportunities when price moves above or 
// under the fractal lines.
//
// The FCB indicator looks back in time depending on the number of time periods trader selected 
// to plot the indicator. The upper fractal line is made by plotting stock price highs and the 
// lower fractal line is made by plotting stock price lows. Essentially, the Fractal Chaos Bands 
// show an overall panorama of the price movement, as they filter out the insignificant fluctuations 
// of the stock price.
//
// 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

fractalUp(pattern) =>
    p = high[pattern+1]
    okl = 1
    okr = 1
    res = 0.0
	for i = pattern to 1
		okl := iff(high[i] < high[i+1] and okl == 1 , 1, 0)
	for i = pattern+2 to pattern*2+1
		okr := iff(high[i] < high[i-1] and okr == 1, 1, 0)
	res := iff(okl == 1 and okr == 1, p, res[1])
    res

fractalDn(pattern) =>
    p = low[pattern+1]
    okl = 1
    okr = 1
    res =0.0
	for i = pattern to 1
		okl := iff(low[i] > low[i+1] and okl == 1 , 1, 0)
	for i = pattern+2 to pattern*2+1
		okr := iff(low[i] > low[i-1] and okr == 1, 1, 0)
	res := iff(okl == 1 and okr == 1, p, res[1])
    res

FCB(Pattern) =>
    pos = 0.0
    xUpper = fractalUp(Pattern)
    xLower = fractalDn(Pattern)    
    pos := iff(close > xUpper, 1,
             iff(close < xLower, -1, nz(pos[1], 0))) 
    pos

strategy(title="Combo Backtest 123 Reversal & Fractal Chaos Bands", shorttitle="Combo", overlay = true)
Length = input(15, minval=1)
KSmoothing = input(1, minval=1)
DLength = input(3, minval=1)
Level = input(50, minval=1)
//-------------------------
Pattern = input(1, minval=1)
reverse = input(false, title="Trade reverse")
posReversal123 = Reversal123(Length, KSmoothing, DLength, Level)
posFCB = FCB(Pattern)
pos = iff(posReversal123 == 1 and posFCB == 1 , 1,
	   iff(posReversal123 == -1 and posFCB == -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 )

আরো