OPEN-SOURCE SCRIPT
TSI Pure 5-Candle Predictor (No Signals)

1. Trend Following Breakout (Trending Market)
Enter the market when the prediction lines become steep and long, indicating strong momentum.
Long Entry: If the price breaks above a recent resistance level and a long, steep Green prediction line appears, buy immediately.
Short Entry: If the price breaks below a key support level and a long, steep Red prediction line points downward, sell immediately.
Take Profit: Use the very end of the prediction line (the 5th candle target price, p5) as your short-term take-profit target.
2. Color Reversal Entry (Counter-Trend / Swing Trading)
Capture the exact moment when the market momentum shifts and the line color flips.
Long Target: Enter a Long position on the exact candle close where the prediction line switches from Red to Green.
Short Target: Enter a Short position on the exact candle close where the prediction line switches from Green to Red.
Stop Loss: Place your Stop Loss right below the recent swing low (for longs) or above the recent swing high (for shorts). This offers an excellent risk-to-reward ratio.
3. The 200 EMA Filter (Trend Protection)
To avoid false signals in a choppy, sideways market, combine this indicator with a major trendline like the 200-period Exponential Moving Average (EMA).
When Price is ABOVE 200 EMA: Only take Long trades when the Green prediction line appears. Completely ignore Red prediction lines (treat them as simple pullbacks, not short entries).
When Price is BELOW 200 EMA: Only take Short trades when the Red prediction line appears. Completely ignore Green prediction lines.
Enter the market when the prediction lines become steep and long, indicating strong momentum.
Long Entry: If the price breaks above a recent resistance level and a long, steep Green prediction line appears, buy immediately.
Short Entry: If the price breaks below a key support level and a long, steep Red prediction line points downward, sell immediately.
Take Profit: Use the very end of the prediction line (the 5th candle target price, p5) as your short-term take-profit target.
2. Color Reversal Entry (Counter-Trend / Swing Trading)
Capture the exact moment when the market momentum shifts and the line color flips.
Long Target: Enter a Long position on the exact candle close where the prediction line switches from Red to Green.
Short Target: Enter a Short position on the exact candle close where the prediction line switches from Green to Red.
Stop Loss: Place your Stop Loss right below the recent swing low (for longs) or above the recent swing high (for shorts). This offers an excellent risk-to-reward ratio.
3. The 200 EMA Filter (Trend Protection)
To avoid false signals in a choppy, sideways market, combine this indicator with a major trendline like the 200-period Exponential Moving Average (EMA).
When Price is ABOVE 200 EMA: Only take Long trades when the Green prediction line appears. Completely ignore Red prediction lines (treat them as simple pullbacks, not short entries).
When Price is BELOW 200 EMA: Only take Short trades when the Red prediction line appears. Completely ignore Green prediction lines.
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.