Premium Only Content

Tutorial177_consolidator | Recognizing periods of consolidation
Consolidation describes a period in time when a stock or security is not in or reversing a larger price trend. During consolidation the instrument typically trades within a limited price range. Tutorial 177 is a TradeStation EasyLanguage tutorial that attempts to recognize periods of consolidation by calculating:
1) The standard deviation of price.
2) The ‘Consolidation Index’ by taking the average of true high over a number of bars, subtracting the average of the true low and dividing the result by the Average True Range.
The tutorial program then looks for when these values go below a user input percentile.
When a period of possible consolidation is found, tutorial 177 draws a box around it with the high of the box being the highest close of the price in the box and the low being the lowest low close of price in the box.
Because periods of consolidation are sometimes associated with low volume the tutorial also changes the color of the boxes when volume is below the average volume. The colors are also determined by user inputs.
This tutorial illustrates various programming techniques, including:
- Drawing rectangle and text drawing objects using BNPoints and XYPoints to specify their size and/or position
- Creating methods to draw rectangles and calling the methods
- Extending rectangles as new price bars form
- Modifying drawing object colors and transparency
- Using intrabarpersist booleans to detect when a percentile has been crossed
See https://markplex.com/free-tutorials/_tutorial177_consolidator-recognizing-periods-of-consolidation/
-
LIVE
BEK TV
22 hours agoTrent Loos in the Morning 7/25/2025
690 watching -
15:03
Dad Saves America
12 hours ago $0.81 earnedHow the Department of Education Hijacked Our Schools - Poisoning of the American Mind: Pt 3
22K5 -
14:06
Silver Dragons
15 hours agoBullion Dealer Reacts to Silver Price TRIPLING in 5 Years
3.96K4 -
28:31
Anthony Rogers
14 hours agoBOWLING FOR SOUP interview
3.92K1 -
17:12
Nate The Lawyer
2 days ago $1.65 earnedTrans Swimmer Lia Thomas Stripped of Titles for Being a Man in Women’s Sports
22.4K22 -
12:17
Zoufry
19 hours agoThe Hunt For The Real Life James Bond
29.3K6 -
24:05
DeVory Darkins
9 hours ago $10.93 earnedTrump HUMILIATES Jerome Powell in TENSE moment... Columbia University surrenders
105K79 -
14:17
Doc Rich
5 days agoLefties Losing It Once Again
31K36 -
25:31
Liberty Hangout
1 day agoMAGA Crashes Pathetic Anti-ICE Rally
103K57 -
2:02:26
Inverted World Live
11 hours agoUS Soldiers Saw Non-Humans in Suffolk, The Rendlesham Forest Incident | Ep. 80
153K25