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
Right Side Broadcasting Network
3 days agoLIVE: President Trump Hosts a Town Hall in La Crosse, WI - 8/29/24
19,491 watching -
LIVE
Glenn Greenwald
2 hours agoBrazil's Repressive Censorship Judge To Ban X Nationwide; Has Trump 2024 Retained Its Populist Ideology? With Sohrab Ahmari | SYSTEM UPDATE #325
5,343 watching -
LIVE
Havoc
3 hours agoWhat Goes Into Making a Dope Album? | Stuck Off the Realness Ep. 11
533 watching -
LIVE
Roseanne Barr
3 hours agoThe Return of Primetime Alex Stein | The Roseanne Barr Podcast #63
3,481 watching -
DVR
Josh Pate's College Football Show
4 hours agoEp 547: Week 1 Upset Alert Meter | LSU-USC Prediction | New SEC On ABC Music | Cole Cubelic RETURNS
132 -
LIVE
Chrissy Clark
1 hour agoTucker Carlson ROASTS Kamala & RFK Talks Faith I Underreported Stories
427 watching -
1:00:56
Donald Trump Jr.
9 hours agoThe Roadmap to a MAGA Victory, Interviews with Sean Davis & Tim Murtaugh | TRIGGERED Ep.169
72.3K70 -
Right Side Broadcasting Network
3 days agoLIVE REPLAY: Trump Delivers Remarks on the Economy, Inflation, and Manufacturing in Mi - 8/29/24
234K176 -
56:02
Kimberly Guilfoyle
9 hours agoThe Swamp, Their J6 Lies, and the Search for Truth, Interview with Darren Beattie | Ep. 154
55.5K48 -
LIVE
Melonie Mac
5 hours agoGo Boom Live Ep 18! Playing the worst game ever made!
2,022 watching