यह रणनीति एक मजबूत ट्रेडिंग सिग्नल फ़िल्टरिंग के लिए 123 मोल्ड रिवर्स और MACD संकेतकों के संयोजन को लागू करती है। जिसमें 123 मोल्ड रिवर्स अल्पकालिक रिवर्स अवसरों को पकड़ता है, जबकि MACD मध्यम और दीर्घकालिक रुझान निर्णय प्रदान करता है। संयोजन सिग्नल उच्च संभावना वाले ट्रेडिंग बिंदुओं को प्रभावी ढंग से ढूंढ सकते हैं।
123 आकृति उलटा रणनीति, यह देखते हुए कि पिछले दो दिनों में गिरावट आई है और आज के समापन मूल्य में वृद्धि हुई है, और Stochastic संकेतक अवमूल्यन से कम है जब खरीदने के लिए; दो दिन में वृद्धि हुई है आज गिरावट, Stochastic अवमूल्यन से अधिक है जब बेचने के लिए।
एमएसीडी सूचक रणनीति, जब फास्ट लाइन लंबी लाइन से अधिक हो तो अधिक करें, जब फास्ट लाइन लंबी लाइन से कम हो तो खाली करें।
ट्रेडिंग केवल तभी की जाती है जब दोनों रणनीतियों के संकेत मिलते हैं, अन्यथा ट्रेडिंग नहीं की जाती है।
इस रणनीति के मुख्य फायदे हैंः
संयोजन संकेतों को प्रभावी ढंग से फ़िल्टर किया जा सकता है, जिससे सफलता की दर बढ़ जाती है।
123 प्रारूप अल्पकालिक पलटाव के अवसरों को पकड़ सकता है, MACD मध्य-लंबी प्रवृत्ति की दिशा का न्याय करता है।
स्टोकेस्टिक सूचकांक में 123 के साथ ट्रेडों को ट्रेंड रिवर्स के बाद ओवरट्रेडिंग से बचाया जा सकता है।
दोनों रणनीतियों को एक-दूसरे के लिए सत्यापित करने के लिए अलग-अलग ट्रेडिंग कार्य साझा किए जाते हैं, जिससे एकल रणनीति के अति-अनुकूलन का जोखिम कम हो जाता है।
विभिन्न बाजार स्थितियों के लिए अनुकूलित करने के लिए कई दिशाओं में स्विच करना सुविधाजनक है।
इस रणनीति के मुख्य जोखिम:
संयुक्त संकेत बहुत अधिक रूढ़िवादी हैं, और वे बेहतर अवसरों को याद कर सकते हैं।
रिवर्स मोल्ड एक आकस्मिक घटना के लिए अतिसंवेदनशील है, जो विफल हो जाता है।
यह भी कहा गया है कि यह एक बहुत बड़ा जोखिम है।
डबल फ़िल्टर सिग्नल शायद ट्रेंडिंग अवसरों को याद कर रहे हैं।
पैरामीटर अनुकूलन पर विचार नहीं किया गया है, डिफ़ॉल्ट पैरामीटर सभी किस्मों के लिए उपयुक्त नहीं है।
यह निम्नलिखित तरीकों से अनुकूलित किया जा सकता हैः
विभिन्न मापदंडों के संयोजनों का परीक्षण करें और इष्टतम मापदंड खोजें।
एक और स्टॉप लॉस रणनीति, एकल नुकसान को नियंत्रित करना।
सिग्नल की गुणवत्ता में सुधार के लिए और अधिक फिल्टर जोड़ें
मशीन लर्निंग मॉडल को जोड़ना और पैरामीटर को स्वचालित रूप से अनुकूलित करना
रणनीति की स्थिरता का आकलन करने के लिए अधिक व्यापारिक किस्मों में परीक्षण करें।
बाजार की स्थिति के अनुसार स्विचिंग पैरामीटर का संयोजन
समग्र रूप से, इस रणनीति को दोहरे संकेतों के संयोजन के माध्यम से एकल रणनीति के अति-अनुकूलन की समस्या से बचा जा सकता है। अधिक फ़िल्टरिंग मापदंडों, रोकथाम तंत्र और अन्य सुधारों को जोड़ने के बाद, यह एक अधिक मजबूत और व्यावहारिक मात्रात्मक व्यापार रणनीति बन सकती है।
/*backtest
start: 2023-09-11 00:00:00
end: 2023-09-14 02:00:00
period: 30m
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=4
////////////////////////////////////////////////////////////
// Copyright by HPotter v1.0 24/07/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
// This is one of the techniques described by William Blau in his book
// "Momentum, Direction and Divergence" (1995). If you like to learn more,
// we advise you to read this book. His book focuses on three key aspects
// of trading: momentum, direction and divergence. Blau, who was an electrical
// engineer before becoming a trader, thoroughly examines the relationship
// between price and momentum in step-by-step examples. From this grounding,
// he then looks at the deficiencies in other oscillators and introduces some
// innovative techniques, including a fresh twist on Stochastics. On directional
// issues, he analyzes the intricacies of ADX and offers a unique approach to help
// define trending and non-trending periods.
// Blau`s indicator is like usual MACD, but it plots opposite of meaningof
// stndard MACD indicator.
//
// 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
fADX(Len) =>
up = change(high)
down = -change(low)
trur = rma(tr, Len)
plus = fixnan(100 * rma(up > down and up > 0 ? up : 0, Len) / trur)
minus = fixnan(100 * rma(down > up and down > 0 ? down : 0, Len) / trur)
sum = plus + minus
100 * rma(abs(plus - minus) / (sum == 0 ? 1 : sum), Len)
EMACD(r,SmthLen,LengthMACD) =>
pos = 0
source = close
fastMA = ema(source, r)
slowMA = ema(source, LengthMACD)
xmacd = fastMA - slowMA
xMA_MACD = ema(xmacd, SmthLen)
pos := iff(xmacd < xMA_MACD, -1,
iff(xmacd > xMA_MACD, 1, nz(pos[1], 0)))
pos
strategy(title="Combo Backtest 123 Reversal & Ergodic MACD", shorttitle="Combo", overlay = true)
Length = input(14, minval=1)
KSmoothing = input(1, minval=1)
DLength = input(3, minval=1)
Level = input(50, minval=1)
//-------------------------
r = input(14, minval=1)
LengthMACD = input(21, minval=1)
SmthLen = input(5, minval=1)
reverse = input(false, title="Trade reverse")
posReversal123 = Reversal123(Length, KSmoothing, DLength, Level)
posEMACD = EMACD(r,SmthLen,LengthMACD)
pos = iff(posReversal123 == 1 and posEMACD == 1 , 1,
iff(posReversal123 == -1 and posEMACD == -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 )