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/
-
1:14:22
Jeff Ahern
3 hours ago $4.72 earnedThe Sunday Show with Jeff Ahern
25.8K7 -
16:37
Professor Nez
4 hours ago🚨Internet MELTS DOWN over JD Vance & Trump BREAKING the Democrats!
32.9K133 -
LIVE
Major League Fishing
4 days agoLIVE! - Fishing Clash Team Series: Heritage Cup - Day 1
1,045 watching -
18:40
itsSeanDaniel
6 hours agoPiers Morgan CALLED OUT and HUMILIATED by Andrew Tate
39.6K257 -
LIVE
Times Now World
2 days agoLIVE: "ON CAM: How the Charlie Kirk Shooter ESCAPED – Shocking New Footage Revealed!"
378 watching -
1:45:51
Game On!
1 day ago $11.12 earnedWise Guys Reveal NFL Week 2 BEST BETS Now
79.2K8 -
26:57
Robbi On The Record
2 days agoMouth Breathing Is Why You’re Exhausted | with Dr. Melanie Silvestrini
49.9K6 -
LIVE
Total Horse Channel
9 hours ago2025 Reno Snaffle Bit Futurity | Sunday Finals
101 watching -
40:44
SouthernbelleReacts
7 days ago $4.04 earned“Event Horizon (1997) Reaction | Hellraiser in Space with Sam Neill & Laurence Fishburne”
46.3K4 -
10:49
Artur Stone Garage
3 days ago $2.75 earnedI Spent $2000 on My Turbo Honda Civic Build (Before & After)
44.4K13