MT5 indicators← Step Band Position 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

Step Band Position

Builds 3 types of stepped references from the price range and displays their relative positions as 2 lines or as difference bars. Closed-bar cross marks and notifications are optional.

Indicator name: Step Band PositionMetaTrader 5Separate window

Read the line positions and the record of crosses

Read the line positions and the record of crossesPrice range → 3 stepped referencesGold: minimum-width side / blue: middle-width sideCross: closed-bar record
Schematic diagram of how to read it. This is not an actual terminal screen.
1

2 linesGold is the minimum-width reference and blue is the middle-width reference, each converted relative to the band of the maximum-width side.

2

0, 0.5 and 1References corresponding to the bottom, middle and top of the band. They are not upper or lower limits of the value.

3

Marks and notificationsRecords a swap in the relative position of the 2 lines on a closed bar. It is not a function that shows orders or positions held.

Default: 2 linesValues not limited to 0 to 1Marks and notifications OFF by default
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
Width method
InpStepSource
Weighted range (sum / period) → ATR
Width calculation period
InpPeriod
10 → 14
Width factor
InpMultiplier
1 → 0.75
Period for searching the minimum and maximum
InpLookback
500 → 300
Closed-bar cross marks
InpShowCrossMarks
false → true

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 settingsInpStepSource = Weighted range (sum / period) / InpPeriod = 10 / InpMultiplier = 1 / InpLookback = 500 / InpShowCrossMarks = false
Step Band Position default settings
WATR 10, multiplier 1, Lookback 500. The top scale label and the 1.0 scale label overlap. 1 is the upper edge of the reference band, not an upper limit.
View the screen in detail at full size
Step Band Position default settings (actual size)
Settings change exampleInpStepSource = ATR / InpPeriod = 14 / InpMultiplier = 0.75 / InpLookback = 300 / InpShowCrossMarks = true
Step Band Position settings change example
Changed to ATR 14, factor 0.75, Lookback 300 and cross marks ON. Here too, the top edge and the 1.0 scale mark overlap. Notifications remain OFF.
View the screen in detail at full size
Step Band Position settings change example (actual size)

Published example: M1. This is an example to explain the display. The example with changed settings is not a set of recommended values. Details can be checked in the actual-size view. Also check the vertical axis and units of the separate window. Except for products with a fixed scale, the scale changes with the settings and the displayed range.

2

How to read it in 30 seconds

Roles of the colors

Gold is Min-Step Position and blue is Mid-Step Position. The colors distinguish the series and do not mean rising or falling. The header is also in this order.

Difference display

Position Difference in Difference is the gold value − the blue value. Green for 0 or above, red for below 0. The header shows only the difference, and the mark values are not shown. The only auxiliary line is 0.

Meaning of the marks

Light blue when gold moves above blue, magenta when it moves below. They are drawn only on closed bars.

3

What it measures

Compares stepped references built from 3 different widths, using the same band as the yardstick.

Price range method

WATR is high − low weighted more heavily for newer bars, and ATR is the simple average of True Range, which also includes the difference from the previous close. Changing the method changes the values, but ATR is not always smaller.

The 3 widths

The factor is applied to the minimum and maximum of the price range within Lookback and to their middle value. A stepped reference is built from each, and the other 2 are converted with a band centered on the maximum-width reference.

Positions 0, 0.5 and 1

0 = bottom of the maximum-width band, 0.5 = middle, 1 = top. The gold and blue lines can go outside that band. Position is a relative position and does not mean orders or positions held.

Start of drawing

With Period as P and Lookback as L, the first candidate is bar P + L − 1 for WATR and bar P + L for ATR. The default is bar 509, and the change example bar 314. No value is drawn on bars where the width used as the denominator is 0.

Crosses and equal values

On bars where the 2 lines are equal or cannot be calculated, the previous side is kept. A closed bar that then moves to the opposite side is a cross. Becoming equal alone produces neither a mark nor a notification.

4

Situations for reading the display

It went beyond 1

Indicator
The relative position is outside the reference band.
Cross-check
1 is not a fixed upper limit.
Check
Check Price Basis and the calculation series.
Caution
The automatic scale of the vertical axis changes with the displayed range.

The line is not drawn

Indicator
Possible causes are insufficient history or a denominator width of 0.
Cross-check
Check the required number of bars and the price movement.
Check
Do not judge that the value is 0 from 0 in the header alone.
Caution
With a very small factor, rounding of numbers can also make the width 0.

The difference bars have no marks

Indicator
Cross marks are only for the Two Lines display.
Cross-check
Check Show Cross Marks and Display.
Check
Notification is a setting independent of the marks.
Caution
Even with Difference, turning notifications ON makes the indicator judge the cross conditions.
5

Steps for checking the display

1

Start with 2 lines

Check the gold and blue series and the 0, 0.5 and 1 references.

2

Secure the required history

A long Lookback requires many bars before drawing starts.

3

Check the change example

The 5 items method, period, factor, Lookback and marks are changed.

4

Separate marks and notifications

Marks are effective with Two Lines. Notifications are turned ON separately.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Step_Band_Position.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'.

Using this product does not require allowing DLLs. When removed, this product's drawings are cleared.

7

Settings

There are 8 inputs. Change them on the Inputs tab of the properties. The English display name and the input name in the code are shown together.

Width method

Name shown on screen
Step Source
Input name
InpStepSource
Default
Weighted range (sum / period)
Allowed range
WATR / ATR
Description
WATR is a weighted value of the high-low range, and ATR is the simple average of True Range.

Width calculation period

Name shown on screen
Source Period
Input name
InpPeriod
Default
10
Allowed range
1〜1000
Description
Used by both methods. ATR is calculated from the bar that has a previous close.

Width multiplier

Name shown on screen
Step Multiplier
Input name
InpMultiplier
Default
1
Allowed range
Greater than 0 and up to 100
Description
Applied to the widths of the 3 references. With an extremely small value, rounding may make it impossible to draw values.

Base price

Name shown on screen
Band Basis
Input name
InpPriceBasis
Default
Close
Allowed range
Close / High Low
Description
Close uses the close for both upper and lower. High Low uses the low for the upper candidate and the high for the lower candidate.

Period for searching the minimum and maximum

Name shown on screen
Range Lookback
Input name
InpLookback
Default
500
Allowed range
2〜2000
Description
The number of bars over which the minimum and maximum of the price range are searched.

Display method

Name shown on screen
Display
Input name
InpDisplay
Default
Two lines
Allowed range
Two Lines / Difference
Description
The relative positions of the 2 lines, or bars of the difference between them.

Closed-bar cross marks

Name shown on screen
Show Cross Marks
Input name
InpShowCrossMarks
Default
false
Allowed range
false / true
Description
Drawn only with Two Lines. The position of a mark is the value of the blue series.

Closed-bar cross notification

Name shown on screen
Alert on Closed-Bar Cross
Input name
InpAlertCross
Default
false
Allowed range
false / true
Description
Independent of the display method and of marks ON/OFF. With true, an English pop-up is shown.
8

Usage specifications

Difference between WATR and ATR

WATR's weights are divided by Period, not by their sum. This differs from a normal weighted average. ATR, on the other hand, also includes gaps from the previous close, so which of the two is larger depends on the price path.

Top scale label in the images

In the 2 images shown, the top of the automatic scale is close to 1, and the top value and the 1.0 value overlap. Use them as examples for viewing the shape of the lines and the marks. Check the exact scale on the chart you are using.

Do not treat marks as forecasts

Both marks and notifications are records of crossing conditions that have already been met. Values of the forming bar change, and there is no guarantee that they stay unchanged when recalculated after past history changes.

Notification timing

On a price update of a new bar, it evaluates the latest closed bar. Right after attaching or changing settings, it only records the time and does not send notifications for past conditions in bulk. Even if several bars advance, it does not replay notifications for every bar. The time in the message is the start time of the target bar.

Notifications and terminal settings

Notifications are English pop-ups. There is no email, push or custom sound file playback, but a sound may play depending on the notification settings in MT5. The notification time cannot be guaranteed while no price updates arrive.

The forming bar changes

On the latest bar, values and colors change with price updates. If the timeframe, the start of the history or past prices change, the recalculated values may also change.

Do not judge by the 0 in the header alone

Even for a line that is not drawn because the required history is insufficient, the separate window header may show 0 at the display precision (0.00 for RSI and MACD, 0.0000 for the transform bars, 0.000 for the step band). Check whether the line exists together with the number of bars required. Values of lines hidden by input are not shown in the header either.

Keep unused inputs within range too

Periods of unselected methods and similar inputs are also subject to the input range check. If out of range, it does not start, and a 1-line reason in English appears in the Experts tab.

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

Displays, marks and notifications are records of calculation results. They do not direct trading decisions and do not guarantee future price movements.

9

Troubleshooting and usage notes

Marks are not visible

Check Two Lines, Show Cross Marks=true and the closed-bar cross conditions. Marks are not drawn with Difference.

The header shows 0 but there is no line

There may be no value because of insufficient history or a width of 0. Check whether the line exists and the required number of bars.

No lines appear

Check where drawing starts in Chapter 3 and the input ranges in Chapter 7. Depending on the settings, a long history is required. Also distinguish valid lines from lines that have been hidden.

The settings are not accepted

Check the reason on the Experts tab in MT5. Set back within the allowed range not only the inputs of the method being displayed but also the inputs that are not in use.

The line does not look smooth

Check the line at actual size. The impression of the shape also changes with the screen zoom and the scale of the vertical axis.

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

WATR and ATR

WATR = Σ((high − low) × weight) ÷ P. The weights are 1 + 1/P, … from the oldest bar, and 2 on the newest bar. ATR is the P-bar simple average of max(high − low, |high − previous close|, |low − previous close|).

Step baseline

For each width s, creates an upper candidate a+2s and a lower candidate b−2s. With Close, a=b=close; with High Low, a=low, b=high. If the close goes above the previous upper line, the state becomes up; if it goes below the previous lower line, the state becomes down. In the up state the lower line is not lowered, and in the down state the upper line is not raised. The center is lower line+s in the up state and upper line−s in the down state.

Position formula

Let Lx be the center of the widest-width line and sx its width, with bottom B=Lx−sx and top T=Lx+sx. Gold=(center of the narrowest-width line−B)÷(T−B), blue=(center of the middle-width line−B)÷(T−B). If T−B is not positive, neither is drawn.

Crossover detection

Keeps the sign of the last gold−blue value that was not 0 and draws a mark on the closed bar where the sign reverses. Notifications cover the same crossovers, but no notifications for past bars are sent right after initialization.