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/
-
3:53:56
Alex Zedra
8 hours agoLIVE! STILL Giving away an M249 SAW | Gaming tonight!
26.9K9 -
19:41
Squaring The Circle w/ Randall Carlson
10 hours ago#001 An Introduction To Squaring The Circle - Squaring The Circle: A Randall Carlson Podcast
32.1K30 -
12:03
ThinkStory
18 hours ago64 MAJOR Differences Between SHOGUN (1980) and SHOGUN (2024)
39.3K22 -
26:37
TheTapeLibrary
20 hours agoAnatoly Moskvin | Horrifying Crimes of The Russian Puppeteer
49.9K30 -
6:16
Film Threat
14 hours agoDEADPOOL & WOLVERINE TRAILER REACTION | Film Threat Reviews
32.5K14 -
29:36
Science & Futurism with Isaac Arthur
20 hours agoClearing Space Debris
38.7K16 -
6:55
Chrissy Clark
10 hours agoLGBT Activists Want Katy Perry To Stop THIS?!
38K25 -
16:27
justintech
14 hours agoBest Gaming PC 2024 For Every Budget!
38.7K2 -
1:22:40
Crime Circus
15 hours agoBad Boy sneaks KNIFE into interrogation!!
44.1K7 -
2:06:10
Laura Loomer
8 hours agoEP44: TRUMP ON TRIAL: SCOTUS Hears Presidential Immunity Arguments Ahead of 2024 Election
48.9K46