OPEN-SOURCE SCRIPT
TTv Strategy v0.2

TTv Strategy v0.2 is a TensorTrader-compatible strategy adaptation based on the open-source Machine Learning: Lorentzian Classification indicator by jdehorty, originally published for Pine Script v5 and using jdehorty’s MLExtensions/2 and KernelFunctions/2 libraries.
The strategy adapts Lorentzian Classification-style long/short signal logic into TradingView strategy order events that can be backtested or routed through TensorTrader webhook automation. It supports fixed USD sizing, leverage-aware backtests, session/date filters, and optional TensorTrader-managed dynamic stop-loss / take-profit handling.
This script is intended for research, automation testing, and strategy development. Credit to jdehorty for the original open-source Lorentzian Classification work. This is not financial advice; users should test thoroughly and configure risk settings responsibly before using live alerts.
The strategy adapts Lorentzian Classification-style long/short signal logic into TradingView strategy order events that can be backtested or routed through TensorTrader webhook automation. It supports fixed USD sizing, leverage-aware backtests, session/date filters, and optional TensorTrader-managed dynamic stop-loss / take-profit handling.
This script is intended for research, automation testing, and strategy development. Credit to jdehorty for the original open-source Lorentzian Classification work. This is not financial advice; users should test thoroughly and configure risk settings responsibly before using live alerts.
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.