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
Indicator Pair Signal Arrows
Choose 1 or 2 indicators from 9 kinds, and it records with arrows the places where conditions in the same direction line up on the same bar.
Indicator name: Indicator Pair Signal ArrowsMetaTrader 5Price chart
Combine conditions from the same timeframe and the same bar
Schematic diagram of how to read it. This is not an actual terminal screen.
1
Choose the indicatorsSelect the kinds with Indicator 1 and Indicator 2. The default is the MACD crossing and the MA slope.
2
Agreement on the same barIf the 2 are both up, an up arrow; if the 2 are both down, a down arrow. It is not a function that waits for a signal from a previous bar.
3
You can also use only 1If Indicator 2=None, the judgment uses Indicator 1 only. Indicator 1 cannot be set to None.
MT5, price chartClosed bars only by defaultChoose from 9 kinds
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.
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 settingsInpIndicator1 = MACD / InpIndicator2 = Moving Average
The default is an example that combines the crossing of the MACD main line and signal line with a condition that the slope of EMA 5 exceeds 10 points. Green and red arrows appear scattered only where these match on the same bar.View the screen in detail at full size
This example changes Indicator 1 to Bollinger Bands and Indicator 2 to None. Only the band condition remains, and on this screen the arrows increase. Because both the kind of indicator and the combination differ, this is not a comparison of only the effect of reducing confirmation conditions. Some down arrows at the top edge are cut off.View the screen in detail at 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
Direction and color
A green up arrow is an upward condition and a red down arrow is a downward condition. They are shown 10 pixels below the low and 10 pixels above the high.
Not necessarily a state in the same direction
MACD and others use the moment of crossing, MA uses a slope that exceeds the threshold, and Bands uses the range and close of the same bar. The conditions differ by kind.
Distinguish the latest bar
With Closed Bars Only=true, nothing is drawn on the latest forming bar. With false, the latest bar is also included, and arrows appear and disappear.
3
What it measures
The arrows are a record of the selected calculation conditions. It is not a majority vote of all 9 kinds; it uses 1 or 2 signals. The indicator values and the bands themselves are not drawn.
Agreement of 2 signals
Each indicator returns up, down or no condition. 1 arrow is placed when both are up or both are down on the same bar; nothing is drawn if they point in different directions or if one has no condition.
Shared settings
Price is shared by MA, MACD, OsMA, RSI, CCI and Bands. MACD and OsMA share the periods of the short EMA, long EMA and MACD signal SMA, and these cannot be set separately.
When choosing 2 of the same kind
Inputs for the same kind are shared, so the same calculation is checked 2 times. It is not a function that combines 2 of the same indicator with different periods.
1 chart only
The timeframe is that of the chart it is applied to. There are no functions to choose a higher timeframe or another symbol, or to hold signals from many earlier bars.
Kind
Upward condition / downward condition
MA
The difference from the previous bar exceeds +threshold / falls below −threshold. A slope, not a crossing.
MACD, OsMA, Stochastic, RSI, RVI
The main line strictly crosses the signal line from below to above / from above to below. Not counted if the previous bar or the judged bar is equal.
CCI
Passes −100, 0 or 100 upward / downward. Counted even if the previous bar equals the level, as long as the judged bar crosses it. Equality on the judged bar is not counted.
ADX
On a bar where ADX is below the specified level, +DI strictly crosses −DI upward / downward. It is not a condition that requires ADX to be high.
Bands
Up if the low is below the lower line or the middle line and the close is above that line. Down if the high is above the upper line or the middle line and the close is below that line. If both, down takes priority.
10 points and 10 pips are not necessarily the same.
The price difference is the input value × the symbol's Point. With typical FX 5-digit or 3-digit quotes, 10 points is 1 pip; with 4-digit or 2-digit quotes, it corresponds to 10 pips. For gold, indices and the like, do not judge by what is called a pip; check with the symbol's Point and the price difference.
4
Situations for reading the display
Default up arrow
Indicator
MACD shows an upward crossing of the main line and signal line, and the rise of EMA 5 also exceeds the threshold.
Cross-check
Check whether both held on the same judged bar.
Check
Cross-check the settings, the price movement and the surrounding arrows.
Caution
It is not a buy order or a guarantee of a future rise.
No mark even though there is a crossing
Indicator
The 2nd indicator's condition may not hold, or equal values may be included before or after the crossing.
Cross-check
Check Indicator 2 and the equality conditions of each indicator.
Check
If it is the latest bar, also check Closed Bars Only.
Caution
Lines being above or below each other alone is not treated as a crossing.
Using Bands only
Indicator
Looks at the position of the low and high relative to the bands and to the close of the same bar.
Cross-check
The middle line is also a judgment target, and a crossing from the previous bar is not required.
Check
Check the rule that a bar where both up and down hold becomes a down arrow.
Caution
It is not a mark for breaking through only the outer bands.
Marks in the same direction continue
Indicator
MA, Bands and others can satisfy the conditions on consecutive bars.
Cross-check
Distinguish whether the selected indicator is a crossing type or a state type.
Check
Read the condition on each bar, and when counting the number of marks, also compare with the same settings.
Caution
It is not a function that keeps only the first 1 bar.
5
Steps for checking the display
1
Apply with the defaults
Apply it to an MT5 price chart. Load the required history and first check the combination of MACD and MA.
2
Check the kinds and shared inputs
Check Indicator 1 and 2, Price, and the shared MACD/OsMA periods. Even if you choose 2 of the same kind, the periods cannot be separated.
3
Check the unit and judgment timing
MA Slope Threshold is in points. To exclude the latest bar, set Closed Bars Only=true.
4
Compare under the same conditions
Match the symbol, timeframe and history, and compare the results of changing inputs. The settings change example is not a recommended setting.
6
Installation and checking the package contents
Included file
Purpose / location
TRI_Indicator_Pair_Signal_Arrows.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.
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 27 inputs. Change them on the Inputs tab of the properties window. The English item names and input names defined in the source are shown together.
Indicator 1
English item name
Indicator 1
Input name
InpIndicator1
Default
MACD
Allowed range
MA / MACD / OsMA / Stochastic / RSI / CCI / RVI / ADX / Bollinger Bands
Description
Default MACD. The selection list also contains None, but choosing None for Indicator 1 causes loading to be refused.
Indicator 2
English item name
Indicator 2 (None = Indicator 1 alone)
Input name
InpIndicator2
Default
Moving Average
Allowed range
The 9 kinds of Indicator 1, or None
Description
Default Moving Average. With None, Indicator 1 only. Choosing the same kind gives the same calculation with the same settings.
Shared price
English item name
Price (MA, MACD, OsMA, RSI, CCI, Bands)
Input name
InpPrice
Default
Close
Allowed range
Close / Open / High / Low / Median / Typical / Weighted
Description
The price for MA, MACD, OsMA, RSI, CCI and Bands. Default Close. Stochastic uses a separate Price Field, and RVI and ADX use their own prices such as the high and low.
MA period
English item name
MA Period
Input name
InpMAPeriod
Default
5
Allowed range
Integer 1 to 500
Description
Default 5. The period of the average used for the MA slope.
MA method
English item name
MA Method
Input name
InpMAMethod
Default
EMA
Allowed range
SMA / EMA / SMMA / LWMA
Description
Default EMA. Applies only to the MA slope. It does not change the MACD EMAs, the SMA of each signal line or the Stochastic smoothing method.
MA slope threshold
English item name
MA Slope Threshold (points)
Input name
InpMASlopePoints
Default
10
Allowed range
Finite number from 0 to 100000 (points)
Description
Default 10. A signal is given when the MA's difference from the previous bar strictly exceeds threshold × Point. Even with 0, a change of 0 is not a signal.
Short EMA for MACD and OsMA
English item name
MACD / OsMA Fast EMA
Input name
InpMACDFast
Default
12
Allowed range
Integer 1 to 500
Description
Default 12. Shared by MACD and OsMA. It does not have to be shorter than the long EMA.
Long EMA for MACD and OsMA
English item name
MACD / OsMA Slow EMA
Input name
InpMACDSlow
Default
26
Allowed range
Integer 1 to 500
Description
Default 26. If it is set to the same period as the short EMA, MACD and OsMA become 0 and their crossing signals do not appear.
MACD signal SMA
English item name
MACD / OsMA Signal SMA
Input name
InpMACDSignal
Default
9
Allowed range
Integer 1 to 500
Description
Default 9. The SMA of the MACD main line. It is also used for the signal line subtracted from the main line in the OsMA calculation.
OsMA signal line SMA
English item name
OsMA Signal Line SMA
Input name
InpOsMASignal
Default
9
Allowed range
Integer 1 to 500
Description
Default 9. Makes an SMA of OsMA itself and judges the crossing of OsMA and this line. This is different from the OsMA zero crossing.
Stochastic %K period
English item name
Stochastic %K Period
Input name
InpStochK
Default
8
Allowed range
Integer 1 to 500
Description
Default 8. The period for finding the price range.
Stochastic %D period
English item name
Stochastic %D Period
Input name
InpStochD
Default
3
Allowed range
Integer 1 to 500
Description
Default 3. The SMA period of the smoothed %K.
Stochastic Slowing
English item name
Stochastic Slowing
Input name
InpStochSlowing
Default
3
Allowed range
Integer 1 to 500
Description
Default 3. The sum of the distances from each bar's close to the bottom of the range is divided by the sum of the ranges.
Stochastic price range
English item name
Stochastic Price Field
Input name
InpStochPrice
Default
Low/High
Allowed range
Low/High / Close/Close
Description
Default Low/High. Chooses between the high/low range and the close range. It is separate from the shared Price.
RSI period
English item name
RSI Period
Input name
InpRSIPeriod
Default
8
Allowed range
Integer 1 to 500
Description
Default 8. Smooths the rises and falls of the shared Price.
RSI signal SMA
English item name
RSI Signal SMA
Input name
InpRSISignal
Default
5
Allowed range
Integer 1 to 500
Description
Default 5. Judges the crossing of RSI with its SMA. It is not a crossing of a fixed level such as 50.
CCI period
English item name
CCI Period
Input name
InpCCIPeriod
Default
14
Allowed range
Integer 1 to 500
Description
Default 14. Uses the average and mean absolute deviation of the shared Price. With period 1, CCI becomes 0 and no signal appears.
RVI period
English item name
RVI Period
Input name
InpRVIPeriod
Default
10
Allowed range
Integer 1 to 500
Description
Default 10. Uses the ratio of weighted bodies to ranges. The signal line weights and their length of 4 bars are fixed.
ADX and DI period
English item name
ADX Period
Input name
InpADXPeriod
Default
14
Allowed range
Integer 1 to 500
Description
Default 14. Sets the coefficient 2/(period+1) for the exponential smoothing of DI and ADX.
ADX upper level
English item name
ADX Level (signal below it)
Input name
InpADXLevel
Default
25
Allowed range
Finite number from 0 to 100
Description
Default 25. DI crossings are adopted only when ADX is below this value. Equal values do not qualify. With 0, no signal appears.
Bands period
English item name
Bands Period
Input name
InpBandsPeriod
Default
20
Allowed range
Integer 1 to 500
Description
Default 20. Calculates the SMA and population standard deviation of the shared Price.
Bands deviation multiplier
English item name
Bands Deviation
Input name
InpBandsDev
Default
2
Allowed range
Finite number from 0 to 10
Description
Default 2. The width from the SMA to the upper and lower bands. Even with 0, the conditions relative to the middle line remain.
Show on closed bars only
English item name
Closed Bars Only
Input name
InpClosedBarsOnly
Default
true
Allowed range
true / false
Description
Default true; excludes the latest forming bar. With false, the latest bar is also drawn, and arrows appear and disappear as the price changes.
Brand and QR
English item name
Show Trilogy brand and QR code
Input name
InpTriBrandShow
Default
true
Allowed range
true / false
Description
Default true. The indicator calculation does 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
Default is bottom left.
Horizontal margin
English item name
Brand horizontal offset (pixels)
Input name
InpTriBrandX
Default
10
Allowed range
Integer (pixels)
Description
Default 10. Negative numbers are treated as 0, and values above 4000 as 4000.
Vertical margin
English item name
Brand vertical offset (pixels)
Input name
InpTriBrandY
Default
10
Allowed range
Integer (pixels)
Description
Default 10. Negative numbers are treated as 0, and values above 4000 as 4000.
8
Usage specifications
Display only
There are no functions for automatic orders, exits, emails, sounds or alerts. Arrows are not trading instructions.
Closed bars and recalculation
Calculates every time in order from the past and does not read later bars. Adding to or correcting the history or changing settings can also change past results. Distinguish this from changes on the unclosed bar.
Differences in calculation method
Even with the same name as a standard indicator or another product, the arrows do not match if the starting value of the average, the signal line or the handling of equal values differs. An exact match is not assumed.
Brand
Displays Produced by Trilogy Inc. and a QR code to https://www.trgy.co.jp/. There is no account authentication. Following the background color in white/black is a function of the brand text and does not change the arrow colors.
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 arrows appear
Check that Indicator 1 is not None, and check the history and input ranges. If the 2 indicators do not agree at the same time, no marks appear.
It touched but does not count as a crossing
MACD, OsMA, Stochastic, RSI, RVI and DI must be strictly on opposite sides on both the previous bar and the judged bar. Merely passing through an equal value does not qualify. CCI follows a separate rule.
The MA condition became stricter
MA Slope Threshold is not a pip setting that adjusts automatically to the number of price digits. Check the actual price difference of 10 points.
Loading is refused because of an unused input
Range checks such as 1 to 500 are also applied to the periods of indicators you have not selected. Check all inputs, not only the selected items.
No marks even though ADX is high
ADX is a below-the-limit condition. It is not a setting that extracts strong states at or above the level.
Too many or overlapping arrows
When MA or Bands is selected, marks are also placed on bars where the condition continues. Check the positions by zooming in on the chart and with the full-size image, and do not link the number of marks to performance.
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
Crossing and agreement formulas
For main line A and signal line B, A[t]>B[t] and A[t−1]<B[t−1] is up, and the reverse is down. CCI checks L=−100,0,100 in order: CCI[t]>L and CCI[t−1]≤L is up, and the reverse (< and ≥) is down. The first level that applies is used. If Indicator 2=None or it has the same nonzero direction as Indicator 1, the arrow is drawn at the low or high of the judged bar.
MA, MACD and OsMA
MA uses the selected one of 4 methods. EMA starts from the oldest price, and SMA, SMMA and LWMA start once the period's number of bars is available. The first SMMA value is the SMA. MACD=short EMA−long EMA, MACD signal=SMA(MACD). OsMA=MACD−MACD signal, OsMA signal=SMA(OsMA). All use the shared Price.
Stochastic, RSI and CCI
Stochastic is the sum of (close−period low) over Slowing bars ÷ the sum of the period ranges × 100, and 100 if the denominator is 0. %D is its SMA. RSI starts with the average of the changes over the first period's bars and is then Wilder-smoothed; if both changes are 0, it is 50. CCI=(Price−SMA)/(0.015×mean absolute deviation), and 0 if the denominator is 0.
RVI, ADX and Bands
RVI weights (close−open) and (high−low) of 4 bars by 1, 2, 2, 1, sums each over the RVI period, and takes their ratio; if the denominator is 0, the numerator is used. The signal is the 1, 2, 2, 1 weighted average of RVI. DI smooths the percentage of DM/True Range with coefficient 2/(P+1), and ADX is smoothed with the same coefficient, starting at 0. Bands are the SMA of the shared Price ± deviation multiplier × population standard deviation.
Required history and ranges
A crossing needs valid main line and signal line values on both the current and previous bars. A signal SMA with period 1 is the same as the main line, so that combination never crosses. All periods are 1 to 500. The relative size of the short and long EMAs is not restricted; if they are the same, there are no MACD/OsMA signals. The inputs of unselected indicators are also checked. Even when the number of history bars is sufficient, a signal is not guaranteed to occur.
Package contents and displayed values
The ZIP contains only 1 item, the MT5 indicator itself, and the manual is opened from the product page on the site. No external indicators, DLLs or authentication files are needed. Display buffer 0 is the low for up arrows, and 1 is the high for down arrows. The 10-pixel display offset is not added to the buffer price values. The brand position input also does not change the indicator formulas.