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/
-
UPCOMING
TheAlecLaceShow
56 minutes agoICE Under Siege in Chicago & Portland | Guests: Douglass Mackey & Wid Lyman | The Alec Lace Show
23 -
LIVE
The Mel K Show
56 minutes agoMORNINGS WITH MEL K -Overwhelming Evidence of Grand Conspiracy Against We the People 10-7-25
806 watching -
LIVE
The Shannon Joy Show
11 hours agoEugenics, Vaccination & The Unholy Trump/Pfizer Alliance LIVE W/ Brook Jackson & Warner Mendenhall
276 watching -
31:12
Grant Stinchfield
1 hour agoWhen Science Became Propaganda
3.9K4 -
LIVE
Trumpet Daily
1 hour agoTrumpet Daily LIVE | Oct. 7, 2025
282 watching -
1:00:59
VINCE
4 hours agoWho Else Were They Spying On? | Episode 141 - 10/07/25
189K131 -
1:46:37
Dear America
4 hours agoBIDEN FBI CAUGHT SPYING!! Jack Smith Tracked Calls of DOZENS Of Senators!! JAIL NOW!!
95.4K46 -
2:14:00
Badlands Media
8 hours agoBadlands Daily: October 7, 2025
40.1K13 -
1:10:50
The Big Migâ„¢
3 hours agoConfirmed, Foreign Power Interfered in U.S. Election
15K8 -
DVR
The State of Freedom
6 hours ago $0.12 earned#339 Local Justice & A National Awakening
8.15K1