MT5 indicators← Scaled EMA Alignment Line 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

Scaled EMA Alignment Line

Shows the order of 4 EMAs with scaled-up periods as a green, red or gray line on the price chart.

Indicator name: Scaled EMA Alignment LineMetaTrader 5Main chart

How to read the display

1Green is EMA1>2>3>42Not the EMA of the higher timeframe itself3Blue dots are a combined order and RSI condition
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Green is EMA1>2>3>4Red is the reverse order, and gray if neither.

2

Not the EMA of the higher timeframe itselfThe EMA periods of the chart bars are scaled up by a multiplier. Prices of the higher timeframe are not read.

3

Blue dots are a combined order and RSI conditionA dot is drawn in rising order with RSI at or below the lower limit, and in falling order with RSI at or above the upper limit.

Display of calculated resultsMT5 onlyNot a buy or sell instruction
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
Base timeframe for the multiplier / Upper Time Frame (Current = use the multiplier)
InpUpperTF
Current → M5
RSI upper limit / RSI Upper Level
InpRSIUpper
70 → 60
RSI lower limit / RSI Lower Level
InpRSILower
30 → 40

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 settingsInpUpperTF = Current / InpRSIUpper = 70 / InpRSILower = 30
Scaled EMA Alignment Line default settings
Default settings. Red is the reverse order, and gray if neither.
View the screen in detail at full size
Scaled EMA Alignment Line default settings (full size)
Settings change exampleInpUpperTF = M5 / InpRSIUpper = 60 / InpRSILower = 40
Scaled EMA Alignment Line settings change example
Change example: Upper Time Frame (Current = use the multiplier) = M5, RSI Upper Level = 60, RSI Lower Level = 40.
View the screen in detail at full size
Scaled EMA Alignment Line settings change example (full size)

Example shown: M1. This is an example for explaining the display. The published images are screens from before the brand display was added. The calculation and drawing conditions are the same, and the packaged version has display settings for the brand text and the QR code. 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

Green is EMA1>2>3>4

Red is the reverse order, and gray if neither.

Not the EMA of the higher timeframe itself

The EMA periods of the chart bars are scaled up by a multiplier. Prices of the higher timeframe are not read.

Blue dots are a combined order and RSI condition

A dot is drawn in rising order with RSI at or below the lower limit, and in falling order with RSI at or above the upper limit.

3

What it measures

Shows the order of 4 EMAs with scaled-up periods as a green, red or gray line on the price chart.

How the calculation works

With Current, Period Multiplier is applied to the 4 EMA periods. Otherwise, the multiplier is the integer part of the selected timeframe's seconds÷the chart timeframe's seconds (minimum 1). The default of 4 gives periods of 40, 80, 200 and 400. In rising order, the line is drawn at the highest high of the Range Bars bars ending Range Bars Back bars ago+Offset; in falling order, at the lowest low−Offset; otherwise at the close. The RSI dot is at the current low in rising order and at the current high in falling order.

Conditions and exceptions

The 4 periods are not rearranged automatically. With equal periods, the strict order condition may not hold. The line is blank until the longest scaled period and the high/low reference range are available. Selecting a higher timeframe can make the number of required bars very large. Selecting a shorter timeframe gives a multiplier of 1. RSI uses the close of the chart bars, and its period is not scaled up. The dots and lines are not instructions for orders or stop losses.

4

Situations for reading the display

Read lines, bars and colors separately

Indicator
Red is the reverse order, and gray if neither.
Cross-check
Cross-check the values and settings at the same time point.
Check
Read separately which value is compared with what to give each color.
Caution
Colors and marks alone do not determine the trading direction.

Compare setting differences

Indicator
Change example: Upper Time Frame (Current = use the multiplier) = M5, RSI Upper Level = 60, RSI Lower Level = 40.
Cross-check
Use the same symbol, timeframe and history.
Check
Keep the conditions the same, and check the relation between the changed inputs and the display.
Caution
The published settings are not recommended values.

Check blanks and flat sections

Indicator
The 4 periods are not rearranged automatically. With equal periods, the strict order condition may not hold. The line is blank until the longest scaled period and the high/low reference range are available. Selecting a higher timeframe can make the number of required bars very large. Selecting a shorter timeframe gives a multiplier of 1. RSI uses the close of the chart bars, and its period is not scaled up. The dots and lines are not instructions for orders or stop losses.
Cross-check
Check the required history and whether the display is enabled or disabled.
Check
Distinguish no value from a value of 0.
Caution
If it does not update even when the conditions are met, check the connection and the inputs.
5

Steps for checking the display

1

Apply with the defaults

Load the history in MT5, and first apply only this product to the chart.

2

Check the role of the display

Red is the reverse order, and gray if neither.

3

Comparing settings

Put the default and the change example on separate charts, and compare them with the same symbol, timeframe and history.

4

Distinguish the forming bar

The value of the forming bar changes with price updates. Read it separately from closed bars.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Scaled_EMA_Alignment_Line.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. When comparing different settings, using separate charts makes checking easier.

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 17 inputs. Change them on the Inputs tab of the properties. The English item names and input names defined in the source are shown together.

Base timeframe for the multiplier

English item name
Upper Time Frame (Current = use the multiplier)
Input name
InpUpperTF
Default
Current
Allowed range
Current / timeframes selectable in MT5
Description
Current means a manual multiplier. This is not a function that references the actual prices or closed bars of the selected higher timeframe.

Manual multiplier

English item name
Period Multiplier
Input name
InpMultiplier
Default
4
Allowed range
Integer 1 to 100
Description
Used in the calculation only with Current.

EMA period 1

English item name
EMA Period 1
Input name
InpMA1
Default
10
Allowed range
Integer 1–1000
Description
Period before scaling up.

EMA period 2

English item name
EMA Period 2
Input name
InpMA2
Default
20
Allowed range
Integer 1–1000
Description
Period before scaling up.

EMA period 3

English item name
EMA Period 3
Input name
InpMA3
Default
50
Allowed range
Integer 1–1000
Description
Period before scaling up.

EMA period 4

English item name
EMA Period 4
Input name
InpMA4
Default
100
Allowed range
Integer 1–1000
Description
Period before scaling up.

High/low reference bars

English item name
Range Bars
Input name
InpRangeBars
Default
5
Allowed range
Integer 1–500
Description
Range that decides the position of the line.

Bars to shift the high/low range back

English item name
Range Bars Back
Input name
InpRangeShift
Default
1
Allowed range
Integer 0 to 500
Description
0 gives a range that includes the current bar; the default 1 gives a range ending at the previous bar.

Line offset

English item name
Line Offset (points)
Input name
InpOffsetPoints
Default
20
Allowed range
0 to 100000 (points)
Description
Added to the highest high and subtracted from the lowest low.

RSI dots

English item name
Show the RSI Dots
Input name
InpShowRSIDots
Default
true
Allowed range
true / false
Description
Switches only the display.

RSI period

English item name
RSI Period
Input name
InpRSIPeriod
Default
12
Allowed range
Integer 1–500
Description
RSI period of the close.

RSI upper limit

English item name
RSI Upper Level
Input name
InpRSIUpper
Default
70
Allowed range
0 to 100, not below the lower limit
Description
In falling order, a dot at the high if RSI is at or above this value.

RSI lower limit

English item name
RSI Lower Level
Input name
InpRSILower
Default
30
Allowed range
0 to 100, not above the upper limit
Description
In rising order, a dot at the low if RSI is at or below this value.

Brand and QR

English item name
Show Trilogy brand and QR code
Input name
InpTriBrandShow
Default
true
Allowed range
true / false
Description
Displayed with true. Calculated values do not change.

Brand position

English item name
Brand position (chart corner)
Input name
InpTriBrandCorner
Default
Bottom left
Allowed range
Top left / Bottom left / Bottom right / Top right
Description
The default is bottom left.

Horizontal margin

English item name
Brand horizontal offset (pixels)
Input name
InpTriBrandX
Default
10
Allowed range
Integer (pixels)
Description
Negative values are treated as 0, and values above 4000 are treated as 4000.

Vertical margin

English item name
Brand vertical offset (pixels)
Input name
InpTriBrandY
Default
10
Allowed range
Integer (pixels)
Description
Negative values are treated as 0, and values above 4000 are treated as 4000.
8

Usage specifications

Display only

It does not place, modify or close orders. There are no notifications or emails either.

History and initial values

Values on the forming bar are updated. Differences in data provider, symbol, timeframe and history start position affect the values and initial values.

Display units

Read it on the main chart's price axis. If the edges of the band go off screen depending on the display range, adjust the vertical axis.

Brand display

Shows Produced by Trilogy Inc. and a QR code to https://www.trgy.co.jp/. When the same medium is used on the same chart, the display is shared. There is no account authentication.

For on-screen display only

The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.

9

Troubleshooting and usage notes

No display / blank partway

The 4 periods are not rearranged automatically. With equal periods, the strict order condition may not hold. The line is blank until the longest scaled period and the high/low reference range are available. Selecting a higher timeframe can make the number of required bars very large. Selecting a shorter timeframe gives a multiplier of 1. RSI uses the close of the chart bars, and its period is not scaled up. The dots and lines are not instructions for orders or stop losses.

The input is not accepted

Check the ranges and combinations in the settings. Inputs for methods not in use must also be within the allowed range.

Values differ from those with other settings

With Current, Period Multiplier is applied to the 4 EMA periods. Otherwise, the multiplier is the integer part of the selected timeframe's seconds÷the chart timeframe's seconds (minimum 1). The default of 4 gives periods of 40, 80, 200 and 400. In rising order, the line is drawn at the highest high of the Range Bars bars ending Range Bars Back bars ago+Offset; in falling order, at the lowest low−Offset; otherwise at the close. The RSI dot is at the current low in rising order and at the current high in falling order.

Displays overlap

Use separate charts, or adjust the brand position and margins. The images can also be checked at full size.

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

Calculation and reference range

With Current, Period Multiplier is applied to the 4 EMA periods. Otherwise, the multiplier is the integer part of the selected timeframe's seconds÷the chart timeframe's seconds (minimum 1). The default of 4 gives periods of 40, 80, 200 and 400. In rising order, the line is drawn at the highest high of the Range Bars bars ending Range Bars Back bars ago+Offset; in falling order, at the lowest low−Offset; otherwise at the close. The RSI dot is at the current low in rising order and at the current high in falling order.

Handling of initial values and exceptions

The 4 periods are not rearranged automatically. With equal periods, the strict order condition may not hold. The line is blank until the longest scaled period and the high/low reference range are available. Selecting a higher timeframe can make the number of required bars very large. Selecting a shorter timeframe gives a multiplier of 1. RSI uses the close of the chart bars, and its period is not scaled up. The dots and lines are not instructions for orders or stop losses.

Package contents and dependencies

Only MT5 itself and this manual. Account authentication, external indicators and DLLs are not required.