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 -
LIVE
Deprogrammed with Keri Smith
50 minutes agoSHAME Month - LIVE Deprogrammed with Keri Smith
204 watching -
15:20
Neil
1 hour agoSomething Really Strange Is Going On… !!!
80 -
3:27:02
Scottish Viking Gaming
3 hours agoIt's HEAVY METAL Monday | Fortnite Around and Find Out
25.4K2 -
44:13
ArcaneBear
2 hours agoMarket Indecision - Bitcoin, S&P 500 - Gold and larger Macro Trends
5.15K2 -
1:05:01
The Rubin Report
3 hours agoWhy Is the Government Ignoring the #1 Source of Health Problems? | Paul Saladino
30.1K45 -
50:33
The Dan Bongino Show
5 hours agoSPECIAL: Best Of The Dan Bongino Show - 07/01/24
169K391 -
2:00:29
Benny Johnson
4 hours ago🚨BREAKING: BOMBSHELL Supreme Court Ruling Grants Trump IMMUNITY! MASSIVE Trump WIN | DC in PANIC🔥
105K130