MT5 indicators← ADX Regime SAR product page日本語の取扱説明書

This product is in preparation for release. Product files are not yet distributed; the manual is published so that you can review its content. This manual is an English translation of the Japanese manual. Images (screens and figures) are not translated and may contain Japanese text or earlier names.

For Trilogy users

ADX Regime SAR

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.

Indicator name: ADX Regime SARMetaTrader 5Main chart

Selects which SAR to show using the ADX condition

Calculate 2 kinds of SAR separatelyADX rising & lower limit < ADX < upper limit?Met: Slow (orange) / otherwise: Fast (blue)Do not read a color change alone as a SAR reversal
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Orange dot: Slow SARBars where ADX rose from the previous bar and is above the lower limit and below the upper limit.

2

Blue dot: Fast SARAll other bars, including bars at or above the upper limit and bars exactly at a threshold.

3

Color change and reversal are differentEven just switching to the other SAR can move the dot to the opposite side.

2 series calculated independently1 dot per bar after display startsColor distinguishes the series
1

MT5 display and examples of changed settings

Compares the default settings and a settings change example on a screen with only this product applied.

Settings change example: these items are changed
ADX period
InpADXPeriod
14 → 7
ADX lower limit
InpLowerLevel
25 → 20
ADX upper limit
InpUpperLevel
40 → 50
Fast step
InpFastStep
0.1 → 0.2
Fast maximum
InpFastMaximum
0.5 → 0.2

All other inputs remain at their defaults. On a PC, the default is on the left and the change example on the right; at smartphone width they appear in the same order from top to bottom.

Default settingsInpADXPeriod = 14 / InpLowerLevel = 25 / InpUpperLevel = 40 / InpFastStep = 0.1 / InpFastMaximum = 0.5
ADX Regime SAR default settings
Default ADX14 with levels 25–40. Orange and blue dots line up around the candles.
View the screen in detail at full size
ADX Regime SAR default settings (full size)
Settings change exampleInpADXPeriod = 7 / InpLowerLevel = 20 / InpUpperLevel = 50 / InpFastStep = 0.2 / InpFastMaximum = 0.2
ADX Regime SAR settings change example
Changed to ADX 7, levels 20 to 50, and Fast Step/Maximum 0.2/0.2. The dot coloring and positions have changed.
View the screen in detail at full size
ADX Regime SAR settings change example (full size)

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.

2

How to read it in 30 seconds

Look at the color

Orange is Slow and blue is Fast.

Look at the condition

Slow is selected only while ADX is rising and between the lower and upper limits.

Look at the position

Distinguish a switch of series shown by a color change from a reversal within the same series.

3

What it measures

The dots are not 1 continuous SAR series but values selected for each bar from 2 series.

Selection condition

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.

Thresholds and flat values

If ADX equals a threshold, equals the previous bar, is falling, or is at or above the upper limit, it is Fast.

Calculation of the 2 series

Slow and Fast are each calculated independently with their own Step and Maximum. Even when the selection changes, the series calculation does not restart.

Dot position

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.

4

Situations for reading the display

The dot color and position changed at the same time

Indicator
The series shown has switched.
Cross-check
Check whether the dot color is the same before and after.
Check
Do not decide on a reversal from just 2 dots of different series.
Caution
Because a reversal can also occur on the same bar, a color change alone does not establish whether a reversal occurred.

Few orange dots

Indicator
Few bars meet all the conditions for selecting Slow.
Cross-check
Check the ADX period and the upper and lower levels.
Check
Confirm that bars at or above the upper limit also become Fast.
Caution
A larger ADX does not necessarily mean Slow.
5

Steps for checking the display

1

Apply with the defaults

Distinguish the candlesticks from the orange and blue dots.

2

Cross-check the inputs and colors

Check the ADX rising condition and the upper and lower thresholds.

3

Compare settings

Check the changed items in the comparison image, and look at color and dot position separately.

6

Installation and checking the package contents

Included filePurpose / location
TRI_ADX_Regime_SAR.ex5The 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.

1

Extract the ZIP

Extract the ex5 main file rather than leaving it in the compressed file.

2

Open the data folder

In MT5, open MQL5/Indicators from 'File → Open Data Folder' and place the included ex5 there.

3

Apply this product

Refresh the Navigator or restart MT5, and apply it to the target chart. Place only 1 instance of the same product on 1 chart.

4

Check the settings and display

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.

7

Settings

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.

ADX period

Name shown on screen
ADX Period
Input name
InpADXPeriod
Default
14
Allowed range
1–1000 bars
Description
Period of the exponentially smoothed ADX. At 1, ADX becomes 0 or 100, and the Slow condition is never met.

ADX lower limit

Name shown on screen
Lower ADX Level
Input name
InpLowerLevel
Default
25
Allowed range
0 or more, less than the upper limit
Description
Bars above this value are Slow candidates. Exactly at the threshold is Fast.

ADX upper limit

Name shown on screen
Upper ADX Level
Input name
InpUpperLevel
Default
40
Allowed range
Greater than the lower limit and 100 or less
Description
Bars below this value are Slow candidates. At or above the upper limit is Fast.

Slow step

Name shown on screen
Slow SAR Step
Input name
InpSlowStep
Default
0.02
Allowed range
Greater than 0 and at most Slow Maximum
Description
Initial value and increment of the Slow SAR acceleration factor.

Slow maximum

Name shown on screen
Slow SAR Maximum
Input name
InpSlowMaximum
Default
0.2
Allowed range
At least Slow Step, 1 or less
Description
Maximum of the Slow SAR acceleration factor.

Fast step

Name shown on screen
Fast SAR Step
Input name
InpFastStep
Default
0.1
Allowed range
Greater than 0 and at most Fast Maximum
Description
Initial value and increment of the Fast SAR acceleration factor.

Fast maximum

Name shown on screen
Fast SAR Maximum
Input name
InpFastMaximum
Default
0.5
Allowed range
At least Fast Step, 1 or less
Description
Maximum of the Fast SAR acceleration factor. Slow/Fast are names of the setting sets; values are not swapped automatically by size.
8

Usage specifications

Forming bar and recalculation

While 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.

Conditions for comparison

Compare with the same symbol, timeframe, settings and loaded history. The display is not a forecast of future price movement.

Start of display

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.

Provisional start of SAR

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.

Only 1 instance of the same product on 1 chart

This manual describes adding 1 instance of this product to 1 chart. To compare different settings, use separate charts.

For on-screen display only

This product shows calculation results through plot buffers and does not place orders. It does not guarantee profit or future price movement.

9

Troubleshooting and usage notes

No dots appear

At least 3 bars are required. It also waits for the start of the ADX drawing and the SAR start position.

Nothing is shown after entering inputs

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.

10

Technical information and specification details

ADX calculation

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.

SAR calculation and update

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.

Display

Slow SAR is shown as DarkOrange dots and Fast SAR as DodgerBlue dots. There is no notification function.