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.
Script protégé
Ce script est publié en code source fermé et vous pouvez l'utiliser librement. Vous pouvez le préférer pour l'utiliser sur un graphique. Vous ne pouvez pas visualiser ou modifier son code source.
Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.

Vous voulez utiliser ce script sur un graphique ?