TradingView
Trendoscope
28 jan 2023 15:50

Bar Magnifier 

Bitcoin / TetherUSBinance

Beskrivning

Many times while developing algos based on patterns and reversals, I come across issues which needs lower timeframe inspection. Loading multiple charts and comparing equivalent lower timeframe is slightly cumbersome at times. Hence, I thought of building this simple tool - which will instantly provide me lower timeframe candles for given candle. Since the candle selection happen via confirmed time input, we can use this as slider to move from one candle to other for inspection.

🎲 Usage

🎯Loading the script
  • When you load the script, a prompt appears which asks you to select a time by clicking on the chart.
  • Select the bar you want to magnify and study




🎯Components
Once loaded, you can see the marker which tells which bar is magnified. And you can also see all the lower timeframe candles before that point. Please note that due to pine restrictions, we can only show last 250 lower timeframe bars. You can change the lower timeframe via settings to cover if the chart timeframe is very high.



🎯Moving to different bars
Click on the middle of the marker, you will see slider which you can slide to move from one bar to other.


Example, after sliding, you will see the lower timeframe data of new candle.



🎯Settings
Settings has only two inputs.
  • Bar time - selects the bar which needs to be inspected.
  • Lower timeframe - Default is 1 min. And select a timeframe according to your chart timeframe. Less than 1 min is not supported by security.lower_tf function. Hence, will not work.

Versionsinformation

Added HTF envelope
Kommentarer
FloridaLaureen
This will prove very useful and time saving - thanks!
Trendoscope
@FloridaLaureen, thanks 🙏
NSahraC
it may be something simple for you. Not for me. I needed such an indicator. you should be proud of yourself. i have no doubt you will do better things. thank you very much lord of the zigzags :)
Trendoscope
@NSahraC, thanks for your comments ☺️
diLiviu
exactly what I needed! Thank you!
Trendoscope
@diLiviu, Simple utility. Not too fancy.
Ethereum99
Great job!
Trendoscope
@Ethereum99, thanks :)
winmaker
Hey, can you implement this to some strategy so it can be like "bar magnifier" function ? I belive that it is simple but I am not so good in coding. Thanks
winmaker
I have script on 5min but I need it to be calculated on 1 minute candles
Mer