OPEN-SOURCE SCRIPT
Telah dikemas kini StonkGame AutoLevels+

Hey gang — made a new levels script to automatically plot the ones I use the most.
StonkGame AutoLevels+ automatically plots structural price levels from major timeframes — including Yesterday, Last Week, Last Month, Last Quarter, and Last Year — with the option to include up to 6 months of historical monthly open, high, low, and close levels.
Everything’s fully customizable. You pick which timeframes to show, which price types (O/H/L/C) matter, and where the labels appear. Highs are red, lows are lime. Monthly opens are fuchsia, closes are purple — easy to separate at a glance.
Labels auto-stagger to reduce clutter and can be positioned left, right, or center — or turned off completely. You also control how far they sit from price.
The screenshot shows everything turned on just to demo the range — but in practice, I usually stick with the standard levels like Last Week or Last Month, and only show highs and lows (they define structure best IMO).
Clean, contextual, and built for traders who want clarity without noise.
StonkGame AutoLevels+ automatically plots structural price levels from major timeframes — including Yesterday, Last Week, Last Month, Last Quarter, and Last Year — with the option to include up to 6 months of historical monthly open, high, low, and close levels.
Everything’s fully customizable. You pick which timeframes to show, which price types (O/H/L/C) matter, and where the labels appear. Highs are red, lows are lime. Monthly opens are fuchsia, closes are purple — easy to separate at a glance.
Labels auto-stagger to reduce clutter and can be positioned left, right, or center — or turned off completely. You also control how far they sit from price.
The screenshot shows everything turned on just to demo the range — but in practice, I usually stick with the standard levels like Last Week or Last Month, and only show highs and lows (they define structure best IMO).
Clean, contextual, and built for traders who want clarity without noise.
Nota Keluaran
Fixed the monthly label logic to ensure accurate month and year tags for each OHLC level. The previous method used an offset-based approach that could mismatch the actual month, especially on intraday charts, leading to incorrect labels like showing "APR-24" when it was actually May. The update now pulls the exact timestamp from each monthly bar and derives the label directly from that, so labels always reflect the correct calendar month associated with the price levels.Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.