Premium Only Content
 
			TradeStation EasyLanguage tutorial 114 DT 3 | Draws boxes between two start and end times each day
_Tutorial 114 DT 3 draws boxes between two start and end times each day. If a chart does not have a bar with a specific time stamp corresponding to the start time the box will be drawn from the following bar. Similarly, if the chart does not have a bar corresponding to the end time, the box will be drawn to the following bar.
Drawing boxes might be useful if you wished to highlight trading activities and levels between certain times. Alternatively, although the times and price levels in this program are specified as user inputs, you could use the techniques built into this tutorial in a more sophisticated program that calculated levels.
The tutorial program uses the rectangle class with several of its properties and the create class. The tutorial demonstrates the creation of a method to create the rectangles, which is called from several places in the program. Tutorial 114 DT 3 creates five boxes at different price levels in each time zone..
A user input (ExtendRight) determines whether a box that is currently under development for real time bars is extended to the right or just extended to the current bar (until the end time is reached).
TradeStation EasyLanguage technical lessons
In the tutorial video and the program comments you will learn:
- How to write a method with several inputs
- How to use the rectangle class
- How to create a DT (DateTime) point
- How to extend the rectangles to the right
- Setting the end point of a rectangle
- How to vary the transparency of the rectangles
- How to draw historic and future rectangles on historic and real-time bars
- Specifying and using time to seconds accuracy
- Converting EasyLanguage legacy date and time into DateTime objects
- Dealing with start and end times that start in one day and end in the next
The program is available for download for a small fee or for FREE to Gold Pass members.
Version 3 is a simplified and improved version of the original programs that has been tested in TradeStation 10.0.
See https://markplex.com/free-tutorials/tutorial-114-dt-drawing-rectangles-chart-time-periods-day/
- 	
				 LIVE LIVELara Logan7 hours agoSHOTS FIRED: The Tyranny of Big Pharma Exposed with Dr. Sherri Tenpenny | EP 42 | Lara Logan216 watching
- 	
				 LIVE LIVESean Unpaved1 hour agoRavens' Resurrection Night: Lamar Buries Miami, NFL/CFB Spooky HC Shifts, & Kalshi's Week 9/10 Odds!82 watching
- 	
				 LIVE LIVEFilm Threat1 day agoHALLOWEEN HORROR + BACK TO THE FUTURE RERELEASE + MORE REVIEWS | Film Threat Livecast65 watching
- 	
				 1:21:16 1:21:16Steven Crowder3 hours ago10th Annual Halloween Spooktacular: Reacting to the 69 Gayest Horror Movies of All Time156K101
- 	
				 57:39 57:39The Rubin Report2 hours agoKamala Gets Visibly Angry as Her Disaster Interview Ends Her 2028 Election Chances16K40
- 	
				 LIVE LIVEDr Disrespect2 hours ago🔴LIVE - DR DISRESPECT - ARC RAIDERS - DANGEROUS ADVENTURES (LEVEL 12)1,606 watching
- 	
				 LIVE LIVELFA TV16 hours agoLIVE & BREAKING NEWS! | FRIDAY 10/31/252,693 watching
- 	
				 LIVE LIVEThe Mel K Show2 hours agoHunters Become the Hunted: A Reckoning Is Finally Coming - 10/31/25857 watching
- 	
				 1:02:41 1:02:41Outspoken with Dr. Naomi Wolf2 hours ago"The Devil His Due"4.93K
- 	
				 1:02:27 1:02:27VINCE4 hours agoA Very Trump Halloween | Episode 159 - 10/31/25139K85