OPEN-SOURCE SCRIPT

Auto Fib

227
Adjustable window. I left it as a "Lookback Window (hours)" input defaulting to 24, so you can tighten it to 8 hours for a session fib or stretch it to 48 without touching code.
Guardrails. It's capped at 4,900 bars (Pine's history limit headroom) and clamped to available chart history, so it won't throw a runtime error on a fresh chart load or higher timeframes.
One note for the 1m: the 24-hour high on MNQ will usually be the overnight/RTH extreme, so on a day like today's chart the fib should anchor 1 right at that ~29,169 high and 0 at the 24h low — meaning your 0 anchor may shift lower than the 28,742 you drew manually, since the script grabs the absolute low of the window rather than a chosen swing point. If you want 0 pinned to a structural swing low instead of the raw 24h low, say the word and I'll switch the low anchor to pivot-confirmed logic.

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.