Check the moving averages and RSI
The upper side requires LWMA>SMA and RSI at or above the upper level. The lower side requires LWMA<SMA and RSI at or below the lower level.
Shows each bar where the 4 conditions of moving average order, RSI, Stochastic and MACD all line up. Not only the first 1 bar: while the agreement continues, a mark is placed on every bar.
Check the moving averages and RSIThe upper side is LWMA>SMA and RSI at or above the upper level. The lower side is LWMA<SMA and RSI at or below the lower level.
Stochastic and MACD also agreeThe upper side is %K>%D and MACD>signal line; the lower side is the reverse for both. It is not a method that uses whether MACD is positive or negative as a condition.
Marks on every bar that agreesOnly green up arrows and red down arrows are shown. The lines of the 4 indicators are internal calculations, and no lines are drawn in a separate window.
Compares the default settings and a settings change example on a screen with only this product applied.
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.
The upper side requires LWMA>SMA and RSI at or above the upper level. The lower side requires LWMA<SMA and RSI at or below the lower level.
The upper side requires %K>%D and MACD>signal line; the lower side requires the opposite of both. The sign of MACD (positive or negative) is not used as a condition.
Only green up arrows and red down arrows are shown. The lines of the 4 indicators are internal calculations; no lines are drawn in a separate window.
Shows each bar where the 4 conditions of moving average order, RSI, Stochastic and MACD all line up. Not only the first 1 bar: while the agreement continues, a mark is placed on every bar.
The conditions for a green up arrow are: (1) LWMA>SMA of the close, (2) RSI of the close>=RSI Upper Level, (3) Stochastic %K>%D, (4) MACD>MACD signal line. For a red down arrow: (1) LWMA<SMA, (2) RSI<=RSI Lower Level, (3) %K<%D, (4) MACD<signal line. The RSI comparison includes a value equal to the level; the other 3 comparisons do not include equality. An arrow is shown only when all 4 are met on the same bar. A mismatch on the previous bar is not required, and neither a change of direction nor a crossover just before is required. Because the up and down MA conditions cannot both hold at once, up and down marks never appear on the same bar.
Does not evaluate until all values can be calculated. With the default settings, evaluation is possible from the 29th bar of the history. It does not wait to collect the 52 bars of MACD Slow; the EMA starts from the first close in the history. If the conditions do not match, there is no mark even from the 29th bar onward. The start position changes with the settings. The latest bar is subject to Closed Bars Only. Because the full history is recalculated every time, corrections to the history or a change of start position may change past values and marks.
LWMA gives the latest close a weight equal to the period and uses weights down to 1 for older bars. SMA is the simple average of the close. MACD is the difference of 2 EMAs started from the oldest close, and the signal line is its SMA.
RSI starts from the simple averages of the gains and losses over the first period; after that, it multiplies the previous average by (period−1), adds the current change and divides by the period. Stochastic %K is the sum of (close − lowest value) over Slowing bars divided by the sum of the ranges, as a percentage; %D is its SMA.
Load the history in MT5, and first apply only this product to the chart.
The upper side requires LWMA>SMA and RSI at or above the upper level. The lower side requires LWMA<SMA and RSI at or below the lower level.
Put the default and the change example on separate charts, with the same symbol, timeframe and history.
Closed Bars Only defaults to true. With false, marks on the forming bar can change, so distinguish them from the record on closed bars.
| Included file | Purpose / location |
|---|---|
| TRI_Four_Indicator_Agreement_Marks.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. When comparing different settings, using separate charts makes checking easier.
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.
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.
InpFastLwmaInpSlowSmaInpRsiPeriodInpRsiUpperInpRsiLowerInpKPeriodInpDPeriodInpSlowingInpPriceFieldInpMacdFastInpMacdSlowInpMacdSignalInpClosedBarsOnlyInpTriBrandShowInpTriBrandCornerInpTriBrandXInpTriBrandYIt does not place, modify or close orders. There are no notifications or emails either.
Does not evaluate until all values can be calculated. With the default settings, evaluation is possible from the 29th bar of the history. It does not wait to collect the 52 bars of MACD Slow; the EMA starts from the first close in the history. If the conditions do not match, there is no mark even from the 29th bar onward. The start position changes with the settings. The latest bar is subject to Closed Bars Only. Because the full history is recalculated every time, corrections to the history or a change of start position may change past values and marks.
Up arrows are drawn 10 pixels below the low, and down arrows 10 pixels above the high. This is not a fixed distance in price.
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.
This product draws only the up and down arrows. If you want to check DI, ADX, moving averages and so on as values separately, display each indicator separately and check its calculation method and settings.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
Does not evaluate until all values can be calculated. With the default settings, evaluation is possible from the 29th bar of the history. It does not wait to collect the 52 bars of MACD Slow; the EMA starts from the first close in the history. If the conditions do not match, there is no mark even from the 29th bar onward. The start position changes with the settings. The latest bar is subject to Closed Bars Only. Because the full history is recalculated every time, corrections to the history or a change of start position may change past values and marks.
Check the ranges and combinations in the settings. Keep the inputs for unused methods within range as well.
The conditions for a green up arrow are: (1) LWMA>SMA of the close, (2) RSI of the close>=RSI Upper Level, (3) Stochastic %K>%D, (4) MACD>MACD signal line. For a red down arrow: (1) LWMA<SMA, (2) RSI<=RSI Lower Level, (3) %K<%D, (4) MACD<signal line. The RSI comparison includes a value equal to the level; the other 3 comparisons do not include equality. An arrow is shown only when all 4 are met on the same bar. A mismatch on the previous bar is not required, and neither a change of direction nor a crossover just before is required. Because the up and down MA conditions cannot both hold at once, up and down marks never appear on the same bar.
Use separate charts, or adjust the brand position and margins. The images can also be checked at full size.
With MACD Fast=Slow, MACD Signal=1, Stochastic %D=1, or both of the 2 MA periods at 1, the required strict comparisons cannot hold. Even if values are within range, marks do not necessarily appear.
A mark is drawn on every bar where the conditions agree. Zoom in horizontally to check the position on each bar. There is no setting to thin out arrows or show only the first one.
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.
The conditions for a green up arrow are: (1) LWMA>SMA of the close, (2) RSI of the close>=RSI Upper Level, (3) Stochastic %K>%D, (4) MACD>MACD signal line. For a red down arrow: (1) LWMA<SMA, (2) RSI<=RSI Lower Level, (3) %K<%D, (4) MACD<signal line. The RSI comparison includes a value equal to the level; the other 3 comparisons do not include equality. An arrow is shown only when all 4 are met on the same bar. A mismatch on the previous bar is not required, and neither a change of direction nor a crossover just before is required. Because the up and down MA conditions cannot both hold at once, up and down marks never appear on the same bar.
Does not evaluate until all values can be calculated. With the default settings, evaluation is possible from the 29th bar of the history. It does not wait to collect the 52 bars of MACD Slow; the EMA starts from the first close in the history. If the conditions do not match, there is no mark even from the 29th bar onward. The start position changes with the settings. The latest bar is subject to Closed Bars Only. Because the full history is recalculated every time, corrections to the history or a change of start position may change past values and marks.
Only MT5 itself and this manual. Account authentication, external indicators and DLLs are not required.
With the oldest bar in history as index 0, evaluation starts at max(Fast LWMA−1, Slow SMA−1, RSI Period, %K Period+Slowing+%D Period−3, MACD Signal−1). This is 28 for the default and 14 for the change example, so evaluation is possible from the 29th bar and the 15th bar respectively. Whether the conditions hold is a separate matter from how the latest bar is handled.
For RSI, if the average loss is 0 and there is an average gain, the value is 100; if both are 0, it is 50. If the total Stochastic range is 0, %K=100. The MACD EMAs start from the oldest close and do not wait for Fast/Slow Period bars.
Fast<Slow for periods and RSI Upper>Lower are not enforced. Only the RSI comparison includes equality. The other comparisons are strict, and even small differences count in the condition check.