Converts 4 prices
Converts the open, high, low and close with the same basis and the same unit into 1 candle.
Candles in which the open, high, low and close are converted into the distance from the average of recent median prices. 1 scale unit is 0.2 times the average range; it is not a price scale.
Read the position of 0It is the average of the median prices of the latest Period bars, including that bar.
Check the unit of the scale0.2 times the average of high − low. It is not a range that includes gaps.
Separate color and positionThe color compares that bar's open and close. The vertical position is the distance from the average.
Compares the default settings and a settings change example on a screen with only this product applied.
Published example: M1. This is an example to explain the display. The example with changed settings is not a set of recommended values. Details can be checked in the actual-size view. Also check the vertical axis and units of the separate window. Except for products with a fixed scale, the scale changes with the settings and the displayed range.
Converts the open, high, low and close with the same basis and the same unit into 1 candle.
Green if the close is above the open, red if below, and gray if equal. It is not a comparison with the previous bar.
There are separate reasons: insufficient history, an average range of 0, and being outside the display frame. Do not distinguish them by the blank alone.
Because each bar has a different basis and unit, the up-and-down order of converted candles is not necessarily the same as that of prices.
The position of the average of (high + low) ÷ 2 for each of the latest Period bars. It includes the latest bar.
The average of (high − low) over the latest Period bars multiplied by 0.2. The gap from the previous bar's close is not added.
For each of the 4 prices, calculates (price − average of median prices) ÷ 1 scale unit. The values have no price unit.
±6, ±8, ±10 and ±12 are positions 1.2, 1.6, 2.0 and 2.4 times the average range away from the basis. They are a distance scale and do not show future price movement.
The default is Period 5. The period appears in parentheses in the window name.
The lower window shows converted values. Do not read them directly as the price scale above.
The color shows the relation between the open and close, and the height including wicks shows the ratio of the range.
Going from 5 to 10 changes the aggregation range for the basis and unit. Compare them, including the fact that some parts are outside the frame.
| Included file | Purpose / location |
|---|---|
| TRI_Range_Scaled_Price_Candles.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'.
Using this product does not require allowing DLLs. When removed, this product's drawings are cleared.
There is 1 input. Change it on the Inputs tab of the properties. The English item name and input name defined in the source are shown together.
InpPeriodThe indicator sets the vertical axis to −15 to +15. Parts outside it are not visible. Lengthening the period may increase the number of bars that fall entirely outside.
It does not draw the first Period−1 bars, when the number of bars is less than Period, or in sections where high = low on all of the most recent Period bars. In the last case, this is because the conversion unit becomes 0.
Updates to the high or low change the reference and the unit, so all 4 values, including the open, change. The color is determined by the close and open at that moment, so it may change during the bar.
Because the average range is small, the converted values swing widely. If all of the previous Period−1 bars had a range of 0 and only that bar has a range, the height is 5×Period. With Period 7 or more it does not fit within the window height.
The window name is followed by the period, and the 4 values after that are open, high, low and close, in that order, with 2 decimal places. This product does not call notifications.
This manual describes adding 1 instance of this product to 1 chart. To compare different settings, use separate charts.
Displays, marks and notifications are records of calculation results. They do not direct trading decisions and do not guarantee future price movements.
Check in order the required number of bars, the recent high − low, and the possibility that the candle is outside the display frame. Do not decide from the blank alone that it is not calculated.
0 can appear on bars that are not drawn. On the other hand, the value is also 0 when the actual price equals the median price average. Check the drawing together with the required number of bars; do not distinguish them by the heading alone.
Period changes the conversion basis and unit. The color is determined only by the bar's own open and close, so with the same price data the color rule does not change even if the period is changed.
If the Experts tab shows Range Scaled Price Candles: Period must be 2 to 1000., return Period to within the range.
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.
n = Period, m = average of (high + low) ÷ 2 over the latest n bars, u = 0.2 × average of (high − low) over the latest n bars. Each drawn value is (corresponding price − m) ÷ u. When u = 0, no value is produced.
Converted high − converted low is 5 × that bar's range ÷ the average range over the period. If that bar's range equals the average, the height is 5.
−15 to +15 is the display frame; it is not a process that clips the calculated values to those upper and lower limits. The distance level lines are also not forecasts of the next price movement.
With the same bar data and settings, the value is determined from the latest Period bars, including that bar. The forming bar changes, but the calculation does not use later bars to rebuild past converted values.