OPEN-SOURCE SCRIPT
Daily & Intraday Trend Alignment Strategy (KOSPI)

This strategy is designed for the KOSPI market, focusing on the synergy between daily price action and intraday momentum. It is specifically backtested on KODEX 200 Leverage (122630) with a realistic capital of 10,000,000 KRW.
Key Logic:
Trend Alignment: The script identifies the daily trend by comparing the current price with the previous day's close.
Execution: It enters a position only when the intraday candle (15M or 60M) aligns with the daily trend.
LONG: Daily Bullish + Intraday Bullish Close.
SHORT: Daily Bearish + Intraday Bearish Close.
Risk Management: - Follows TradingView House Rules by limiting risk to 10% of equity per trade.
Includes realistic 0.04% commission and 2-tick slippage.
Features built-in Stop Loss and Take Profit levels.
Intraday Focus: Automatically closes all positions at 14:50 KST to avoid overnight market gaps.
Key Logic:
Trend Alignment: The script identifies the daily trend by comparing the current price with the previous day's close.
Execution: It enters a position only when the intraday candle (15M or 60M) aligns with the daily trend.
LONG: Daily Bullish + Intraday Bullish Close.
SHORT: Daily Bearish + Intraday Bearish Close.
Risk Management: - Follows TradingView House Rules by limiting risk to 10% of equity per trade.
Includes realistic 0.04% commission and 2-tick slippage.
Features built-in Stop Loss and Take Profit levels.
Intraday Focus: Automatically closes all positions at 14:50 KST to avoid overnight market gaps.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.