Check the point
300 points is not 300 pips. Check the size of the symbol's point.
Draws 2 horizontal lines each above and below the close of the current chart bar, at a near distance and a far distance. All 4 are guide lines that move when the price moves; they are not fixed stop-loss or take-profit prices.
Near linesPrice ± Near Distance × point. Default is 100 points.
Far linesPrice ± Far Distance × point. Default is 300 points.
Follows the priceWhen the reference price moves, the lines move in the same direction. The upper and lower sides are not predicted directions.
Compares the default settings and a settings change example on a screen with only this product applied.
Example shown: 15-minute chart (M15). This is an example to explain the display. The settings change example is not a recommended value. Details can be checked in the full-size view.
300 points is not 300 pips. Check the size of the symbol's point.
The price positions of the 4 lines are also updated as the price changes.
Use it to visualize distances. Manage order prices separately.
Shows distances of the specified number of points above and below the current price.
Reads the close of the current chart bar. The lines are distances above and below that price; they do not start from the current day's open or the entry price.
For a symbol whose point is 0.00001, 300 points = 0.00300 and 100 points = 0.00100. If the point is 0.01, 300 points = 3.00. Do not enter values by substituting the definition of a pip.
The basic layout is 2 lines each above and below. With the same distances they overlap, and with 0 they overlap the reference price, so the number of visible lines can decrease.
Check the price scale and the size of the point.
Initially Near is 100 and Far is 300. Both are in points.
Distinguish the near and far lines by color and line style.
After the price moves, read the new line positions. Keep them separate from order settings.
| Included file | Purpose / location |
|---|---|
| TRI_Price_Distance_Lines.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. Place only 1 instance of the same product on 1 chart.
First check with the default values. Changes and removal are done from the chart's 'Indicators List'.
This product does not require DLL permission or enabling automated trading. When removed, this product's drawings are cleared.
There are 6 inputs. Change them on the Inputs tab of the properties. The English display name and the input name in the code are shown together.
InpFarPointsInpNearPointsInpFarColorInpNearColorInpFarStyleInpNearStyleAlthough the names mean near and far, the input values are not automatically reordered by size. If Near is set larger than Far, the names and the visual inner/outer positions are reversed.
The lines are updated when the chart bar's price can be obtained. While it cannot be obtained, earlier lines may remain. Do not mistake lines during market closure for new prices.
The lines are on-screen objects; they do not place or modify Stop Loss or Take Profit. They do not send notifications either.
If you add the same product to the same chart more than once, the drawings overwrite each other, or deleting one also removes the display of the other. To use different settings at the same time, use separate charts.
It has no value buffers and shows its output as lines and text on the chart. It does not place trade orders or issue alerts. It does not guarantee profit or market direction.
Check for confusion between points and pips. For 5-digit FX and similar, if 1 pip = 10 points, 300 points is 30 pips.
Check whether Near and Far are equal or set to 0.
This product is a distance guide that follows the price. Manage fixed order prices and manual horizontal lines separately.
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.
Far upper = price + Far × point, Far lower = price − Far × point. Near uses the same formula. The price is the close of the current chart bar.
4 horizontal lines, line width 1. There are no output buffers. They move on price updates, and are also redrawn by a timer when waiting for data or when lines are missing.