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 protegido
Este script é publicado como de código fechado e você pode usá-lo livremente. Você pode favoritá-lo para utilizá-lo em um gráfico. Você não pode visualizar ou modificar seu código fonte.
Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.

Quer usar esse script no gráfico?