
이 전략은 부린 띠 지표에 기반한 트렌드 반전 거래 시스템으로, 가격과 부린 띠의 접촉 관계를 모니터링하여 시장 반전 기회를 포착합니다. 전략은 5 분 시간 주기에서 작동하며, 20 주기의 이동 평균을 부린 띠의 중간 경로로 사용하고, 3.4 배의 표준 차이를 부린 띠의 경로로 설정합니다. 가격이 부린 띠의 경로로 연결되면, 시스템은 그에 따른 거래 신호를 냅니다.
전략의 핵심 논리는 가격 회귀 이론에 기초한다. 가격이 부린을 타면 시장이 과매매되었다고 생각하여 과다 거래하는 경향이 있다. 가격이 부린을 타면 시장이 과매매되었다고 생각하여 과매매하는 경향이 있다. 구체적으로:
이 전략은 브린 띠 접촉을 통해 시장 역전 기회를 포착하고, 논리적으로 명확하고, 위험을 합리적으로 제어하는 특징이 있다. 합리적인 매개 변수 설정과 완벽한 거래 규칙으로, 전략은 흔들리는 시장에서 좋은 안정성을 보여준다. 그러나 실장 적용 시에는 여전히 트렌드 돌파 위험을 주의해야 하며, 다른 기술 지표와 결합하여 거래를 확인하고, 시장 상태에 따라 전략 매개 변수를 조정하는 것이 좋습니다.
/*backtest
start: 2024-11-11 00:00:00
end: 2024-12-11 00:00:00
period: 5h
basePeriod: 5h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
strategy("5-Min Bollinger Bands Touch Strategy", overlay=true, margin_long=100, margin_short=100)
// Input parameters
length = input(20, title="Bollinger Bands Length")
mult = input(3.4, title="Bollinger Bands Deviation")
// Bollinger Bands calculation
basis = ta.sma(close, length)
dev = mult * ta.stdev(close, length)
upper = basis + dev
lower = basis - dev
// Plot Bollinger Bands
plot(basis, color=color.blue, title="Basis")
p1 = plot(upper, color=color.red, title="Upper Band")
p2 = plot(lower, color=color.green, title="Lower Band")
fill(p1, p2, color=color.new(color.gray, 90))
// Bullish buying condition: 5-min low touches lower Bollinger Band
bullish_entry = low <= lower and low[1] > lower[1]
// Bearish selling condition: 5-min high touches upper Bollinger Band
bearish_entry = high >= upper and high[1] < upper[1]
// Entry and exit conditions
longCondition = bullish_entry
shortCondition = bearish_entry
// Strategy entries
if (longCondition)
strategy.entry("Long", strategy.long)
if (shortCondition)
strategy.entry("Short", strategy.short)
// Optional: Add exit conditions (you may want to customize these)
// Example: Exit long position after a certain profit or loss
strategy.close("Long", when = high >= basis)
strategy.close("Short", when = low <= basis)
// Alerts
alertcondition(bullish_entry, title='Bullish BB Touch', message='5-min low touched Lower Bollinger Band')
alertcondition(bearish_entry, title='Bearish BB Touch', message='5-min high touched Upper Bollinger Band')
// Plot entry points
plotshape(bullish_entry, title="Bullish Entry", location=location.belowbar, style=shape.triangleup, size=size.small, color=color.green)
plotshape(bearish_entry, title="Bearish Entry", location=location.abovebar, style=shape.triangledown, size=size.small, color=color.red)