TradingView
twingall
2023年2月26日晚上11點40分

Week & Day Boxes Projected forward; with day-of-week labels 

E-mini S&P 500 FuturesCME

描述

Projecting Week and Day boxes forward into the future, as an aide in framing the shape/profile of the coming week(s)/day(s).

////user inputs////
~toggle on/off daily and/or weekly boxes.
~input number of 2week blocks or number of 2day blocks to project forward.
~independently format colors and opacities of weekly and daily boxes.
~toggle on/off day-of-week labels (if you just want day labels, make opacity of day boxes&borders zero).

////notes////
-I have limited the project-forward numbers to keep it neat. If you want to play around with them, edit UP the FIRST integer in lines 56, 58, 62, 64 (currently set to 11,10, 41, 40 respectively). And edit UP maxvals in lines 9 and 15.
-To change the height of weekly and/or daily boxes, tweak the SECOND integer in lines 56, 58, 62, 64.
-Written for ES (S&P); tested/working on FX and BTC too.
-Starts painting/Resets at the beginning of a new week (i.e. Sunday eve).
-Sunday is blended into Monday; day's are defined as finishing at 6pm (New York Time).

發布通知

-Increased max weekly boxes to project forward.
-Changed max_boxes_count to 500.

發布通知

-Added user input start time; default is toggled OFF. Toggle ON to start week/days at sunday midnight (or user input time) instead of sunday 6pm (NY time)

發布通知

-corrected error in show day-of-week labels

發布通知

-Added option to paint hourly boxes projected forward (up to 48hrs forward); anchored to the current day start

發布通知

-added user input Timezone (default is New York)
評論
yigdeli
very very nice indicator as I researched on TV, I couldn't find any forward-looking indicator, very successful, at the same time, thank you very much @twingall for your interest and interest, it's a great super indicator
twingall
@yigdeli, thanks!
xmd1979
can code be adapted for 1min tf to reflect forecast cyclic time series for next minutes and hours as well? good code btw , thanks )
yigdeli
If you allow a very successful work, I would like to make a few suggestions to you. Currently, only daily coloring is available. It is possible for us to set this coloring manually on the instrument panel, I think, I suggest you do it hourly instead of daily, I wish you luck.
twingall
@yigdeli, maybe will get around to allowing coloring each day individually at some point..
更多