Premium Only Content
 
			Tutorial 215 | Alert when MACD crosses a line drawn on chart
Tutorial 215 is a tutorial for Tradestation EasyLanguage that demonstrates how to calculate and plot the value of the Moving average convergence-divergence value (MACD), the average of the MACD and the difference between the MACD and the average of the MACD. This difference is plotted as an histogram (like to the standard TradeStation program). The tutorial 215 program does not include Radarscreen specific functionality that is included in the standard program. Also, it uses color object names rather than the legacy colors included in the standard program.
When a horizontal line is drawn on the chart, using the drawing tools, tutorial 215 changes the color and thickness of the horizontal line and stores its value. If the line is moved, its color is changed until the mouse button is released when it is returned to its original color.
The program then alerts when the MACD line crosses this horizontal line. The date and time of the cross are printed in the print log.
The tutorial includes a method that converts the color of a color object into a legacy color that can be used in a plot statement.
Another method is used to 'scrape' the details of drawing objects manually drawn on the chart into a vector. Once stored in the vector the color and weight of the drawing object (horizontal line) can be modified.
The tag property of the horizontal line is used to record whether the horizontal line is currently active. Various print statements are included to help the user better understand the functioning of the program.
https://markplex.com/free-tutorials/tutorial-215-alert-when-macd-crosses-a-line-drawn-on-chart/
- 	
				 1:21:16 1:21:16Steven Crowder4 hours ago10th Annual Halloween Spooktacular: Reacting to the 69 Gayest Horror Movies of All Time212K132
- 	
				 57:39 57:39The Rubin Report3 hours agoKamala Gets Visibly Angry as Her Disaster Interview Ends Her 2028 Election Chances29.4K51
- 	
				 LIVE LIVEDr Disrespect3 hours ago🔴LIVE - DR DISRESPECT - ARC RAIDERS - DANGEROUS ADVENTURES (LEVEL 12)1,601 watching
- 	
				 LIVE LIVELFA TV17 hours agoLIVE & BREAKING NEWS! | FRIDAY 10/31/252,040 watching
- 	
				 1:36:11 1:36:11The Mel K Show3 hours agoHunters Become the Hunted: A Reckoning Is Finally Coming - 10/31/2515.8K12
- 	
				 1:02:41 1:02:41Outspoken with Dr. Naomi Wolf3 hours ago"The Devil His Due"18.4K
- 	
				 1:02:27 1:02:27VINCE5 hours agoA Very Trump Halloween | Episode 159 - 10/31/25166K146
- 	
				 2:07:18 2:07:18Badlands Media13 hours agoBadlands Daily: October 31, 202565.8K20
- 	
				 1:34:28 1:34:28Graham Allen5 hours agoSCARY: Kamala Had MELT DOWN Over Trump!! Does LSU Hate Charlie Kirk?! + Top Halloween Movies Of ALL TIME!!96.2K49
- 	
				 1:35:13 1:35:13Caleb Hammer4 hours agoShe Blames MAGA For Her Debt | Financial Audit16.9K2