Premium Only Content

Tutorial 214 | Draw a rectangle between the high and low of the week
Tutorial 214 explains how to draw a rectangle on a chart each week between the highest high and the lowest low of the week. The tutorial is similar to tutorial 212 which drew boxes for the highest high and lowest low of the DAY rather than the week.
The rectangles for completed weeks in the past are drawn at the end of the week from the last bar of the previous week to the first bar of the previous week.
The present week is drawn from the last bar on the chart and is extended as new bars are added to the chart. At the end of the week this rectangle is deleted.
Among the various programming topics covered in the tutorial are how to:
convert dates and time to DateTime format
create DateTime points
find the week number
create a method to draw a rectangle (DrawRectangle)
create a method to change the fill color of a rectangle (ColorRectangle)
The color of the rectangles is based on the highest high and lowest low of the current and previous weeks.
-
35:54
The Mel K Show
10 hours agoMel K & Tim James | Healing is an Inside Job | 9-14-25
67.4K4 -
3:06:33
IsaiahLCarter
13 hours ago $14.04 earnedCharlie Kirk, American Martyr (with Mikale Olson) || APOSTATE RADIO 028
74.9K23 -
16:43
Mrgunsngear
16 hours ago $11.39 earnedKimber 2K11 Pro Review 🇺🇸
54.4K14 -
13:40
Michael Button
1 day ago $3.51 earnedThe Strangest Theory of Human Evolution
49.6K24 -
10:19
Blackstone Griddles
1 day agoMahi-Mahi Fish Tacos on the Blackstone Griddle
34.7K3 -
23:51
Jasmin Laine
1 day ago“Stop Wasting My Time!”—Trump's BRUTAL WARNING To Canada As Poilievre ROASTS CBC LIVE
27.6K29 -
9:54
Millionaire Mentor
1 day agoNBC Host EXPOSES JB Pritzker For Saying This About Trump
17.3K14 -
1:35:39
SB Mowing
2 days agoIt took the WHOLE NEIGHBORHOOD to uncover this yards SHOCKING SECRET
100K65 -
12:52
ROSE UNPLUGGED
1 day agoFrom Vision to Legacy: Charlie Kirk
63.4K22 -
1:14:22
Jeff Ahern
14 hours ago $12.79 earnedThe Sunday Show with Jeff Ahern
87.9K39