Premium Only Content

Tutorial 180 | Text Objects Basics | Part 1
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/
-
19:06
EEVblog Channel
3 years agoEEVblog 1469 - AC Basics Tutorial - Part 2 - Phasors
37 -
24:27
EEVblog Channel
3 years ago $0.01 earnedEEVblog 1470 - AC Basics Tutorial Part 3 - Complex Numbers are EASY!
48 -
4:57
govvit
3 years agoÁcido Cítrico | Gangplank Tutorial Part 1 - The Basics
6 -
31:51
The Boomer Effect
18 hours agoThe Colorful Lie: Dr Malone on Why Food Dyes Are Under Fire
801 -
1:03:26
Timcast
3 hours agoMass EU Power Outage Sparks Fear Of GLOBAL SOLAR DISASTER, Cyberattack RULED OUT
142K117 -
1:25:55
Simply Bitcoin
3 hours ago $4.08 earnedINSIDER LEAK: 4 BIGGEST Banks in The World Coming To Bitcoin In 2025?! | EP 1234
41.2K -
1:50:53
Steven Crowder
6 hours agoExposing 3 Major Anti-Trump LIES - What You Need to Look For
382K282 -
2:10:20
The White House
5 hours agoPresident Trump Participates in a Cabinet Meeting, Apr. 30, 2025
63K65 -
3:20:58
Right Side Broadcasting Network
7 hours agoLIVE REPLAY: President Trump Holds a Cabinet Meeting - 4/30/25
94.7K31 -
1:36:18
Rebel News
3 hours ago $3.00 earnedAlberta independence talks, Quebec rejects oil, Conservatives ponder future | Rebel Roundup
27.4K28