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:25:16 2:25:16Demons Row13 hours ago $3.17 earnedEx Hells Angels MC President: Charles “Peewee”Goldsmith (Full Interview)15.6K3
- 	
				 3:35 3:35Gamazda11 hours ago $4.13 earnedThe Darkest Piano Theme?22.2K19
- 	
				 13:42 13:42Nate The Lawyer20 hours ago $3.07 earnedINSANE Judge REMOVED For Lying Under Oath, Insurance Fraud & Stolen Valor18.9K15
- 	
				 38:32 38:32Code Blue Cam1 day agoHow Police Stopped a Potential Church Massacre...50.3K12
- 	
				 24:26 24:26Actual Justice Warrior1 day agoWelfare Queens RAGE OUT Over Food Stamp Cuts21K59
- 	
				 3:05:11 3:05:11Inverted World Live11 hours agoThe Halloween Special with Drea De Matteo and Sam Tripoli | Ep. 133369K16
- 	
				 2:57:52 2:57:52Laura Loomer14 hours agoEP154: Naturalized US Navy Medic From GAZA Exposed For Ties To Hamas53K30
- 	
				 35:45 35:45Stephen Gardner17 hours ago🔴BREAKING: Election Auditor EXPOSES Democrat Election Fraud Evidence!60.4K78
- 	
				 15:48 15:48Sponsored By Jesus Podcast21 hours agoHow to Stop Being JEALOUS | When Comparison Steals Your Joy26.6K13
- 	
				 3:56:59 3:56:59DLDAfterDark12 hours ago $20.79 earnedDon't Worry - Things Will Get SO Much Worse! Sometimes It Be Like That41.6K9