Recessions & crises shading (custom dates & stats)Shades your chart background to flag events such as crises or recessions, in similar fashion to what you see on FRED charts. The advantage of this indicator over others is that you can quickly input custom event dates as text in the menu to analyse their impact for your specific symbol. The script automatically labels, calculates and displays the peak to through percentage corrections on your current chart.
By default the indicator is configured to show the last 6 US recessions. If you have custom events which will benefit others, just paste the input string in the comments below so one can simply copy/paste in their indicator.
Example event input (No spaces allowed except for the label name. Enter dates as YYYY-MM-DD.)
2020-02-01,2020-03-31,COVID-19
2007-12-01,2009-05-31,Subprime mortgages
2001-03-01,2001-10-30,Dot-com bubble
1990-07-01,1991-03-01,Oil shock
1981-07-01,1982-11-01,US unemployment
1980-01-01,1980-07-01,Volker
1973-11-01,1975-03-01,OPEC
Shade
Shade COVID PeriodA free Pine Script that shades the COVID outbreak period. Note that you can specify your own date range and shade color.
Shade a particular timeframe x3This is to help you shade 3 different time frames, its showing 3 different timeframes. This will help you determine if you are trading in the right time frame that you want to. It is set to default to Eastern time frame. the default setting are set for 1700-0100, 0100-0600 and 0600-1000. You can change the time frames to which ever you would like to trade. This helps the visual learners to recognize which time frame they are trading in.