VW Range Position
Measures, on a scale of 0 to 100, where a volume-weighted representative price lies within the range of recent price movement, fills the area between a fast line and a slow line, and shows it in a subwindow.
Volume-weighted price → position within the range → band between the fast and slow lines
Green bandThe fast line is above the slow line. The color shows which of the 2 lines is higher, and does not directly show a rise from the previous bar.
Red bandThe fast line is at or below the slow line. The color shows which of the 2 lines is higher, and does not directly show a fall from the previous bar. When they are equal, the width of the band is 0.
Height of the bandShows the position within the recent range. The higher it is, the closer to the upper side of the range.
MT5 display and examples of changed settings
Only the price chart and this product are shown. Compare the default settings and the example of changed settings with the same symbol, timeframe and display range.
View the screen in detail at full size
View the screen in detail at full size
Example shown: synthetic data, 1-minute timeframe (M1). This is not the price movement of an actual symbol. The changed settings are an example to show the difference, not recommended values. You can enlarge it from "View the screen at full size".
How to read it in 30 seconds
What it measures
Measures the position of the volume-weighted price
First, 1 bar at a time, it finds a representative price by multiplying the close by 2, adding the high and low, and dividing by 4. Next, it averages that representative price over the last few bars, using each bar's volume as the weight. Prices of bars with more volume are reflected more strongly. Then it expresses, from 0 to 100, where this weighted price lies between the minimum and maximum of a set number of recent bars. Finally, this position smoothed 1 time with a linear weighted average is the fast line, and the fast line smoothed 1 more time is the slow line, and the area between the 2 lines is filled.
Green band
The fast line is above the slow line. The color shows which of the 2 lines is higher, and does not directly show a rise from the previous bar.
Red band
The fast line is at or below the slow line. The color shows which of the 2 lines is higher, and does not directly show a fall from the previous bar. When they are equal, the width of the band is 0.
Strip height
Shows the position within the recent range. The higher it is, the closer to the upper side of the range.
When to use it in decisions
Read in the order "indicator → confirm with price → consider → conditions that do not apply". This is not a trading instruction; it is a way to organize the material for your decisions.
The band changed from red to green
- Indicator
- The state changed from the fast line being at or below the slow line to being above it. Check separately whether the value itself is rising or falling.
- Price
- Check on the price side as well whether the lows are rising.
- Consideration
- Cross-check against the price evidence and your trading plan made in advance.
- Exclusion condition
- Do not use the color change alone as a buy signal.
The band changed from green to red
- Indicator
- The state changed from the fast line being above the slow line to being at or below it. Check separately whether the value itself is rising or falling.
- Price
- Check on the price side as well whether the highs are falling.
- Consideration
- Cross-check against the price evidence and your trading plan made in advance.
- Exclusion condition
- Do not use the color change alone as a sell signal.
The band stays stuck at a high position
- Indicator
- The weighted price keeps staying in the upper side of the recent range.
- Price
- Check whether the price is staying in the recent high band.
- Consideration
- Cross-check against the price evidence and your trading plan made in advance.
- Exclusion condition
- Do not treat a continuing high position as evidence of overheating.
The band is thin and the color switches quickly
- Indicator
- The fast line and the slow line are close, and the change in position is not clear.
- Price
- See whether the price is moving back and forth in a narrow range.
- Consideration
- Cross-check against the price evidence and your trading plan made in advance.
- Exclusion condition
- Do not treat frequent color switching as grounds that the market has turned.
Actual decision steps
Choose the symbol and timeframe
Choose the symbol and timeframe, and confirm that at least the required number of bars of history are displayed.
Read the position relative to the reference
Read the height and color of the band against the dotted line at 50.
Cross-check against the price evidence
Check the same situation on the price chart as well, and compare it with the renewal of highs and lows.
Decide how to treat the current bar
On the current bar, both the value and the color move. Decide in advance whether to read on closed bars or to wait for the bar to close.
What to decide before entering
This product does not place or close orders. If you trade, decide your reasons, acceptable loss and exit conditions separately, and do not leave them to the indicator alone.
What to check while holding a position
Give priority to your plan made in advance and to the price movement. Do not postpone a stop-loss or exit just because the indicator moves up or down.
Installation and checking the package contents
| Included file | Location and purpose |
|---|---|
| TRI_VW_Range_Position.ex5 | The indicator itself for MetaTrader 5. Place it in MQL5/Indicators. |
| TRI_VW_Range_Position_Manual.html | The manual for this product. Open it in a browser. |
Extract the ZIP first. MT5 only. This product does not require placing a license file or account authentication. Use the files without renaming them.
Open the data folder
In MT5, select "File → Open Data Folder".
Place the indicator file
Place the included TRI_VW_Range_Position.ex5 in MQL5/Indicators.
Place it on a chart
Refresh the Navigator or restart MT5, and apply this product to a chart of the symbol and timeframe you want.
Check the settings and display
Check with the default settings first. To change them, open this product's properties from the Indicators List. For the required number of history bars and where it is displayed, see Chapters 7 and 8.
To remove it, select this product in the chart's Indicators List and delete it.
Settings
There are 2 calculation inputs. Open the properties from the Indicators List and change them there.
Bars for measuring the range
- Input name
- InpPeriod
- Default
- 10
- Allowed range
- An integer from 2 to 10000. Out of range, the indicator cannot be applied.
- Description
- Specifies over how many bars the minimum and maximum of the weighted price are taken. A larger value gives the position within a wider range.
Bars for the weighted average
- Input name
- InpAverage
- Default
- 5
- Allowed range
- An integer from 2 to 1000. Out of range, the indicator cannot be applied.
- Description
- Serves both as the number of bars weighted by volume and as the number of bars for smoothing the 2 lines. A larger value makes the band smoother, and the display also starts later.
Line color and width
- Default
- Green (LimeGreen) when the fast line is above the slow line, otherwise red (Crimson). The area between the 2 lines is filled with width 3, with a gray dotted line at 50.
- Where to change
- You can adjust it on the Colors tab of the properties.
- How to read
- Read the height and color of the band against the dotted line at 50.
Usage specifications
Where the display starts
Display starts from the bar after a number of bars equal to 3 times “weighted average count − 1” plus “range measurement count − 1” have passed. With the defaults, the first displayed bar is the 22nd bar counted from the oldest bar.
Volume used
It is the tick count recorded by MetaTrader 5. It is not the traded quantity, and how it appears differs by data provider. If the total tick count in the calculation window is 0, it switches to a simple average of the typical price.
Value range
Calculated with normal finite prices and a positive point, the position and the 2 smoothed lines are mathematically in the range 0–100. If the width is less than 1 point, the denominator is set to 1 point, so the value does not exceed 100 for this reason. Display rounding and tiny floating-point errors are a separate matter. The display range is not fixed.
Band color
Green if the fast line is above the slow line; red otherwise. When the values are equal, red is assigned, but the band width is 0 and it may not be visible. The color does not directly indicate a rise or fall from the previous bar.
Handling of the current bar
The current bar is recalculated each time the price or volume moves. When the bar closes, its value and color are also fixed.
Additions and corrections to history
If the data provider adds or corrects past bars, recalculation runs from that range.
When removing
Select this product in the Indicators List and delete it. This product has no recovery procedure using a license file.
Troubleshooting and usage notes
The band is not displayed
The number of bars displayed may be insufficient. Make the 2 numbers of bars smaller, or load the history and then check.
The band stays toward a low position
If the range within the period is less than 1 point, the denominator is 1 point. Small differences are not stretched to fill 0 to 100. If the range is 0, the position is 0.
The band is barely visible
When the fast line and the slow line are close, the band becomes thin. A larger number of bars for the weighted average makes a difference more likely to appear.
The values differ from another terminal
Tick counts differ depending on the data provider. Compare using the same history from the same provider.
The display does not change after changing the settings
If a value is outside the allowed range (range 2–10000, weighting 2–1000), this product is not applied.
Notes on use
- The indicator is information calculated from past and current prices. It does not guarantee profit, the future direction or the success of a trade.
- It does not place orders, close positions, send alerts or send email.
- Changing the settings, symbol or timeframe also changes the values. Distinguish changes in the current bar from recalculation caused by added or corrected history.
Technical information and specification details
Calculation approach and display specifications
It takes a volume-weighted average of the representative price, converts its position between the recent minimum and maximum into 0 to 100, applies 2 stages of linear weighted averaging to make a fast line and a slow line, and fills the area between them in different colors. To keep the denominator from becoming 0, the width of the range has a lower limit of 1 point. It uses 2 buffers for drawing plus 1 for color specification, and 4 internal buffers for calculation. It does not use other indicators, external libraries, communication or order functions.
| Item | Content |
|---|---|
| Version | 1.00 |
| Platform | MetaTrader 5 |
| Display | A band filled in green and red in a subwindow, gray dotted line at 50 |
| Unit | None (a position from 0 to 100) |
| Copyright notice | Trilogy Inc. |
Status of the general reading
The situations and steps on this page are examples of linking calculated values to observation of the price. They do not guarantee the future direction, full compatibility, non-repainting or a light calculation load.