Blue line and direction dots
Draws the average of lows in the upward state and the average of highs in the downward state.
Uses the averages of highs and lows as boundaries and shows the average line or dots according to the direction state.
Blue line and direction dotsDraws the average of lows in the upward state and the average of highs in the downward state.
Close used for comparisonThe close of the previous bar is the default. It can also be switched to the close of the current bar.
Gray dotted lineOptionally shows the other average. It is not a fill.
Compares the default settings and a settings change example on a screen with only this product applied.
Example shown: 1-minute chart (M1). This is an example for explaining the display. 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.
Draws the average of lows in the upward state and the average of highs in the downward state.
The close of the previous bar is the default. It can also be switched to the close of the current bar.
Optionally shows the other average. It is not a fill.
Uses the averages of highs and lows as boundaries and shows the average line or dots according to the direction state.
Takes the simple average of highs and of lows over Period bars each. Each bar always uses the average up to 1 bar before it.
If the specified close is above the average of highs, the state is upward; if below the average of lows, it is downward. Between the averages or equal to a boundary, the previous state is kept.
The average of lows in the upward state and the average of highs in the downward state. Whether the line rises or falls is separate from the direction state. There is also no guarantee that the line always stays away outside the candlesticks.
With Close of the previous bar, the inputs used for that bar's display are all available when the bar starts. With Close of the current bar, the direction and the side drawn can change during the bar because of the forming close.
First, with the default settings, check the meaning of the lines and dots and the initial blank area.
Check the step method, the number of bars for the average, the close used and the drawing style in the Inputs tab.
Align the settings and timeframe, and observe closed bars and the forming bar separately.
| Included file | Purpose / location |
|---|---|
| TRI_Gann_HiLo_Plus.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 4 inputs. Change them on the Inputs tab of the properties. The English item names and input names defined in the source are shown together.
InpPeriodInpCloseInpDrawAsInpShowOtherNo values appear on the oldest Period bars. From the next bar on, nothing is shown until the close crosses either the upper or the lower average and the first direction is set.
With normal price updates, the value does not change during the latest bar. However, this does not mean it stays unchanged through recalculation caused by additions or corrections to past data or by settings changes.
You can compare the gap between the 2 averages. Other Average is not a fixed name for the usual high average / low average; the side that is drawn switches with the direction.
It calculates on the chart's timeframe. It does not specify a higher timeframe, send notifications, place orders, trade automatically or modify stop orders.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
In addition to preparing Period bars, it waits until the direction is first decided. If the close stays between the averages, the line may not appear yet.
Check Draw As and Show the Other Average. The default is the blue line only.
The averages are found from past bars. Even if the positions of the line and the candlesticks swap when the price moves sharply, that alone does not show a calculation error.
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.
hp = SMA of highs over Period bars up to the previous bar, lp = the same SMA of lows. If the selected close c is greater than hp, the direction is +1; if smaller than lp, the direction is −1; otherwise the previous direction is kept. The initial direction is 0.
With normal OHLC data, the previous close is within the high-low range of the same bar. Combining Period = 1 with Close of the previous bar does not decide the first direction, and nothing is displayed. This is not a lack of history but a calculation property of this combination.
With direction +1, Activator/Rising = lp and Other Average = hp. With direction −1, Activator/Falling = hp and Other Average = lp. With direction 0, there are no values. Series hidden by the drawing style still keep their internal calculated values.
Line and Dots can also be selected. The published images are an example with the default line only and an example with dots plus the other average. They do not show a result checked on a screen displaying both lines and dots.
The window name and the actual display in the Data Window, and how it looks during long runs on real symbols or with long history, are not yet verified. Input names and calculation conditions are described based on the implementation.