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
2 years agoEEVblog 1469 - AC Basics Tutorial - Part 2 - Phasors
37 -
24:27
EEVblog Channel
2 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 -
22:29
JasminLaine
21 hours agoAwkward Silence After Poilievre FACT CHECKS Reporter—Carney’s Face SAYS IT ALL
34.7K40 -
9:48
VSOGunChannel
21 hours ago $2.35 earned25% of ATF Getting Fired? SUPER ATF on Hold?
32.9K31 -
11:09
ariellescarcella
1 day ago"All 4 Of My Kids Are Trans" : NOOOOOO
30.7K39 -
12:35
GoldenWebb
1 day ago $0.38 earnedMP5/K Super Safety
19.1K6 -
2:45:42
Badlands Media
1 day agoDevolution Power Hour Ep. 343: System Shock
178K170 -
2:34:40
Sgt Wilky Plays
6 hours agoSunday Morning Coffee and games
18.6K1 -
1:24:00
Man in America
1 day agoMarket Crash, Tariffs, USD Collapse: Trump's Plan to END the Old World Order? w/ John Perez
151K176