OPEN-SOURCE SCRIPT
Diupdate Auto Fibs

Here's a clean, simple auto fibonacci indicator — it pulls the prior period's high/low (day, week, or month, depending on your chart), auto-detects which timeframe makes sense, and redraws fresh levels every time a new period starts. It also orients the fib automatically based on whether that prior period closed bullish or bearish, so the 0%/100% anchors make sense either way.
How it works:
How it works:
- Auto timeframe logic: charts on the 15min and below get Daily fibs, higher intraday charts get Weekly fibs, Daily+ charts get Monthly fibs. You can override this with the "Fib Period" dropdown.
- No repaint: it pulls the prior completed period's high/low/open/close via request.security with a [1] offset — the levels won't shift once drawn.
- Auto-orientation: if the prior period closed bullish, 0% anchors to the low and 100% to the high (retracement from the low up). If bearish, it flips.
- Golden zone shading between 61.8%–78.6% is a nice visual reference for common reaction zones.
- Labels stay pinned to the current bar on the right edge so you can always read the levels without scrolling.
- Alerts for every fib level (including the extensions). To actually receive these, right-click the chart → Add Alert, set condition to this indicator, and choose "Any alert() function call" as the trigger — that way one alert setup covers all levels, and the message will tell you exactly which level got crossed.
- When the "Fib Period" dropdown is set to Auto, the script picks which fib to show based on how zoomed-in your chart is.
1 minute, 5 minute, or 15 minute chart → it shows the Daily fib (yesterday's high/low)
Anything zoomed out further than 15 minutes — including a 1 hour, 4 hour, etc. — → it shows the Weekly fib (last week's high/low)
Daily chart or higher (weekly, monthly) → it shows the Monthly fib (last month's high/low)
Catatan Rilis
Resizable text.Catatan Rilis
Label positioning. Catatan Rilis
BugsCatatan Rilis
Time sync bugCatatan Rilis
Bugs... Sorry, keep uploading wrongs script.Catatan Rilis
Another bug with time sync Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.