Look at the color
Orange is Slow and blue is Fast.
Calculates a slow SAR and a fast SAR separately, and switches the dot shown on each bar according to whether ADX is rising and its level. The dot color distinguishes the series used.
Orange dot: Slow SARBars where ADX rose from the previous bar and is above the lower limit and below the upper limit.
Blue dot: Fast SARAll other bars, including bars at or above the upper limit and bars exactly at a threshold.
Color change and reversal are differentEven just switching to the other SAR can move the dot to the opposite side.
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.
Orange is Slow and blue is Fast.
Slow is selected only while ADX is rising and between the lower and upper limits.
Distinguish a switch of series shown by a color change from a reversal within the same series.
The dots are not 1 continuous SAR series but values selected for each bar from 2 series.
If ADX is greater than on the previous bar and Lower < ADX < Upper, Slow is shown. If any condition is not met, it is Fast.
If ADX equals a threshold, equals the previous bar, is falling, or is at or above the upper limit, it is Fast.
Slow and Fast are each calculated independently with their own Step and Maximum. Even when the selection changes, the series calculation does not restart.
The dot is the price of the selected SAR. On a bar where it reverses, it can also be placed between that bar's high and low.
Distinguish the candlesticks from the orange and blue dots.
Check the ADX rising condition and the upper and lower thresholds.
Check the changed items in the comparison image, and look at color and dot position separately.
| Included file | Purpose / location |
|---|---|
| TRI_ADX_Regime_SAR.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 7 inputs. Change them on the Inputs tab of the properties. The English display name and the input name in the code are shown together.
InpADXPeriodInpLowerLevelInpUpperLevelInpSlowStepInpSlowMaximumInpFastStepInpFastMaximumWhile the latest bar's price is moving, the displayed values and colors can also change. They are recalculated when history is added or corrected or settings change. Permanent non-repainting is not guaranteed.
Compare with the same symbol, timeframe, settings and loaded history. The display is not a forecast of future price movement.
No dots are drawn before the bar after 2 times the ADX period's number of bars. By default, this is from the 29th bar onward; if the SAR start condition is later, from there.
It looks for a bar whose high and low are both above or both below the previous bar. Until one is found, the latest bar is used as a provisional start and the search is repeated in the next calculation, so the drawing can change.
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.
At least 3 bars are required. It also waits for the start of the ADX drawing and the SAR start position.
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.
Directional components are derived from changes in the high and low, turned into ratios with the true range, and smoothed with a coefficient of 2÷(period+1). The ratio of the absolute value of their difference is also smoothed with the same coefficient. The ADX value itself is not drawn as a line on the chart.
The previous bar's SAR, direction, extreme and acceleration factor are carried over, and the factor increases by one step when the extreme is updated. The latest bar is also recalculated. The display switching condition is separate from the SAR reversal condition.
Slow SAR is shown as DarkOrange dots and Fast SAR as DodgerBlue dots. There is no notification function.