Infinity_Trading_

The Flip Backgrounds - Weekly & Hourly

Description
This indicator creates vertical background bands of larger timeframes when viewing lower timeframes so the trader can keep track of the larger timeframes when they are zoomed in on lower timeframes. This script displays hourly and weekly backgrounds. When the timeframe is thirty minutes or lower, hourly backgrounds are displayed. When the timeframe is greater or equal to an hour, then weekly backgrounds are displayed. The weekly backgrounds are great for spotting price movement over a weeks span. Many times price will go up the first part of the week and then come right back down in the second half (or vice versa). The weekly background makes these trends easy to spot.

The Flip
When a new candle forms, on any timeframe, this is referred to as "the flip". The most prominent flip is the hourly timeframe because intraday price action can be clearly seen with the hour timeframe. This is where this script gets its name. Also, since the stock market opens on the bottom of the hour, the hourly background start on the bottom of the hour as well.

Style
The hourly and weekly backgrounds can be independently toggled on and off for ease of use. The hourly and weekly vertical backgrounds are split into alternating colors. Each of these colors can be individually chosen (along with transparency) to match the trader chart colors.

Note: the weekly backgrounds logic in this script keeps track of the weeks by looking for Monday's. If the market is closed on a Monday, the weekly background will span two weeks.


开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?