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.
-
1:24:24
LIVE WITH CHRIS'WORLD
18 hours agoTHE WAKE UP CALL - 12/17/2025 - Episode 27
20.9K -
27:51
ThinkStory
19 hours agoIT: WELCOME TO DERRY Season 1 Ending Explained!
26.9K -
5:29
Gamazda
13 hours ago $1.82 earnedMetallica - Nothing Else Matters (Live Piano in a Church)
19.2K7 -
2:50:56
The Confessionals
21 hours agoHe Killed a Monster (Then They Told Him to Stay Silent)
22.9K9 -
41:42
Brad Owen Poker
16 hours ago $0.78 earnedMy BIGGEST WIN EVER!! $50,000+ In DREAM Session!! Must See! BEST I’ve Ever Run! Poker Vlog Ep 360
15.6K1 -
17:53
The Illusion of Consensus
20 hours ago $1.10 earnedWhat Women REALLY Want in Public (It’s Not What You Think) | Geoffrey Miller
17.6K6 -
1:32:16
Uncommon Sense In Current Times
18 hours ago $0.81 earnedPolygyny Debate: The Biblical Case For and Against Plural Marriage | Uncommon Sense
16.6K1 -
2:06:49
BEK TV
1 day agoTrent Loos in the Morning - 12/17/2025
10.9K -
23:42
Athlete & Artist Show
4 days ago $0.47 earnedWorld Junior Invites & Snubs, NHL Threatens To Pull Out Of Olympics
10.3K -
57:22
Coin Stories with Natalie Brunell
18 hours agoWill 1 Bitcoin Be Generational Wealth? Whales Selling, Legacy Planning & Price Drivers
89.5K5