Chart Pattern Rectangle Indicator for Sierra Chart
Chart Pattern Rectangle finds sideways consolidations on your Sierra Chart price chart, draws the upper and lower boundaries for you, extends them forward and alerts you when a new rectangle appears.
Download the indicatorSee how it works
For Sierra Chart. Works with the standard price data already on your chart.
What is a rectangle chart pattern?
A rectangle is one of the most recognized price patterns in technical analysis. Price stops trending and moves sideways between a roughly flat resistance level above and a roughly flat support level below, repeatedly turning back from both. It shows a market that is pausing while buyers and sellers are in balance.
Traders watch rectangles because the range edges give clear reference levels. Price may eventually leave the range in either direction, and a rectangle does not tell you which way. The Chart Pattern Rectangle indicator removes the manual work of finding these ranges and drawing their edges.
What the indicator draws on your chart
- Upper line (orange by default). Marks the resistance side of the rectangle.
- Lower line (lime by default). Marks the support side of the rectangle.
- Extension lines (gray by default). Carry both boundaries to the right so you can watch how price reacts to them.
- Found marker (cyan dot). Plotted on the bar where a new pattern is detected.
Features of the Chart Pattern Rectangle indicator
Everything is shown directly on the main price chart, so you can keep your normal workspace and layout.
Automatic rectangle detection
Scans the chart as bars form and highlights rectangle consolidations without manual drawing.
Clear boundary lines
Draws a horizontal upper line and a horizontal lower line so the top and bottom of the range are obvious at a glance.
Extension lines
Projects both boundaries forward by a number of bars you choose, ready for support and resistance reactions.
Found marker
A cyan dot appears on the bar where a pattern is found, which is useful for scrolling back through history.
Built-in alerts
Get a Sierra Chart alert when a new rectangle appears so you do not need to watch every chart.
Three pattern scales
Enable small, medium or large rectangles independently to match your trading style.
Adjustable strictness
Tune how closely highs and lows must line up with the Horizontal Tolerance ATR input.
Full color and width control
Set your own colors and line width so the study matches your chart template.
Small, medium and large rectangle modes
Rectangles come in different scales. Turn each size on or off to focus on the type of consolidation that matches your timeframe and trading style. All three are enabled by default.
Small
Short-term rectangles that form over a limited number of bars. Useful for intraday charts and quick consolidations.
Medium
Intermediate rectangles that develop over a longer stretch of price action.
Large
Broader, more significant ranges that stand out on higher timeframes.
How to install Chart Pattern Rectangle in Sierra Chart
- Download the filesUse the download button on this page and unzip the package to a folder on your PC.
- Copy the study filePlace the indicator’s DLL file in the Data folder of your Sierra Chart installation.
- Restart or reload Sierra ChartReload Sierra Chart, or use the Custom Study DLL options, so the new study appears in the list.
- Add it to a chartOpen Analysis, then Studies, find “Chart Pattern Rectangle” in the list and click Add.
- Adjust the settingsChoose pattern sizes, tolerance, colors and alerts in the Settings and Inputs tabs, then click OK.
Exact file names and folders depend on your Sierra Chart setup. Follow the instructions included with your download.
Chart Pattern Rectangle settings
Every input is available in Sierra Chart’s Study Settings window. Defaults are shown below.
| Input | Default | Description |
|---|---|---|
| Enable Small Pattern | Yes | Look for smaller, short-term rectangle consolidations. |
| Enable Medium Pattern | Yes | Look for intermediate-size rectangle consolidations. |
| Enable Large Pattern | Yes | Look for larger, more significant rectangle consolidations. |
| Horizontal Tolerance ATR | 0.75 | Controls how closely the upper and lower boundaries must line up, scaled by recent volatility (ATR). Lower values are stricter; higher values accept looser rectangles. |
| Show Last Pattern Only | No | When Yes, the lines are redrawn for the most recent pattern only instead of keeping lines for every pattern found. |
| Enable Alert | Yes | Sends a Sierra Chart alert when a new rectangle is found. |
| Extension Bars | 20 | Number of bars the boundary lines extend to the right of the pattern. Set to 0 to turn the extensions off. |
| Upper Line Color | Orange | Color of the upper boundary line. |
| Lower Line Color | Lime green | Color of the lower boundary line. |
| Extension Line Color | Gray | Color of the lines that extend beyond the pattern. |
| Line Width | 2 | Thickness of all boundary and extension lines. |
| Found (subgraph) | Cyan point | Marker plotted on the chart when a pattern is detected. Style, color and size can be changed in the Subgraphs tab. |
How traders can use the rectangle indicator
-
Spot consolidation zones early
Scan several charts quickly and see where price has stopped trending and begun to range.
-
Plan around support and resistance
Use the upper and lower lines as reference levels when planning entries, exits and stop placement.
-
Prepare for breakout or reversal scenarios
Extension lines make it easy to see when price moves back toward, or beyond, the edges of the range.
-
Review and backtest
Scroll through history with the found markers to study how rectangles formed on your chosen market and timeframe.
-
Combine with your own analysis
Use the rectangle together with volume, order flow, trend filters or other studies you already trust.
Compatibility
- Platform: Sierra Chart for Windows.
- Markets: any symbol you can chart in Sierra Chart, including futures, forex, stocks and crypto.
- Timeframes: any intraday or higher timeframe. Results vary by market and timeframe, so test on your own charts.
- Display: plotted on the main price chart. No extra data feeds or other studies are required.
- Chart history: load enough bars for patterns to form.
Chart Pattern Rectangle FAQ
What is the Chart Pattern Rectangle indicator for Sierra Chart?
Chart Pattern Rectangle is a custom study for Sierra Chart that scans your price chart for rectangle consolidations, marks them with a dot, draws horizontal upper and lower boundary lines, extends those lines to the right, and can trigger an alert when a new pattern is found.
What is a rectangle chart pattern?
A rectangle is a classic consolidation pattern in which price moves sideways between a roughly horizontal resistance area above and a roughly horizontal support area below. Traders watch these ranges because the market is pausing and may later continue in its prior direction or reverse. Neither outcome is guaranteed.
Which markets and timeframes does it work on?
The study reads standard open, high, low and close data, so it can be applied to any symbol and timeframe you can load in Sierra Chart, including futures, forex, stocks and crypto. Pattern frequency and quality vary by market and timeframe, so test it on the charts you actually trade.
Does the indicator repaint?
Like any pattern-recognition tool, it identifies a rectangle from price action that has already formed, so a pattern appears after the structure exists rather than in advance. We make no claim about repainting behavior in every situation. Please review the study in Sierra Chart replay and on your own charts before relying on it.
Does it give buy or sell signals?
No. It highlights rectangle consolidations and their boundaries. It does not tell you when to enter or exit, and it does not predict breakout direction. How you trade the pattern, and how you manage risk, remains your decision.
How do the alerts work?
With Enable Alert set to Yes, the study sends a Sierra Chart alert with the message “Chart Pattern Rectangle found” when a new pattern is detected. You can choose sounds and notification behavior in Sierra Chart’s alert settings.
What do the small, medium and large pattern options mean?
They let you choose the scale of rectangles the indicator looks for. Small targets short-term ranges, Medium targets intermediate ranges, and Large targets broader, more significant consolidations. All three are on by default, and you can switch any of them off.
Can I change the colors, line width and line length?
Yes. You can set the upper line color, lower line color, extension line color, line width and the number of bars the lines extend to the right. You can also switch to Show Last Pattern Only to keep the chart uncluttered.
Do I need programming skills to use it?
No. The indicator is a ready-to-use Sierra Chart study. You add it to a chart from the study list and adjust its inputs in the Study Settings window, with no coding required.
Add Chart Pattern Rectangle to Sierra Chart
Stop searching for consolidations by hand. Let the indicator mark the range, extend the boundaries and tell you when a new rectangle forms.
Risk disclaimer. Trading leveraged products such as futures, forex and CFDs carries a high level of risk and may not be suitable for everyone. You can lose more than your initial deposit. Chart Pattern Rectangle is a charting tool for educational and analytical purposes and is not financial advice or a recommendation to buy or sell. Chart patterns do not guarantee any outcome, and no results are promised. Past performance is not indicative of future results. Always test on a demo or in replay and trade only with capital you can afford to lose.


