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/
-
57:22
Coin Stories with Natalie Brunell
14 hours agoWill 1 Bitcoin Be Generational Wealth? Whales Selling, Legacy Planning & Price Drivers
12.2K4 -
3:04:49
Price of Reason
13 hours agoTrump wants Tim Walz to RESIGN! Welcome to Derry Finale! Song Sung Blue EARLY REVIEW! Lanterns WOKE?
271K20 -
11:47
Liberty Hangout
1 day agoAnti-Trump Beta FARTS On Me Instead of Debating
52.8K84 -
1:37:20
FreshandFit
9 hours agoShe’s Not Your Girl It’s Just Your Turn
65.5K11 -
5:26:18
Akademiks
11 hours agoEbro has MELTDOWN after Drake tells him to *** SLOWLY! Radio Over? NLE vs Youngboy part 805?
44.4K1 -
1:35:27
Inverted World Live
12 hours agoLost Satellites, Wild Horses, and 3i/Atlas
160K7 -
2:53:42
TimcastIRL
10 hours agoCandace Owens IMPLODES, Audience IN REVOLT, Claim SHES A CLONE Or GOT THE CALL | Timcast IRL
303K248 -
2:49:53
Barry Cunningham
10 hours agoLIVE BREAKING NEWS: President Trump Celebrates Hanukkah! And More News
81K20 -
1:29:40
Anthony Rogers
17 hours agoEpisode 394 - Isaac Butterfield
42.7K3 -
8:02
China Uncensored
16 hours agoChina Just Took The First Step Towards WAR
53.9K30