
이 전략은 “불린 5분 브레이크 일일 거래 전략”으로 불린 지표에 기반한 단선 거래 전략으로, 5분 시간 프레임에 대한 일일 거래를 위해 고안되었다. 이 전략은 불린이 제공하는 시장의 단기 브레이크 기회를 활용하여, 가격이 궤도를 돌파 할 때 더 많이 입장을 열고, 궤도를 돌파 할 때 평점을 돌파한다. 동시에, 이 전략은 일일 거래의 원칙을 엄격히 준수하며, 매 거래 날 오후 3시 이전에 매장을 청산하여 밤새 입장을 유지하는 위험을 피한다.
이 전략의 주요 내용은 다음과 같습니다.
이 전략의 원리는 부린을 이용하여 시장의 단기 트렌드 및 변동을 포착하는 것이다. 부린 반지는 3개의 선으로 구성된다. 중도, 상도, 하도. 중도 는 가격의 이동 평균이며, 상도와 하도 각각 중도 의 기초에 표준 차점을 약간 더한다. 가격이 상도를 돌파할 때, 상승 추세가 형성되고 있다는 것을 의미하며, 구매할 수 있다. 가격이 하도를 돌파할 때, 상승 추세가 끝날 수 있다는 것을 의미하며, 매각을 해야 한다. 동시에, 이 전략은 위험을 엄격히 통제하고, 매매일 오후 3시 이전에 매매를 매매하고, 야간 매매로 발생할 수 있는 엄청난 손실을 피한다.
이 전략의 장점은 다음과 같습니다.
이 전략의 위험은 다음과 같습니다.
이 전략의 위험성을 고려하여 다음과 같은 최적화 방향을 고려할 수 있습니다.
전체적으로 볼 때, “불린 5 분 뚫고 일일 거래 전략”은 간단하고 사용하기 쉬운, 짧은 라인 거래에 적합한 전략이다. 그것은 시장의 단기 경향과 변동을 캡처하기 위해 불린 띠 지표를 사용하고, 동시에 위험을 엄격하게 제어하고, 밤새 입지를 피한다. 이 전략에는 빈번한 거래, 가짜 신호 등과 같은 위험이 있지만, 파라미터를 최적화하고, 다른 지표를 도입하고, 스톱 로스를 설정하고, 기본 분석 방법과 결합하여 전략의 안정성과 수익성을 더욱 향상시킬 수 있습니다.
/*backtest
start: 2023-03-22 00:00:00
end: 2024-03-27 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
strategy("Bollinger Breakout Strategy 5m", shorttitle="BB Strategy 5m", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=100, margin_long=100)
// Define the strategy parameters
length = 100
multUpper = 3.0
multLower = 1.0
src = close
// Calculate Bollinger Bands
basis = ta.sma(src, length)
upperDev = multUpper * ta.stdev(src, length)
lowerDev = multLower * ta.stdev(src, length)
upperBand = basis + upperDev
lowerBand = basis - lowerDev
// Plot Bollinger Bands
plot(basis, "Basis", color=color.blue)
plot(upperBand, "Upper Band", color=color.green)
plot(lowerBand, "Lower Band", color=color.red)
// Entry and exit conditions
enterLong = ta.crossover(src, upperBand)
exitLong = ta.crossunder(src, lowerBand)
// Visual signals for entries and exits
bgcolor(enterLong ? color.new(color.green, 90) : na, title="Entry Background")
bgcolor(exitLong ? color.new(color.red, 90) : na, title="Exit Background")
plotshape(enterLong, style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small, title="Enter Long")
plotshape(exitLong, style=shape.triangledown, location=location.abovebar, color=color.red, size=size.small, title="Exit Long")
// Adjusting for timezone - Ensure the time is converted to the exchange's timezone
session_close_hour = 15 // 3 PM in EST, adjust if your trading platform uses a different timezone
is_time_to_exit = (hour >= session_close_hour and minute > 0) or (hour > session_close_hour)
// Trading logic
if (enterLong)
strategy.entry("Long", strategy.long)
if (exitLong or is_time_to_exit)
strategy.close("Long")
// Note: Adjust 'session_close_hour' to match your exchange's closing hour if it differs from EST.