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
Graham Allen
1 hour agoObamas Prove They Are Running The Country As Kamala Is Absent From DNC!!! EVIL IS COMING!!!
9,684 watching -
LIVE
Matt Kohrs
9 hours agoKamala's Plan To DESTROY The Economy & Stock Market || The MK Show
2,356 watching -
DVR
BonginoReport
2 hours agoPriest Who Covered Up Sex Abuse Prays Over DNC (Ep.26) - 08/21/24
15.1K50 -
DVR
The Podcast of the Lotus Eaters
5 hours agoThe Podcast of the Lotus Eaters #983
14.8K6 -
LIVE
Jerry After Dark
21 hours agoJerry After Dark: Overnight Camping
1,668 watching -
LIVE
AP4Liberty
2 hours agoTim Walz's Weird Affinity for Chinese Communism
1,124 watching -
2:15:58
The Black and Jewish Podcast with Ashira Solomon
21 hours agoEp. 5 There is No Justice in Criminal Justice with Mike Rashid
7.7K1 -
59:54
The Gun Collective Podcast
19 hours agoUNGOVERNABLE - The Gun Collective Podcast 123
12.2K6 -
13:17
Fascinating Horror
1 day agoFatally Flawed: The Rise and Fall of the Soviet Concorde | Fascinating Horror
23.6K7 -
27:24
JoBlo Originals
19 hours agoWhat Happened to The X-Files (1993-2018)?
17K14