
이 전략은 15분 캔들스틱 차트를 기반으로 한 돌파적 거래 시스템입니다. 핵심 아이디어는 각 거래일의 첫 15분 캔들스틱의 고점과 저점을 사용하여 가격 채널을 구축하고 돌파를 통해 시장 추세를 포착하는 것입니다. 채널.. 이 전략은 개장 시점의 가격 변동 범위를 분석하여 당일 거래에 대한 명확한 진입 신호를 제공합니다.
이 전략은 다음과 같은 핵심 원칙에 따라 운영됩니다.
이 전략은 거래 시간 동안 가격 급등을 모니터링하여 간단하면서도 효과적인 거래 방법을 제공합니다. 이 기술의 핵심 장점은 간단한 논리와 명확한 실행에 있지만, 트레이더는 거짓 돌파구의 위험과 시장 환경에 대한 적응력에도 주의해야 합니다. 지속적인 최적화와 위험 관리 개선을 통해 이 전략은 실제 전투에서 더 나은 성과를 거둘 것으로 기대됩니다. 전략을 성공적으로 적용하려면 거래자가 시장 특성을 깊이 이해하고 자신의 위험 허용 범위에 따라 합리적인 조정을 해야 합니다.
/*backtest
start: 2024-01-17 00:00:00
end: 2024-07-25 00:00:00
period: 15m
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT","balance":49999}]
*/
// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © OLYANGO
//@version=5
strategy("15 Min Breakout Strategy by https://x.com/iamgod43 (Yallappa) ", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=100)
// Define the start of backtest period
startDate = timestamp(2023, 1, 1, 0, 0)
// Ensure the script is run on a 15-minute chart
// if (timeframe.period != "15")
// alert("Switch to a 15-minute chart for this strategy.", alert.freq_once_per_bar_close)
// Variables to store the first 15-minute candle's high and low
var float firstCandleHigh = na
var float firstCandleLow = na
var bool isFirstCandleCaptured = false
// Detect the first candle of the session
isFirstCandle = (hour == 9 and minute == 15)
// Reset first candle values for the new session
if isFirstCandle
firstCandleHigh := high
firstCandleLow := low
isFirstCandleCaptured := true
// Check for breakout conditions
longCondition = isFirstCandleCaptured and close > firstCandleHigh
shortCondition = isFirstCandleCaptured and close < firstCandleLow
// Entry signals
if longCondition
strategy.entry("Buy Signal", strategy.long)
if shortCondition
strategy.entry("Sell Signal", strategy.short)
// Plot the first 15-minute candle high and low
plot(isFirstCandleCaptured ? firstCandleHigh : na, color=color.green, linewidth=2, title="First Candle High")
plot(isFirstCandleCaptured ? firstCandleLow : na, color=color.red, linewidth=2, title="First Candle Low")
// Backtesting start date logic
if time < startDate
strategy.close_all("Pre-Backtest Period")