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.
-
2:13:31
The Connect: With Johnny Mitchell
1 day ago $17.36 earnedIs Garth Brooks A Serial Killer? Exposing The Dark Secrets Of Country Music's Biggest Star
29.8K13 -
LIVE
Phyxicx
10 hours agoBack to FF8 - Let's actually play the story now! - 11/23/2025
103 watching -
19:19
GritsGG
15 hours agoINSANE Trio Match! Most Winning Warzone Player IGLs to Victory!
9.52K1 -
32:24
Forrest Galante
1 day agoHunting and Eating The World's WORST Fish (Everglades At Night)
128K9 -
11:37
The Pascal Show
1 day ago $14.45 earnedTHEY WANT TO END HER?! Candace Owens Claims French President & First Lady Put A H*t Out On Her?!
49.6K51 -
LIVE
Lofi Girl
3 years agolofi hip hop radio 📚 - beats to relax/study to
271 watching -
35:40
The Why Files
5 days agoPsyops: From Dead Babies to UFOs - The Same Pattern Every Time
114K107 -
1:48:26
Tucker Carlson
2 days agoKristen Breitweiser: 9-11 Cover-Ups, Building 7, and the Billion-Dollar Scam to Steal From Victims
185K421 -
5:48
Russell Brand
2 days agoThey BURNED me in effigy!
70.9K45 -
1:21:40
Man in America
10 hours agoThe Secret AI Plan to Enslave Humanity — And Why It Will FAIL w/ Todd Callender
55.1K25