
진동 지수 변환 전략 (Oscillator Index Transformation Strategy) 은 브레세르트의 3-10 진동 지수와 16일 간소 이동 평균 사이의 교차를 이용하여 거래 신호를 생성한다. 이 전략은 낮과 밤 사이에 거래한다.
이 전략은 브레서트의 3-10 변동 지수를 기반으로 하고 있는데, 이 지수는 3일 지수 이동 평균과 10일 지수 이동 평균의 차원이다. 빠른 선 (<3-10 변동 지수>) 에서 긴 선 (<16일 간단한 이동 평균>) 을 통과할 때 더 많이 하고, 빠른 선 아래에서 긴 선을 통과할 때 공허한다.
구체적으로, 전략은 먼저 3일 EMA, 10일 EMA 및 그 차이점을 진동 지수로서 계산한다. 그리고 16일 진동 지수의 간단한 이동 평균을 신호 선으로 계산한다. 진동 지수 상에서 신호 선을 통과할 때 더하고, 아래를 통과할 때 공백을 한다.
흔들림 지수 변화 전략은 짧은 라인 거래 전략에 속하며, 브레세트의 3-10 흔들림 지수와 그 신호 라인의 교차로 거래 신호를 생성합니다. 간단하고 실용적입니다. 이 전략은 낮과 밤 거래에 적용할 수 있지만, 약간의 손실 변동과 가짜 신호 위험이 있지만, 필터링 조건을 추가하여 손실을 최적화하여 개선해야합니다.
/*backtest
start: 2022-12-15 00:00:00
end: 2023-12-21 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=2
////////////////////////////////////////////////////////////
// Copyright by HPotter v1.0 27/03/2017
// TradeStation does not allow the user to make a Multi Data Chart with
// a Tick Bar Chart and any other type a chart. This indicator allows the
// user to plot a daily 3-10 Oscillator on a Tick Bar Chart or any intraday interval.
// Walter Bressert's 3-10 Oscillator is a detrending oscillator derived
// from subtracting a 10 day moving average from a 3 day moving average.
// The second plot is an 16 day simple moving average of the 3-10 Oscillator.
// The 16 period moving average is the slow line and the 3/10 oscillator is
// the fast line.
// For more information on the 3-10 Oscillator see Walter Bressert's book
// "The Power of Oscillator/Cycle Combinations"
//
// You can change long to short in the Input Settings
// Please, use it only for learning or paper trading. Do not for real trading.
////////////////////////////////////////////////////////////
strategy(title="D_Three Ten Osc", shorttitle="D_Three Ten Osc")
Length1 = input(3, minval=1)
Length2 = input(10, minval=1)
Length3 = input(16, minval=1)
reverse = input(false, title="Trade reverse")
hline(0, color=green, linestyle=line)
xPrice = request.security(syminfo.tickerid,"D", hl2)
xfastMA = ema(xPrice, Length1)
xslowMA = ema(xPrice, Length2)
xMACD = xfastMA - xslowMA
xSignal = sma(xMACD, Length3)
pos = iff(xSignal > xMACD, -1,
iff(xSignal < xMACD, 1, nz(pos[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)
barcolor(possig == -1 ? red: possig == 1 ? green : blue )
plot(request.security(syminfo.tickerid, "D", xMACD), color=blue, title="D_Three Ten Osc")
plot(request.security(syminfo.tickerid, "D", xSignal), color=red, title="D_Three Ave")