ATR Stops
Draws only 1 trailing line on the price chart whose distance changes with the size of price movement (ATR). When the direction is up, it appears in blue below the price; when it is down, in red above the price. When the direction changes, the line moves to the opposite side.
Range (ATR) × multiplier → a line that follows the price → read the direction from blue / red
Blue line (Up)Appears below the price while the direction is judged to be up.
Red line (Dn)Appears above the price while the direction is judged to be down.
Bar where the line moved to the opposite sideThe bar where the direction judgment switched. Blue and red never appear at the same time.
MT5 display and examples of changed settings
Only the price chart and this product are shown. Compare the default settings and the example of changed settings with the same symbol, timeframe and display range.
View the screen in detail at full size
View the screen in detail at full size
Example shown: synthetic data, 1-minute timeframe (M1). This is not the price movement of an actual symbol. The changed settings are an example to show the difference, not recommended values. You can enlarge it from "View the screen at full size".
How to read it in 30 seconds
What it measures
Over the calculation window of the period (default 10 bars), it finds the maximum of each bar's "high − ATR × multiplier" and the minimum of each bar's "low + ATR × multiplier". When the close exceeds the previous bar's upper value, the direction switches to up; when it falls below the lower value, it switches to down. Only one of the two is drawn as the line, depending on the direction. Because ATR is used, the line moves away from the price when price movement is large and closer to it when movement is small.
When to use it in decisions
When the direction switches
- Indicator
- The bar where the line moves to the opposite side of the price.
- Price
- Cross-check with the price movement on the same bars.
- Consideration
- Check the relationship between the indicator and the price, and cross-check it against your conditions decided in advance.
- Exclusion condition
- Do not use the display alone as a definitive signal to buy or sell.
When measuring pullbacks and rebounds
- Indicator
- The distance between the line and the price. The larger the price movement, the farther apart they are.
- Price
- Cross-check with the price movement on the same bars.
- Consideration
- Check the relationship between the indicator and the price, and cross-check it against your conditions decided in advance.
- Exclusion condition
- Do not use the display alone as a definitive signal to buy or sell.
When the direction continues
- Indicator
- Sections where a line of the same color follows the price in steps.
- Price
- Cross-check with the price movement on the same bars.
- Consideration
- Check the relationship between the indicator and the price, and cross-check it against your conditions decided in advance.
- Exclusion condition
- Do not use the display alone as a definitive signal to buy or sell.
When the price approaches the line
- Indicator
- Where the price has moved close to the line. This is a guide to whether a switch is near.
- Price
- Cross-check with the price movement on the same bars.
- Consideration
- Check the relationship between the indicator and the price, and cross-check it against your conditions decided in advance.
- Exclusion condition
- Do not use the display alone as a definitive signal to buy or sell.
Actual decision steps
Place it on a chart
Decide the timeframe and currency pair and place it on the chart.
Read the display
Read the direction from which color is currently shown.
Look at the position and the change
Use the distance between the line and the price to see the margin relative to the size of price movement.
Cross-check with the price
Treat the bar where the line moved to the opposite side as the bar where the direction changed.
Installation and checking the package contents
| Included file | Location and purpose |
|---|---|
| TRI_ATR_Stops.ex5 | The indicator itself for MetaTrader 5. Place it in MQL5/Indicators. |
| TRI_ATR_Stops_Manual.html | The manual for this product. Open it in a browser. |
Extract the ZIP first. MT5 only. This product does not require placing a license file or account authentication. Use the files without renaming them.
Open the data folder
In MT5, select "File → Open Data Folder".
Place the indicator file
Place the included TRI_ATR_Stops.ex5 in MQL5/Indicators.
Place it on a chart
Refresh the Navigator or restart MT5, and apply this product to a chart of the symbol and timeframe you want.
Check the settings and display
Check with the default settings first. To change them, open this product's properties from the Indicators List. For the required number of history bars and where it is displayed, see Chapters 7 and 8.
To remove it, select this product in the chart's Indicators List and delete it.
Settings
Length (bars)
- Input name
- InpLength
- Default
- 10
- Description
- The number of bars in the window used to find the trailing line. From 1 to 100000.
ATR Period (bars)
- Input name
- InpAtrPeriod
- Default
- 5
- Description
- The number of bars for the ATR that measures the size of price movement. From 1 to 100000.
ATR Multiplier
- Input name
- InpKv
- Default
- 2.5
- Description
- The multiplier applied to ATR. A larger value moves the line farther from the price and makes switches less frequent.
Usage specifications
Display location
Price chart. 2 plots are drawn (blue and red), and each bar has a value in only one of them.
Start of drawing
On the oldest side of the chart, Length bars are not drawn. This is because there are not enough bars for the window.
Line overlap
Blue and red never appear on the same bar at the same time.
Values that cannot be set
When Length or ATR Period is less than 1 or greater than 100000, the settings are not accepted and the indicator is not added to the chart.
Troubleshooting and usage notes
No line appears after attaching
Check the settings. If Length or ATR Period is out of range, the indicator does not attach.
Only the older side does not appear
This is by design. The first Length bars are not drawn.
Too many / too few switches
Adjust ATR Multiplier. A larger value reduces switches.
Technical information and specification details
Product information
Product information
- Supported platform
- MetaTrader 5 (there is no MT4 version)
- File name
- TRI_ATR_Stops.ex5
- Version
- 1.10
- Display location
- Price chart
- Copyright notice
- Trilogy Inc.