이 전략은 다양한 유형의 기술 지표를 결합하여 통합된 양적 거래 전략을 형성합니다. 이 전략은 거래 의사 결정의 정확성을 높이기 위해 여러 요인의 장점을 통합합니다.
전략적 원칙:
123개의 반전 지표를 계산하여 가격의 3일 반전 형태가 나타났는지 판단한다.
가격 과매매 현상이 발생했는지 판단하기 위해 Elder Bear Force 지표를 계산하십시오.
둘 다 동시에 구매 신호를 발신할 때, 다중 동작을 한다. 둘 다 동시에 판매 신호를 발신할 때, 공백 동작을 한다.
지표 인자의 검증을 통해 일부 잡음 거래 신호를 효과적으로 필터링 할 수 있습니다.
다양한 유형의 지표의 조합은 시장 상황에 대한 판단을 향상시킬 수 있습니다.
이 전략의 장점:
여러 요소의 조합 검증으로 잘못된 거래의 가능성을 줄일 수 있다.
복잡한 시장 상황을 인식하는 능력을 향상시킵니다.
조합 전략의 매개 변수를 최적화하는 것은 더 어렵고, 장점이 있다.
이 전략의 위험은:
다중 지표 조합은 최적의 일치에 도달하기 위해 최적의 매개 변수를 최적화하는 데 시간이 걸립니다.
다른 지표들 사이에 신호 불일치가 있을 수 있다.
복합 전략의 전체적인 안정성은 단일 지표 전략보다 낮을 수 있다.
요약하자면, 이 전략은 여러 요인의 장점을 통합하여 거래함으로써 의사 결정의 정확성을 어느 정도 향상시킬 수 있다. 그러나 다양한 지표 간의 일치 문제에 주의를 기울여야 하며, 엄격한 매개 변수 최적화를 통해 안정적인 초과 수익을 얻을 수 있다.
/*backtest
start: 2022-09-05 00:00:00
end: 2023-02-03 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=4
////////////////////////////////////////////////////////////
// Copyright by HPotter v1.0 27/05/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
// Developed by Dr Alexander Elder, the Elder-ray indicator measures buying
// and selling pressure in the market. The Elder-ray is often used as part
// of the Triple Screen trading system but may also be used on its own.
// Dr Elder uses a 13-day exponential moving average (EMA) to indicate the
// market consensus of value. Bull Power measures the ability of buyers to
// drive prices above the consensus of value. Bear Power reflects the ability
// of sellers to drive prices below the average consensus of value.
// Bull Power is calculated by subtracting the 13-day EMA from the day's High.
// Bear power subtracts the 13-day EMA from the day's Low.
// You can use in the xPrice any series: Open, High, Low, Close, HL2, HLC3, OHLC4 and ect...
//
// 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
BP(Trigger,Length) =>
pos = 0
DayHigh = 0.0
xPrice = close
xMA = ema(xPrice,Length)
DayHigh := iff(dayofmonth != dayofmonth[1], high, max(high, nz(DayHigh[1])))
nRes = DayHigh - xMA
pos := iff(nRes > Trigger, 1,
iff(nRes < Trigger, -1, nz(pos[1], 0)))
pos
strategy(title="Combo Backtest 123 Reversal & Elder Ray (Bear Power) ", shorttitle="Combo", overlay = true)
Length = input(14, minval=1)
KSmoothing = input(1, minval=1)
DLength = input(3, minval=1)
Level = input(50, minval=1)
//-------------------------
LengthBP = input(13, minval=1)
Trigger = input(0)
reverse = input(false, title="Trade reverse")
posReversal123 = Reversal123(Length, KSmoothing, DLength, Level)
posBP = BP(Trigger,LengthBP)
pos = iff(posReversal123 == 1 and posBP == 1 , 1,
iff(posReversal123 == -1 and posBP == -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 )