
동적 부린 띠 돌파 전략은 부린 띠 지표에 기반한 거래 전략이다. 이 전략은 부린 띠의 상하 궤도를 동적 지지점과 저항점으로 사용하며, 가격이 상하 궤도를 돌파할 때 구매하고, 하하 궤도를 돌파할 때 판매한다. 부린 띠는 중하 궤도 ((이동 평균선), 상하 궤도 ((중하 궤도加 표준 차이의 배수) 와 하하 궤도 ((중하 궤도 감소 표준 차이의 배수) 로 구성되어 있으며, 시장의 변동에 적응하기 위해 동적으로 조정할 수 있다.
다이내믹 브린 벨트 브레이크 전략은 브린 벨트 상하의 브레이크를 통해 거래 신호를 생성하는 간단한 거래 전략이다. 이 전략은 추세 시장에서 잘 작동하지만, 불안정한 시장에서 자주 거래하는 문제가 발생할 수 있다. 최적화 방향은 다른 기술 지표와 최적화 매개 변수, 적절한 스톱 스톱을 설정하고 시장 상태에 따라 전략을 조정하는 등이 포함된다. 실제 응용에서는 특정 시장 특성과 개인 위험 선호도에 따라 적절한 조정과 최적화가 필요합니다.
/*backtest
start: 2024-04-01 00:00:00
end: 2024-04-30 23:59:59
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
strategy("Bollinger Bands with Strategy", shorttitle='MBB', overlay=true)
// Input Variables
src = close
length = input.int(34, "Length", minval=1)
mult = input.float(2.0, "Multiplier", minval=0.001, maxval=50)
// Bollinger Bands Calculation
basis = ta.sma(src, length)
dev = ta.stdev(src, length)
upperBand = basis + mult * dev
lowerBand = basis - mult * dev
// Plotting Bollinger Bands
pBasis = plot(basis, "Basis", color=color.gray)
pUpper = plot(upperBand, "Upper Band", color=color.green)
pLower = plot(lowerBand, "Lower Band", color=color.red)
fill(pUpper, pBasis, color=color.new(color.green, 90))
fill(pBasis, pLower, color=color.new(color.red, 90))
// Strategy Execution Using `if`
if (ta.crossover(src, upperBand))
strategy.entry("Long", strategy.long)
if (ta.crossunder(src, lowerBand))
strategy.entry("Short", strategy.short)
if (ta.crossunder(src, upperBand))
strategy.close("Long")
if (ta.crossover(src, lowerBand))
strategy.close("Short")