OPEN-SOURCE SCRIPT
已更新 Bar Magnifier

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
https://www.tradingview.com/x/yt97ps9N/
🎯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.
https://www.tradingview.com/x/tnvzOW6w/
🎯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.
https://www.tradingview.com/x/lWTSiqGg/
Example, after sliding, you will see the lower timeframe data of new candle.
https://www.tradingview.com/x/XLVSGcwt/
🎯Settings
Settings has only two inputs.
🎲 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
https://www.tradingview.com/x/yt97ps9N/
🎯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.
https://www.tradingview.com/x/tnvzOW6w/
🎯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.
https://www.tradingview.com/x/lWTSiqGg/
Example, after sliding, you will see the lower timeframe data of new candle.
https://www.tradingview.com/x/XLVSGcwt/
🎯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.
https://www.tradingview.com/x/hYCN06cB/
版本注释
Added HTF envelope开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
Trial - trendoscope.io/trial
Subscribe - trendoscope.io/pricing
Blog - docs.trendoscope.io
Subscribe - trendoscope.io/pricing
Blog - docs.trendoscope.io
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
Trial - trendoscope.io/trial
Subscribe - trendoscope.io/pricing
Blog - docs.trendoscope.io
Subscribe - trendoscope.io/pricing
Blog - docs.trendoscope.io
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。