OPEN-SOURCE SCRIPT
FTFC Simple

FTFC Signal — Full Timeframe Continuity (60m · D · W · M)
Indicator twin of the backtested "FTFC Full Timeframe Continuity" strategy. Same engine — same presets, debounce, loss cooldown, ETF-shorts rule — but built as an indicator: no TradingView order arrows, alerts fire, and it exposes sortable Screener columns.
How it scores
Compares price to the open of four timeframes — 60-minute, Daily, Weekly, Monthly. Each aligned timeframe = +1 (close above open) or −1 (below). Sum = a continuity score from −4 (all four bearish) to +4 (all four bullish). Full continuity = all timeframes pointing the same way.
Signal engine (bar-close, identical to strategy)
- Long when score ≥ entry threshold, price-strength and open-spread filters pass
- Short when score ≤ threshold (optional Monthly-red gate)
- Debounce — score must hold N bars before a signal fires (kills chop)
- Loss cooldown — blocks re-entry N bars after a losing exit
- Simulated position state drives entry/exit/reverse; no repaint
Presets
- Auto — maps thresholds, debounce, cooldown from your chart timeframe
- Long-bias (best 1h)
- Majority stop-and-reverse (best 2022+)
- Long-only wide-hold (max profit factor / single stocks / ≥ 4h)
- Custom — every threshold exposed
On the chart
- Price-pane trade marks — teal ▲ long, coral ▼ short, red ▼ exit; brighter = more timeframes aligned at entry
- Optional FTFC status panel — per-timeframe direction, % from each open, live score meter, position P/L, active filters
- Optional tradable-tickers table — edge-screened names with strategy-minus-buy&hold margins
Indicator twin of the backtested "FTFC Full Timeframe Continuity" strategy. Same engine — same presets, debounce, loss cooldown, ETF-shorts rule — but built as an indicator: no TradingView order arrows, alerts fire, and it exposes sortable Screener columns.
How it scores
Compares price to the open of four timeframes — 60-minute, Daily, Weekly, Monthly. Each aligned timeframe = +1 (close above open) or −1 (below). Sum = a continuity score from −4 (all four bearish) to +4 (all four bullish). Full continuity = all timeframes pointing the same way.
Signal engine (bar-close, identical to strategy)
- Long when score ≥ entry threshold, price-strength and open-spread filters pass
- Short when score ≤ threshold (optional Monthly-red gate)
- Debounce — score must hold N bars before a signal fires (kills chop)
- Loss cooldown — blocks re-entry N bars after a losing exit
- Simulated position state drives entry/exit/reverse; no repaint
Presets
- Auto — maps thresholds, debounce, cooldown from your chart timeframe
- Long-bias (best 1h)
- Majority stop-and-reverse (best 2022+)
- Long-only wide-hold (max profit factor / single stocks / ≥ 4h)
- Custom — every threshold exposed
On the chart
- Price-pane trade marks — teal ▲ long, coral ▼ short, red ▼ exit; brighter = more timeframes aligned at entry
- Optional FTFC status panel — per-timeframe direction, % from each open, live score meter, position P/L, active filters
- Optional tradable-tickers table — edge-screened names with strategy-minus-buy&hold margins
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.