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/
-
56:09
Steven Crowder
5 hours agoBlack Fatigue is Real and I Told Them Why | Black & White on the Gray Issues
294K1.14K -
UPCOMING
Michael Heaver
1 hour agoItaly Issues Bombshell Ban ALERT
25 -
1:10:24
Simply Bitcoin
3 hours ago $1.46 earnedLEAKED CONVERSATION: US SECRET Bitcoin Plan EXPOSED?! | EP 1350
7.42K2 -
3:36:42
Barry Cunningham
15 hours agoBREAKING NEWS: PRESIDENT TRUMP HOSTS FULL CABINET MEETING!
25.5K10 -
1:59:05
The Charlie Kirk Show
3 hours agoTurning Point Halftime + Antifa Panel Aftermath + Right-Wing Taylor Swift? |Patrick, Cuomo|10.9.2025
61.8K28 -
27:46
Jasmin Laine
3 hours agoCBC TURNS On Carney After Trump HUMILIATES Him–Poilievre’s Response Goes Viral
5.62K9 -
4:27:44
Right Side Broadcasting Network
6 hours agoLIVE REPLAY: President Trump Hosts a Cabinet Meeting - 10/9/25
110K47 -
1:13:52
Mark Kaye
3 hours ago🔴 Schumer BUSTED Celebrating Democrat Shutdown!
16.4K5 -
1:00:33
Timcast
3 hours agoTrump To Declare Antifa FOREIGN Terrorist Org, Antifa Leaders FLEE Country
139K111 -
2:41:53
MattMorseTV
5 hours ago $8.62 earned🔴Trump's Cabinet Meeting BOMBSHELL.🔴
55.2K37