Color and position
Distinguish the orange-red dots above and below from the gold mark at the bar's median price.
Places orange-red dots above and below where the ranges and highs/lows of 3 bars meet the conditions, and a gold mark where ATRs of several periods meet the conditions. The 2 kinds of marks have separate conditions and do not predict direction or later price movement.
Dots above and belowBars where the ranges of 3 bars do not widen in sequence and overshoots of the high and low are also within the conditions.
Gold markBars where the position and change of the medium-term ATR group and the short-term ATR meet several conditions.
By default, after the bar closesNo mark is shown on the forming latest bar. The previous bar is judged after a new bar starts.
Compares the default settings and a settings change example on a screen with only this product applied.
Example shown: 1-minute chart (M1). This is an example for explaining the display. The settings change example is not a recommended value. Details can be checked in the full-size view. Please also check the price scale of the main chart and the positions of the candlesticks.
Distinguish the orange-red dots above and below from the gold mark at the bar's median price.
The range inputs are in points, not pips.
If Closed Bars Only is true, no mark appears on the latest forming bar.
A mark is a record of a bar that met the conditions. It does not foretell range expansion, price direction or the shape of the next bar.
A bar becomes a candidate when the ranges of 3 bars do not widen in sequence (equal ranges included), the latest range is within the maximum, and the ratio of the previous 2 bars' ranges is also within the condition.
The amount by which the high exceeds the previous bar and the amount by which the low falls below the previous bar are rounded to points, and each is also checked to be 1 or less. The dots do not show strictly inside bars only.
Shown when the group of ATR 5, 7, 9 and 11 is at or below the 14-bar average of ATR 7, and the position and change of ATR 3 and other items are also within the conditions.
Consecutive bars with the same range also qualify for the dots above and below. A row of dots alone does not establish a special state or future movement.
Set the range values after checking the symbol's display digits and point.
The dots above and below and the gold mark do not need to appear together.
Change the maximums on the same symbol and timeframe, and check the difference in the target bars.
| Included file | Purpose / location |
|---|---|
| TRI_Range_Squeeze_Dots.ex5 | The MT5 main file. Place it in MQL5/Indicators. |
The ZIP contains only 1 item, the main file. The manual is opened from the product page on the site. Source code is not included. MT5 only; registration, account authentication and placing a license file are not required. Use it without changing the file name.
Extract the ex5 main file rather than leaving it in the compressed file.
In MT5, open MQL5/Indicators from 'File → Open Data Folder' and place the included ex5 there.
Refresh the Navigator or restart MT5, and apply it to the target chart. Place only 1 instance of the same product on 1 chart.
First check with the default values. Changes and removal are done from the chart's 'Indicators List'.
This product does not require DLL permission or enabling automated trading. When removed, this product's drawings are cleared.
There are 4 inputs. Change them on the Inputs tab of the properties window. The English display names are shown together with the input names in the code.
InpMaxRangeInpMaxATRDiffInpClosedBarsOnlyInpArrowGapA point is a price unit based on MT5's display digits. The default of 250 points corresponds to 25 pips for 5-digit FX, but it does not have the same meaning for other digit counts, gold, indices and so on. Check both limits to suit the symbol and timeframe.
The dots above and below judge the condition from the 3rd bar, and the gold marks from the 20th bar. Even when the number of history bars is met, they do not appear unless the conditions are met.
Values and drawing change with the latest bar's high, low and close. They are also recalculated when history is added or corrected or settings change.
Compare with the same symbol, timeframe, period and loaded history. The display is not a forecast of future prices.
This manual describes adding 1 instance of this product to 1 chart. To compare different settings, use separate charts.
This product shows calculation results through plot buffers and does not place orders. It does not guarantee profit or future price movement.
Bars with the same range are also included. Check the symbol's point, the timeframe, and the maximum range and maximum ATR difference.
Dot Gap is in pixels. It is not a setting that keeps the price distance constant when the zoom changes.
Check the allowed range of the inputs and the number of history bars. Outside the range, the indicator does not start, and the reason is shown in English in the Experts tab of the Toolbox. No explanation is shown on the chart.
If the first display does not appear, check history loading and the input ranges. If an earlier display has stopped updating, first check the price feed and the terminal's connection status.
With r0, r1 and r2 as the high−low of 3 bars from newest (rounded to points), r0≤MaxRange, 5r2≤9r1, r0≤r1≤r2. In addition, when for each pair of adjacent bars the overshoot of the high upward and the overshoot of the low downward, rounded to points, are each 1 or less, dots are placed at the latest high and low.
With A_n as the n-bar simple average of the true range, mx=max(A5,A7,A9,A11), mn=min(same), M7=the latest 14-bar average of A7. When 2r0≤3r1, mx≤M7, (mx−mn)/point≤MaxATRDiff, mn≤A3≤M7, A3≥A3 of the previous bar, and A3<A11 are all satisfied, a mark is placed at the midpoint of the high and low.
Near exact price or average thresholds, floating-point rounding may affect the judgment. Because recalculation also occurs on history corrections or additions and input changes, there is no guarantee that marks never change.