marcohenning

Multi Timeframe Bar Replay Fix

This indicator fixes the issue of TradingView showing the price too early when using bar replay and switching to a higher timeframe. It works on any timeframe and allows you to switch to any higher timeframe from any candle you want, without showing you what is going to happen next. Everything is done automatically.

Essentially, what you are doing is hiding the original candles from your chart and enabling the indicator, which redraws them without price jumping forward. This is done by hiding the last candle on any timeframe. The indicator should only be used when using bar replay since the last candle on any timeframe is hidden and you don't want to have that in live markets.


Step 1: Go to your chart settings and untick the checkboxes for "Body", "Borders", "Wick", "Last price line" and "Symbol last price label" (This hides the candles, price line and price label from you chart and is needed since they can't be modified with an indicator)

Step 2: Enable the indicator on your chart and customize the candle colors to your liking (The indicator draws the candles back onto the chart and can now modify them to hide the candles which would be jumping forward)

Step 3: Click on the 3 dots next to the indicator name and click on "Visual order -> Bring to front" (This puts the candles in front of all other drawings on the chart)


To go back to normal, simply remove the indicator from your chart and enable the things you previously hid when setting it up.
Protected script
This script is published closed-source but you may use it freely. You can favorite it to use it on a chart. You cannot view or modify its source code.
Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?