
이 전략은 123 형태 반전과 슈퍼 오징어 지표의 두 인자를 결합하여 쌍 인자 정량 반전 추적 거래를 구현한다. 그것의 기본 아이디어는 상가 반전을 판단하는 동시에, 슈퍼 오징어 지표의 다공 신호를 결합하여 더 정확한 Entry 타이밍을 구현한다.
이 전략은 중단선 반전 거래에 주로 적용되며, 다중인자 확인을 통해 가짜 반전을 효과적으로 필터링하여 신호 품질을 향상시킬 수 있다.
지난 2일간의 종전 가격과 현재 종전 가격의 크기의 관계를 판단하여, “높은-높은-낮은” 또는 “낮은-낮은-높은” 형태를 형성하여, 역전 신호가 발생할 수 있음을 나타냅니다.
동시에, Stochastic 지표가 오버 바이 오버 셀 영역에 있는 것을 요구하고, 반전 신호를 추가로 확인하고, 가짜 반전을 필터링한다.
Awesome Oscillator는 중장기 평균선과 단기 평균선의 차등에 따라 구성된 운동형 지표이다. 빠른 선이 위아래로 느린 선을 통과하면 판매점; 아래에서 위아래로 통과하면 구매점이다.
이 전략은 이 지표의 공백을 이용하여 매매점을 판단한다.
123 형태 반사 및 Awesome Oscillator의 이중 확인을 통해, 가짜 반사를 효과적으로 필터링하여 엔트리 타이밍의 정확성을 향상시킬 수 있다.
이중 인자를 사용하여 반전 지점을 결정하여 가짜 반전 신호를 효과적으로 필터링 할 수 있습니다.
Awesome Oscillator는 Entry 타이밍의 정확도를 높일 수 있는 동력 지표입니다.
Stochastic 지표의 추가로, 상위권과 하위권에 대한 위험은 피할 수 있습니다.
반전 전략 자체는 더 높은 승률과 더 많은 손실을 초래할 수 있습니다.
역전 실패의 위험은 여전히 존재한다. 이중인자를 적용하면 확률을 줄일 수 있지만, 그 위험을 완전히 피할 수는 없다.
과도한 최적화 위험. 과잉 최적화를 방지하기 위해 다양한 시장에 대한 테스트 최적화를 필요로 하는 지표 매개 변수 설정.
역시장 위험. 강세를 보인 상황에서 역전 전략은 역전 손실을 초래할 수 있다. 위험을 제어하기 위해 스톱을 설정할 수 있다.
테스트는 지표의 파라미터 조합을 최적화하여 파라미터의 융통성을 향상시킵니다.
단편적 손실을 통제하기 위한 손실을 막는 전략을 강화한다.
부채를 선택하지 않고, 부문과 산업을 선택하세요.
포지션 주기를 최적화하여 너무 많은 맹목적 추적을 방지합니다.
다른 평선 시스템을 보조 조건으로 테스트하십시오.
요약하자면, 이 2 인자 계량 역전 추적 전략은, 특정 수익 확률과 수익 손실 비율을 보장하는 기초에 Awesome Oscillator를 엔트리 타이밍 보조 도구로 사용하고, Stochastic 지표를 통해 뒤집어 넣는 것을 피함으로써 역전 거래의 위험을 효과적으로 제어 할 수 있습니다.
그러나 역전 전략 자체의 위험도 무시할 수 없으며, 지표 매개 변수를 최적화하고, 스톱로스 조건을 설정하는 등 위험을 제어해야 한다. 적절하게 운용되면 이 전략은 투자자에게 안정적인 초과 수익을 가져올 수 있다.
/*backtest
start: 2023-12-12 00:00:00
end: 2023-12-14 05:00:00
period: 20m
basePeriod: 1m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=4
////////////////////////////////////////////////////////////
// Copyright by HPotter v1.0 12/08/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
// This indicator is based on Bill Williams` recommendations from his book
// "New Trading Dimensions". We recommend this book to you as most useful reading.
// The wisdom, technical expertise, and skillful teaching style of Williams make
// it a truly revolutionary-level source. A must-have new book for stock and
// commodity traders.
// The 1st 2 chapters are somewhat of ramble where the author describes the
// "metaphysics" of trading. Still some good ideas are offered. The book references
// chaos theory, and leaves it up to the reader to believe whether "supercomputers"
// were used in formulating the various trading methods (the author wants to come across
// as an applied mathemetician, but he sure looks like a stock trader). There isn't any
// obvious connection with Chaos Theory - despite of the weak link between the title and
// content, the trading methodologies do work. Most readers think the author's systems to
// be a perfect filter and trigger for a short term trading system. He states a goal of
// 10%/month, but when these filters & axioms are correctly combined with a good momentum
// system, much more is a probable result.
// There's better written & more informative books out there for less money, but this author
// does have the "Holy Grail" of stock trading. A set of filters, axioms, and methods which are
// the "missing link" for any trading system which is based upon conventional indicators.
// This indicator plots the oscillator as a histogram where periods fit for buying are marked
// as blue, and periods fit for selling as red. If the current value of AC (Awesome Oscillator)
// is over the previous, the period is deemed fit for buying and the indicator is marked blue.
// If the AC values is not over the previous, the period is deemed fir for selling and the indicator
// is marked red.
//
// 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
BWAO(nLengthSlow,nLengthFast) =>
pos = 0.0
xSMA1_hl2 = sma(hl2, nLengthFast)
xSMA2_hl2 = sma(hl2, nLengthSlow)
xSMA1_SMA2 = xSMA1_hl2 - xSMA2_hl2
pos := iff(xSMA1_SMA2 > xSMA1_SMA2[1], 1,
iff(xSMA1_SMA2 < xSMA1_SMA2[1], -1, nz(pos[1], 0)))
pos
strategy(title="Combo Backtest 123 Reversal & Awesome Oscillator (AO)", 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)
//-------------------------
line2 = input(true, "---- Awesome Oscillator (AO) ----")
nLengthSlow = input(34, minval=1, title="Length Slow")
nLengthFast = input(5, minval=1, title="Length Fast")
reverse = input(false, title="Trade reverse")
posReversal123 = Reversal123(Length, KSmoothing, DLength, Level)
posBWAO = BWAO(nLengthSlow,nLengthFast)
pos = iff(posReversal123 == 1 and posBWAO == 1 , 1,
iff(posReversal123 == -1 and posBWAO == -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 )