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
36 -
24:27
EEVblog Channel
2 years ago $0.01 earnedEEVblog 1470 - AC Basics Tutorial Part 3 - Complex Numbers are EASY!
40 -
4:57
govvit
2 years agoÁcido Cítrico | Gangplank Tutorial Part 1 - The Basics
6 -
1:30:05
Kim Iversen
3 hours agoWeekend at Biden's: Jill and Hunter To Keep Propping Up Old Joe, SCOTUS Rules Govt Can Censor on Social
30.9K75 -
28:43
Stephen Gardner
2 hours ago🔴BREAKING: Obama is TERRIFIED of THIS COVER UP Leaking!
18.2K122 -
35:29
Candace Owens
5 hours agoWhy I Left This Religion | Candace Ep 16
26.3K92 -
1:00:59
Lou Dobbs
5 hours agoLou Dobbs Tonight 7-1-2024
34.2K56 -
1:48:30
Donald Trump Jr.
11 hours agoJill & Joe Have Dems Pressing the Panic Button, Taking Your Questions live! | TRIGGERED Ep.150
163K350 -
2:36:18
WeAreChange
5 hours agoBlack Sex Magic Explained... And Elite Satanic Pedo Culture Exposed!
57.4K24 -
50:14
Kimberly Guilfoyle
8 hours agoLandmark Supreme Court Immunity Case, Plus Dems' Prop 47 Madness, Live with Jesse Binnall & ASM Bill Essayli | Ep. 138
62.1K35