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
VINCE
2 hours agoMedia Lies On Trump's 100 Days | Episode 33 - 04/30/25
52,810 watching -
LIVE
Right Side Broadcasting Network
2 hours agoLIVE: President Trump Holds a Cabinet Meeting - 4/30/25
1,843 watching -
LIVE
Badlands Media
7 hours agoBadlands Daily: April 30, 2025
4,175 watching -
LIVE
Wendy Bell Radio
5 hours agoIt's The Trump Show
8,881 watching -
LIVE
Bannons War Room
2 months agoWarRoom Live
14,975 watching -
LIVE
Discover Crypto
1 hour agoBitcoin 'BUY SIGNAL' Just FLASHED! This Indicator NAILED 2022 Bottom!
33 watching -
Dear America
15 hours agoTrump Eyes the Papacy?! Michigan’s Lib Governor Goes MAGA — For a Day!
65.1K5 -
LIVE
Matt Kohrs
10 hours ago🔴[LIVE] STOCKS FALL: Inflation Report, GDP Data & Live Trading || The MK Show
5,203 watching -
LIVE
NEWSMAX
1 hour agoThe Gerry Callahan Show LIVE (04/30/2025) | NEWSMAX Podcasts
423 watching -
59:38
BEK TV
11 hours agoMedical Mysteries Revealed. What Mel Gibson and Joe Rogan were Afraid to Say
2.41K