
이 전략은 이치모쿠 클라우드 지표를 기반으로 한 추세 추종 거래 시스템입니다. 이 전략은 클라우드 차트의 핵심 구성 요소가 교차하는 지점을 통해 시장 동향을 파악하고, 가격이 주요 기술 수준을 돌파할 때 거래 신호를 생성합니다. 이 전략은 재추첨 방식이 아닌 방식을 채택하고 모든 신호는 K-라인이 닫힐 때 확인되므로 거짓 신호의 위험을 효과적으로 줄일 수 있습니다. 이 전략은 여러 기간에 적용 가능하며 특히 변동성이 높은 시장 환경에 적합합니다.
전략의 핵심 논리는 다음 세 가지 핵심 조건에 기초합니다.
이 전략은 클라우드 차트 지표를 혁신적으로 적용하여 신뢰할 수 있는 추세 추종 거래 시스템을 구축합니다. 이 전략의 비다시 그리기 설계와 다중 확인 메커니즘은 신호 품질을 크게 향상시킵니다. 변동성이 큰 시장에서는 성과가 좋지 않지만, 추천되는 최적화 방향을 통해 전략의 안정성과 적용성을 더욱 개선할 수 있습니다. 이 전략은 특히 중기 및 장기 추세를 추적하는 데 적합하며 추세 추종 기회를 찾는 트레이더에게 좋은 선택입니다.
/*backtest
start: 2025-01-09 00:00:00
end: 2025-01-16 00:00:00
period: 10m
basePeriod: 10m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT","balance":49999}]
*/
//@version=5
strategy("Ichimoku Cloud Buy Strategy (Non-Repainting)", overlay=true)
// === Ichimoku Cloud Settings ===
lengthConversionLine = input(9, title="Conversion Line Length")
lengthBaseLine = input(26, title="Baseline Length")
lengthLeadLine = input(52, title="Lead Line Length")
// === Calculate Ichimoku Cloud Components ===
conversionLine = ta.sma((high + low) / 2, lengthConversionLine)
baseLine = ta.sma((high + low) / 2, lengthBaseLine)
leadLineA = (conversionLine + baseLine) / 2
leadLineB = ta.sma((high + low) / 2, lengthLeadLine)
// === Forward Projected Lead Lines (Fixes Ichimoku Calculation) ===
leadLineA_Future = leadLineA[lengthBaseLine] // Shift forward
leadLineB_Future = leadLineB[lengthBaseLine]
// === Define Buy and Sell Conditions (Confirmed at Bar Close) ===
buyCondition = ta.crossover(close, baseLine) and ta.crossover(close, leadLineA) and close > conversionLine and bar_index > bar_index[1]
sellCondition = ta.crossunder(close, baseLine) and ta.crossunder(close, leadLineA) and close < conversionLine and bar_index > bar_index[1]
// === Plot Buy and Sell Signals (Confirmed at Bar Close) ===
plotshape(buyCondition, style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small, title="Buy Signal")
plotshape(sellCondition, style=shape.triangledown, location=location.abovebar, color=color.red, size=size.small, title="Sell Signal")
// === Implement Strategy Logic (Trades at Bar Close) ===
if (buyCondition)
strategy.entry("Buy", strategy.long)
if (sellCondition)
strategy.close("Buy")
// === Plot Ichimoku Cloud Components with Future Projection ===
pConversionLine = plot(conversionLine, color=color.blue, title="Conversion Line")
pBaseLine = plot(baseLine, color=color.red, title="Base Line")
pLeadLineA = plot(leadLineA_Future, color=color.green, title="Lead Line A", offset=lengthBaseLine)
pLeadLineB = plot(leadLineB_Future, color=color.orange, title="Lead Line B", offset=lengthBaseLine)
// === Fill Ichimoku Cloud for Better Visualization ===
fill(pLeadLineA, pLeadLineB, color=leadLineA > leadLineB ? color.green : color.red, transp=80)
// === Alert Conditions (Only Triggered on Confirmed Signals) ===
alertcondition(buyCondition, title="Ichimoku Cloud Buy Signal", message="Ichimoku Cloud Buy Signal Triggered")
alertcondition(sellCondition, title="Ichimoku Cloud Sell Signal", message="Ichimoku Cloud Sell Signal Triggered")