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.
Script de código abierto
Siguiendo fielmente el espíritu de TradingView, el creador de este script lo ha publicado en código abierto, permitiendo que otros traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la publicación de este código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.
Script de código abierto
Siguiendo fielmente el espíritu de TradingView, el creador de este script lo ha publicado en código abierto, permitiendo que otros traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la publicación de este código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.