채널 브레이크아웃 전략

정의

채널 브레이크아웃 전략은 마지막 X 바의 최고값과 최저값을 기준으로 밴드로 채널을 생성합니다(X는 '길이' 설정 값). 현재 바의 고점이 이전 바의 상위 채널 밴드보다 높으면 전략은 롱으로 진입합니다. 현재 바의 저점이 이전 바의 하단 채널 밴드보다 낮으면 숏에 진입합니다.

계산

파인 스크립트 

//@version=5
strategy("ChannelBreakOutStrategy", overlay=true)
length = input.int(title="Length", minval=1, maxval=1000, defval=5)
upBound = ta.highest(high, length)
downBound = ta.lowest(low, length)
if (not na(close[length]))
    strategy.entry("ChBrkLE", strategy.long, stop=upBound + syminfo.mintick, comment="ChBrkLE")
strategy.entry("ChBrkSE", strategy.short, stop=downBound - syminfo.mintick, comment="ChBrkSE")
//plot(strategy.equity, title="equity", color=color.red, linewidth=2, style=plot.style_areabr)

요약

채널 브레이크아웃 전략은 이름 그대로 심볼이 채널에서 브레이크아웃하는지 여부에 따라 거래하는 전략을 시도합니다. 채널은 전략 설정에서 선택한 길이에 따라 달라집니다. 현재 막대의 고점이 이전 막대의 상위 채널 밴드보다 높으면 전략은 롱에 진입합니다. 현재 바의 저점이 이전 바의 하단 채널 밴드보다 낮으면 숏에 진입합니다.