OPEN-SOURCE SCRIPT
Trade Price – Spread Compensator Overlay

Description:
This indicator provides a clear visual representation of the bid/ask price spread. It allows traders to account for the difference between displayed chart prices and actual trading prices by offsetting candles by a specified number of pips.
Simply input the appropriate decimal unit that matches your instrument’s price format, then set the number of pips you wish to offset to reflect your typical spread.
For best results, use the Style settings to match the overlay candle colors with your chart’s default candles—this creates a seamless, integrated appearance.
The sell-stop drawings depicted in the chart example are there to help understand how to use this for managing your entry/stop loss position. It is not a part of the indicator, only the orange candle overlay is.
This indicator provides a clear visual representation of the bid/ask price spread. It allows traders to account for the difference between displayed chart prices and actual trading prices by offsetting candles by a specified number of pips.
Simply input the appropriate decimal unit that matches your instrument’s price format, then set the number of pips you wish to offset to reflect your typical spread.
For best results, use the Style settings to match the overlay candle colors with your chart’s default candles—this creates a seamless, integrated appearance.
The sell-stop drawings depicted in the chart example are there to help understand how to use this for managing your entry/stop loss position. It is not a part of the indicator, only the orange candle overlay is.
オープンソーススクリプト
TradingViewの精神に則り、この作者はスクリプトのソースコードを公開しているので、その内容を理解し検証することができます。作者に感謝です!無料でお使いいただけますが、このコードを投稿に再利用する際にはハウスルールに従うものとします。
免責事項
これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、この作者はスクリプトのソースコードを公開しているので、その内容を理解し検証することができます。作者に感謝です!無料でお使いいただけますが、このコードを投稿に再利用する際にはハウスルールに従うものとします。
免責事項
これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。