
Strategi ini pertama-tama menggunakan 123 bentuk untuk menilai sinyal reversal, kemudian menggabungkan Klinger kuantitatif oscillator sebagai filter, untuk mencapai efektif menangkap kesempatan reversal kuantitatif strategi double-hit.
Strategi ini terdiri dari dua bagian:
123 bentuk menilai bagian sinyal pembalikan: ketika harga closeout turun 2 hari berturut-turut dan berakhir pada hari ke-3, dan indikator stoch rendah for overhead; ketika harga closeout turun 3 hari setelah naik 2 hari berturut-turut dan indikator stoch tinggi for overhead.
Klinger Quantitative Oscillator Bagian: Klinger Quantitative Oscillator Menggabungkan Rentang Fluktuasi Harga dan Perubahan Volume Transaksi Untuk Menentukan Aliran Uang. Ketika melewati rata-ratanya di atas oscillator kuantitatif, sinyalnya adalah sinyal multihead; Ketika melewati rata-ratanya, sinyalnya adalah kosong.
Akhirnya, strategi menyusun dua bagian sinyal di atas, dan dua kali menang menentukan masuk akhir.
Keuntungan terbesar dari strategi ini adalah kombinasi dari pola reversal dan indikator energi kuantitatif, yang dapat secara efisien menangkap peluang reversal. Selain itu, dengan menggunakan indikator stoch untuk menghindari terobosan palsu, dan pendorong kuantitatif Klinger untuk menilai aliran dana yang sebenarnya, dapat memastikan waktu masuk ke pasar yang akurat.
Risiko utama dari strategi ini adalah masalah penilaian dan pengaturan parameter reversal. Karena ada keterlambatan sinyal reversal, perlu memastikan pengaturan parameter yang masuk akal dan menghindari kehilangan waktu reversal yang optimal. Selain itu, reversal bentuknya sendiri mungkin ada kegagalan.
Untuk mengurangi risiko, parameter dapat dioptimalkan dengan tepat, sehingga sinyal reversal lebih sensitif dan tepat waktu. Juga dapat menambahkan kondisi penyaringan lainnya, memastikan jumlah reversal yang cukup dan amplitudo yang cukup, untuk menghindari perluasan reversal.
Strategi ini terutama dapat mengoptimalkan ruang dalam penyesuaian parameter dan menambahkan penilaian tambahan lainnya. Secara khusus, parameter indikator stok dapat dipersingkat secara tepat, mengoptimalkan sensitivitas penilaian bentuk 123. Juga dapat bergabung dengan indikator dan bentuk utama saat ini untuk kombinasi, seperti penambahan MACD Gold Fork Dead Fork, atau double top / bottom Multiple Bottom.
Selain itu, dapat dipertimbangkan untuk secara dinamis menyesuaikan kondisi stop loss dan stop loss agar strategi lebih sesuai dengan perubahan pasar. Juga dapat digabungkan dengan pembelajaran mesin untuk mengoptimalkan parameter secara real-time.
Strategi ini menggunakan teori reversal klasik dan indikator teknologi energi kuantum secara komprehensif untuk menangkap peluang reversal secara efisien. Ruang pengoptimalan yang lebih besar, dengan potensi untuk meningkatkan efek lebih lanjut, layak untuk diuji coba dan terus dioptimalkan.
/*backtest
start: 2023-10-22 00:00:00
end: 2023-11-21 00:00:00
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=4
////////////////////////////////////////////////////////////
// Copyright by HPotter v1.0 23/12/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
// The Klinger Oscillator (KO) was developed by Stephen J. Klinger. Learning
// from prior research on volume by such well-known technicians as Joseph Granville,
// Larry Williams, and Marc Chaikin, Mr. Klinger set out to develop a volume-based
// indicator to help in both short- and long-term analysis.
// The KO was developed with two seemingly opposite goals in mind: to be sensitive
// enough to signal short-term tops and bottoms, yet accurate enough to reflect the
// long-term flow of money into and out of a security.
// The KO is based on the following tenets:
// Price range (i.e. High - Low) is a measure of movement and volume is the force behind
// the movement. The sum of High + Low + Close defines a trend. Accumulation occurs when
// today's sum is greater than the previous day's. Conversely, distribution occurs when
// today's sum is less than the previous day's. When the sums are equal, the existing trend
// is maintained.
// Volume produces continuous intra-day changes in price reflecting buying and selling pressure.
// The KO quantifies the difference between the number of shares being accumulated and distributed
// each day as "volume force". A strong, rising volume force should accompany an uptrend and then
// gradually contract over time during the latter stages of the uptrend and the early stages of
// the following downtrend. This should be followed by a rising volume force reflecting some
// accumulation before a bottom develops.
//
// 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
KVO(TrigLen,FastX,SlowX) =>
pos = 0.0
xTrend = iff(hlc3 > hlc3[1], volume * 100, -volume * 100)
xFast = ema(xTrend, FastX)
xSlow = ema(xTrend, SlowX)
xKVO = xFast - xSlow
xTrigger = ema(xKVO, TrigLen)
pos := iff(xKVO > xTrigger, 1,
iff(xKVO < xTrigger, -1, nz(pos[1], 0)))
pos
strategy(title="Combo Backtest 123 Reversal & Klinger Volume Oscillator", shorttitle="Combo", overlay = true)
Length = input(14, minval=1)
KSmoothing = input(1, minval=1)
DLength = input(3, minval=1)
Level = input(50, minval=1)
//-------------------------
TrigLen = input(13, minval=1)
FastX = input(34, minval=1)
SlowX = input(55, minval=1)
reverse = input(false, title="Trade reverse")
posReversal123 = Reversal123(Length, KSmoothing, DLength, Level)
posKVO = KVO(TrigLen,FastX,SlowX)
pos = iff(posReversal123 == 1 and posKVO == 1 , 1,
iff(posReversal123 == -1 and posKVO == -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 )