
STARC 채널 리테크 전략은 STARC 지표에 기반한 양적 거래 전략이다. 이 전략은 STARC 상하 채널을 구축하여, 파격적 인 구매와 파격적 인 판매 거래 신호 생성을 구현한다. 또한, 전략은 장단점 전환 메커니즘을 내장하고 있으며, 다양한 시장 환경에 적응할 수 있다.
STARC 채널 응답 전략의 핵심은 STARC 지표입니다. 이 지표는 다음과 같습니다.
종결 가격이 상반도를 넘어선 경우, 구매 신호를 생성하고, 종결 가격이 하반도를 넘어선 경우, 판매 신호를 생성한다.
이 전략은 STARC 통로의 상하 궤도를 매일 계산하고, 종전 가격이 상하 궤도를 뚫고 거래 신호를 생성하는지 판단한다. 동시에, 전략은 반전 파라미터를 설정하여, 긴 포지션과 빈 포지션 사이에 전환하여, 다른 시장 상황에 적응할 수 있다.
STARC 채널 응답 전략은 다음과 같은 장점이 있습니다:
STARC 통로 응답 전략에는 위험도 있습니다.
위험은 다음과 같습니다.
STARC 채널 응답 전략의 주요 최적화 방향은 다음과 같습니다.
이러한 최적화 방향은 위험을 통제하면서 전략의 수익률과 안정성을 높일 수 있습니다.
STARC 채널 리테인먼트 전략은 전체적으로 잘 작동하며, STARC 지표를 기반으로 중장선 돌파 거래를 달성했다. 전략의 장점은 STARC 채널을 사용하여 거래 신호 안정성을 생성하고, 시장 변화에 적응할 수 있는 반전 메커니즘을 설정하는 것입니다. 우리는 또한 shean을 보호하고, 스톱 손실을 설정하고, 전략을 더 안정적이고 효율적으로 만들기 위해 최적화 매개 변수를 설정해야합니다.
/*backtest
start: 2023-11-04 00:00:00
end: 2023-12-04 00:00:00
period: 2h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=2
////////////////////////////////////////////////////////////
// Copyright by HPotter v1.0 23/04/2018
// A type of technical indicator that is created by plotting two bands around
// a short-term simple moving average (SMA) of an underlying asset's price.
// The upper band is created by adding a value of the average true range
// (ATR) - a popular indicator used by technical traders - to the moving average.
// The lower band is created by subtracting a value of the ATR from the SMA.
// STARC is an acronym for Stoller Average Range Channels. The indicator is
// named after its creator, Manning Stoller.
//
// You can change long to short in the Input Settings
// WARNING:
// - For purpose educate only
// - This script to change bars colors.
////////////////////////////////////////////////////////////
strategy(title="STARC Bands Backtest", overlay = true)
LengthMA = input(5, minval=1)
LengthATR = input(15, minval=1)
K = input(1.33, minval=0.01, step = 0.01)
reverse = input(false, title="Trade reverse")
xMA = sma(close, LengthMA)
xATR = atr(LengthATR)
xSTARCBandUp = xMA + xATR * K
xSTARCBandDn = xMA - xATR * K
pos = iff(close > xSTARCBandUp, 1,
iff(close < xSTARCBandDn, -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(xMA, color=blue, title="MA")
plot(xSTARCBandUp, color = green, title="UpBand")
plot(xSTARCBandDn, color=red, title="DnBand")