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.
-
LIVE
GloryJean
22 minutes ago[MnK] Gaming w/ The Boys 🖱️ 6.7 K/D
13 watching -
12:46
RTT: Guns & Gear
5 hours agoThis Might Be the Best .45 Cal Suppressor: Anechoic Suppressors AnechoX 45L
451 -
LIVE
Matt Kohrs
11 hours agoLive Day Trading: Ripping Higher || Stock Market Open
524 watching -
LIVE
Wendy Bell Radio
5 hours agoWorse Than Watergate
7,710 watching -
LIVE
Barry Cunningham
1 hour agoMUST SEE LIVE: PAM BONDI SENATE HEARING!
1,372 watching -
LIVE
LFA TV
12 hours agoLIVE & BREAKING NEWS! | TUESDAY 10/7/25
2,622 watching -
1:01:26
Chad Prather
14 hours agoTake Away the Stone: When Faith Meets the Impossible
35.1K19 -
24:26
Tucker Carlson
16 hours agoThe 9/11 Files: They Could Have Stopped It | Ep 3
62.9K54 -
1:56:47
The Chris Salcedo Show
12 hours ago $2.65 earnedIt's Time Justice Was Served
22.9K3 -
1:56:58
Welcome to the Rebellion Podcast
13 hours ago $1.03 earnedWelcome to the Rebellion Podcast Live 10/7
22.2K