Blue dots
The MACD main line rises, and the lower end of the Heiken Ashi body is strictly above the buy-side level. The dot is placed on the buy-side level.
Shows levels derived from the Stochastic as dots, only on bars where the change in MACD and the position of Heiken Ashi line up.
Calculate the reference levelIt searches for past Stochastic crossings and finds the buy-side and sell-side levels from the relationship with the close and the highs and lows of the previous 2 bars.
Filter by 2 conditionsIf the MACD main line rises and the Heiken Ashi body is above the buy level, the dot is blue. If it falls and the body is below the sell level, it is orange-red.
Place a dot on the levelThe height of the dot is a calculated price. It is not an order or fill price, and dots also continue on bars where the conditions continue.
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 MACD main line rises, and the lower end of the Heiken Ashi body is strictly above the buy-side level. The dot is placed on the buy-side level.
The MACD main line falls, and the upper end of the Heiken Ashi body is strictly below the sell-side level. The dot is placed on the sell-side level.
These include bars where the level has not been formed, the conditions do not agree or values are equal, or the latest bar excluded by default. They are not a neutral trading stance or an exit instruction.
It uses whether MACD increased or decreased from the previous bar, not whether it is positive or negative, and narrows the display by the position of the Heiken Ashi body relative to the level.
Using the direction of the Stochastic, it searches for crossings in the same direction from 2 bars back to Search bars back. Using the low and high of the crossing bar and the bar before it as the basis, it builds the level from conditions such as the close passing through, and makes it follow the highs and lows of the previous 2 bars.
For the MACD main line, which is the short EMA of the close minus the long EMA, the difference from the previous bar is used. Even when the main line is below zero, a rise can meet the blue condition.
The Heiken Ashi close is the average of the 4 prices, and the Heiken Ashi open is the average of the previous Heiken Ashi open and close. It requires the whole body formed by the open and close, not the upper or lower wick, to be on one side of the level.
It does not draw the MACD line, the Stochastic lines, the Heiken Ashi bars themselves or the levels on bars that do not meet the conditions. If you want to see these, cross-check with a separate display.
Apply it to an MT5 price chart and load enough history. First, look at the blue and orange-red dots on closed bars.
The vertical axis is price. A dot is a calculated level, not a mark offset from the candlestick by a fixed pixel width.
Distinguish the 3: the MACD main line's difference from the previous bar, the Heiken Ashi body and the level. Orders, spreads and execution conditions cannot be known from this display.
In the example, only %K Period is set to 14. Compare with the same history, symbol and timeframe, and when including the latest bar, distinguish its fluctuations.
| Included file | Purpose / location |
|---|---|
| TRI_Momentum_Stop_Entry_Level.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 11 inputs. Change them on the Inputs tab of the properties. The English item names and input names defined in the source are shown together.
InpFastEMAInpSlowEMAInpKPeriodInpDPeriodInpSlowingInpSearchInpClosedBarsOnlyInpTriBrandShowInpTriBrandCornerInpTriBrandXInpTriBrandYThe names buy side and sell side indicate the direction of the conditions. It does not place orders, set stop losses or manage open positions in the account. Because the actual spread is not added, it does not guarantee a price at which an order can be filled.
Bars where the MACD change is 0, or where the edge of the Heiken Ashi body equals the level, are not drawn. While the conditions continue, a dot is drawn on each bar. This is not a function that shows only the bar of a new crossing.
Calculates the states of the EMA, Heiken Ashi and levels from the past. If past history is added or corrected, values can change through recalculation.
Loading is refused if EMA, %K, %D or Slowing is outside 1 to 1000, or Search is outside 2 to 1000. Loading is not refused because of which of Fast and Slow is larger, or because they are equal.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
Check the history, the periods and Search. When Fast and Slow are the same, or %D is 1, no dots appear even though the settings are valid. Even with enough history, stretches that do not meet the conditions are blank.
This is how Closed Bars Only=true works. Changing it to false includes dots on the unclosed bar too, but they change until the bar closes.
It looks at the whole Heiken Ashi body, not only the normal close. It also uses the change from the previous bar, not whether MACD is positive or negative.
A dot is a calculated reference level that does not include spreads or execution conditions. This product does not place orders and does not give trading instructions.
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 display has 2 series, the buy-side level and the sell-side level. Both are in price units and drawn as round dots. The internal MACD, Heiken Ashi and level states are not displayed.
With the oldest bar as 0, %K can be calculated from K+Slowing−2 and %D from K+Slowing+D−3. For each of the Slowing bars, close−period low and period high−period low are summed, and the ratio × 100 is %K. A denominator of 0 gives 100. %D is a simple average. A crossing includes equality on the previous bar side and is strict on the current bar.
Level calculation starts from the bar after %D starts. Buy and sell levels are set by conditions such as the close passing above or below the basis of a past crossing. The opposite side may disappear because of the immediately preceding internal signal. The buy side follows the maximum with the lower of the lows of the previous 2 bars, and the sell side follows the minimum with the higher of the highs. An empty basis is compared internally as the maximum value, so whether a crossing exists within the search also affects the state.
EMA starts from the oldest close with coefficient 2/(period+1). The MACD difference from the previous bar starts from bar 1. The Heiken Ashi close is the average of the 4 prices from bar 1, and the first Heiken Ashi open is the average of the 4 prices of bar 0. After that, it is the average of the previous Heiken Ashi open and close. There is no guarantee that the starting values match the standard indicator of the same name or other implementations.
The periods alone do not determine the first bar with a dot. It has to wait until a past same-direction crossing, a formed level, and the MACD and Heiken Ashi conditions all line up. Meeting the required number of bars does not mean a dot always appears.