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/
-
LIVE
Badlands Media
8 hours agoBaseless Conspiracies Ep. 145
11,083 watching -
LIVE
TimcastIRL
2 hours agoTrump Deploys National Guard To DC, Federalizes Police, Liberals Protests Take Over| Timcast IRL
7,845 watching -
2:27:36
Barry Cunningham
6 hours agoBREAKING NEWS: PRESIDENT TRUMP ABSOLUTELY NUKED WASHINGTON D.C. AND THE MEDIA!
42.6K30 -
LIVE
Drew Hernandez
7 hours agoTRUMP'S DC TAKEOVER & ISRAEL KILLS AL JAZEERA TEAM AHEAD OF GAZA INVASION
784 watching -
1:19:05
Glenn Greenwald
3 hours agoTrump's DC Takeover: Is it Legal? Israel Kills More Journalists, Including Anas al-Sharif; Glenn Reacts to Pete Buttigieg and JD Vance on Israel | SYSTEM UPDATE #501
101K85 -
44:40
Katie Miller Pod
3 hours ago $2.88 earnedEpisode 1 - Vice President JD Vance | The Katie Miller Podcast
29.6K7 -
LIVE
LFA TV
1 day agoLFA TV ALL DAY STREAM - MONDAY 8/11/25
824 watching -
1:44:36
RiftTV
5 hours agoBREAKING: Trump FEDERALIZES D.C. To RESTORE Law & Order | The Rift | Ryan Matta, Olivia Krolczyk + Braeden Sorbo
36.6K11 -
LIVE
megimu32
3 hours agoOTS: Breakfast Nostalgia + Blind Chocolate Cereal Showdown… LIVE! 🍫🥣
73 watching -
LIVE
LIVE WITH CHRIS'WORLD
10 hours agoLIVE WITH CHRIS’WORLD - It’s Called LAW & ORDER
101 watching