Premium Only Content

Tutorial 180 | Text Objects Basics | Part 2
TradeStation EasyLanguage Tutorial 180 demonstrates how to draw a line, a rectangle and a text label by specifying a start date, time and price and an end date, time and price. The times can be specified to the second. The tutorial uses Parse method of the DateTime class to convert user input strings (in mm/dd/yyyy hh:mm:ss format) into DateTime objects. These values are combined with user input prices to create DTPoint objects using DTPoint.Create. These DTpoints are then used to create a trendline, a rectangle and a text label.
Additional functionality is included so that the rectangle is drawn even if the end date time is not currently visible on the chart. This is achieved by checking the current BarDateTime at the beginning of each bar. If it is less than the LineEndTime then the rectangle has its end time set to the most right display datetime. This is repeated as each new bar is added to the chart, until the bar DateTime is equal to or greater than the end time.
Technical lessons covered in this tutorial include:
– Drawing lines, rectangles and text objects
– Using DateTime.Parse to convert a string to a DateTime object
– Using methods to create and update drawing objects
– Using ‘Composite Formatting’ to print data
– Ensuring a rectangle is visible even if the end datetime is not currently on the chart
This tutorial does not work with MultiCharts.
https://markplex.com/free-tutorials/tutorial-180-text-objects-basics/
-
3:52:05
Akademiks
6 hours agoDay 3/30. Drake Drops lawsuit vs iHeartMedia? Offset and Cardi Calls it Quits. 50 v Jim Jones?
65K4 -
2:51:55
TimcastIRL
11 hours agoTrump Just FROZE ALL Ukraine Aid After Zelenskyy SCREWED Negotiations w/Viva Frei | Timcast IRL
213K75 -
9:54:54
Dr Disrespect
19 hours ago🔴LIVE - DR DISRESPECT - PUBG - 5 CHICKEN DINNERS CHALLENGE!
233K27 -
1:58:28
Kim Iversen
12 hours agoSHOCKED! BETRAYED! RFK Jr. FLIPS on Measles Vaccine? | NATO Trap: Europe Could Drag The US to WW3
121K226 -
18:37
Clownfish TV
10 hours agoThe Oscars Just EMBARASSED Disney and Emilia Pérez...
78.1K23 -
56:28
Glenn Greenwald
12 hours agoDocumentary Exposing Repression in West Bank Wins at Oscars; Free Speech Lawyer Jenin Younes on Double Standards for Israel's Critics | SYSTEM UPDATE #416
121K95 -
1:03:34
Donald Trump Jr.
14 hours agoZelensky Overplays His Hand, More Trump Wins, Plus Interview with Joe Bastardi | Triggered Ep.221
190K143 -
1:13:16
We Like Shooting
23 hours ago $7.41 earnedDouble Tap 399 (Gun Podcast)
69.7K2 -
1:00:20
The Tom Renz Show
1 day agoTrump Schools Zelensky, The Epstein Files FAIL, & What RFK Will Mean for Cancer
80.9K22 -
42:47
Kimberly Guilfoyle
16 hours agoThe Trump effect: More Major Investment, Plus America First at Home & Abroad. Live w/Ned Ryun & Brett Tolman | Ep. 201
155K40