OPEN-SOURCE SCRIPT
更新済 OHLC History

OHLC History is a Pine Script v6 overlay that snapshots up to 32 historical OHLC-derived levels from a selectable higher (or different) timeframe and projects them onto the active chart. It uses request.security to fetch the chosen source (Close/High/Low/Open), rounds each value to the instrument’s minimum tick, and stores them in an array. A “Max Number Lookback” input limits how many of those levels are rendered. For each retained level the script draws a horizontal line extended both ways, coloring it dynamically based on whether the level is above (customizable “above” color) or below (customizable “below” color) the current price, and places compact labels (01–32) with optional price text offset by a user-defined label distance. Prior bar artifacts (lines and labels) are explicitly deleted each update to keep the chart clean, while small white plot markers ensure the levels appear in the price scale and data window for quick reference.
リリースノート
New labels with better descriptions. オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。