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/
-
2:54:40
FreshandFit
11 hours agoChat Makes Pothead RAGE QUIT!!!
315K44 -
1:32:34
Badlands Media
13 hours agoBaseless Conspiracies Ep. 150: 9/11 Mysteries, Remote Pilots, and Hidden Agendas
85.5K25 -
LIVE
Akademiks
5 hours agoWHERE IS WHAM????? Thug we Forgive u dawg.. Ralo vs Boosie. Charlie Kirk fallout. Cardi B album?
2,811 watching -
2:05:53
Inverted World Live
6 hours agoDeath Cult Terror Cells, NASA Bans Chinese Nationals | Ep. 108
59.6K9 -
2:43:57
TimcastIRL
7 hours agoVP Says No Unity With Democrats Celebrating Charlie Kirk Assassination, Left Confirmed | Timcast IRL
274K178 -
13:45
The Charlie Kirk Show
6 hours agoTPUSA AT ASU CANDLELIGHT VIGIL
221K66 -
55:10
Katie Miller Pod
6 hours ago $12.67 earnedEpisode 6 - Attorney General Pam Bondi | The Katie Miller Podcast
92.4K28 -
1:46:41
Man in America
11 hours agoLIVE: Assassin Story DOESN'T ADD UP! What Are They HIDING From Us?? | LET'S TALK
73.2K98 -
2:24:17
Barry Cunningham
7 hours agoFOR PRESIDENT TRUMP WILL TAKE NO PRISONERS AND THE LIBS SHOULD EXPECT NO MERCY!
109K66 -
1:08:41
Savanah Hernandez
8 hours agoCharlie Kirk Was Our Bridge And The Left Burned It
59.2K53