OPEN-SOURCE SCRIPT
更新済 Auto Center Chart

Automatically centers the chart within the current visible chart window.
This utility indicator scans the visible range to determine its High and Low, then adjusts autoscale so that the most recent completed candle remains visually centered — without drawing any visible objects or cluttering the chart.
Why This Is Useful:
- Prevents price from hugging the top or bottom of the screen
- Reduces visual bias during analysis
- Improves clarity when planning risk/reward
- Keeps the active candle visually balanced
- Eliminates constant manual scale adjustments
The script only influences scaling at the right edge and does not change when hovering over historical candles.
Important Notes:
- Requires Auto (fits data to screen) to be enabled in chart settings
- May not work as expected if other indicators are also forcing autoscale or adding extra chart space
- Designed for standard time-based charts
If another script modifies scaling or the chart is not in Auto mode, TradingView’s scaling engine can override this indicator.
This utility indicator scans the visible range to determine its High and Low, then adjusts autoscale so that the most recent completed candle remains visually centered — without drawing any visible objects or cluttering the chart.
Why This Is Useful:
- Prevents price from hugging the top or bottom of the screen
- Reduces visual bias during analysis
- Improves clarity when planning risk/reward
- Keeps the active candle visually balanced
- Eliminates constant manual scale adjustments
The script only influences scaling at the right edge and does not change when hovering over historical candles.
Important Notes:
- Requires Auto (fits data to screen) to be enabled in chart settings
- May not work as expected if other indicators are also forcing autoscale or adding extra chart space
- Designed for standard time-based charts
If another script modifies scaling or the chart is not in Auto mode, TradingView’s scaling engine can override this indicator.
リリースノート
Update: Improved StabilityRefined the autoscale recalculation timing to reduce chart “jump” behavior when a new bar begins.
Auto-centering now updates more smoothly while maintaining the same functionality and visual balance.
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。