Many traders treat yesterday's High, Low and Close as reference prices. The High and Low mark the edges of the previous day's range, where price was accepted or rejected, and the Close shows where the market settled. Today's price often reacts around these levels, so they are useful for spotting breakouts, reversals and targets.
The indicator reads the daily bars of the symbol and draws the levels for you. It does not use indicator buffers; it works with chart objects. Levels are rebuilt only when a new daily bar appears, not on every tick, so the indicator is very light on resources.
| Input | Default | Purpose |
|---|---|---|
| Levels | ||
| InpShowHigh | true | Show the previous day High |
| InpShowLow | true | Show the previous day Low |
| InpShowClose | true | Show the previous day Close |
| InpDaysBack | 3 | Number of days to draw (1 to 100). 1 draws only today's levels |
| InpExtendRight | true | Extend today's levels to the right of the last bar |
| Lines | ||
| InpHighColor | clrWhite | Color of the High line |
| InpLowColor | clrSilver | Color of the Low line |
| InpCloseColor | clrGray | Color of the Close line |
| InpLineStyle | STYLE_DASH | Line style of the High and Low levels |
| InpCloseStyle | STYLE_DOT | Line style of the Close level |
| InpLineWidth | 1 | Line width (1 to 5) |
| Labels | ||
| InpShowLabels | true | Show text labels (PDH, PDL, PDC) with the price |
| InpLabelColor | clrWhite | Color of the labels |
| InpLabelSize | 8 | Font size of the labels |

Fig. 1. PrevDayLevels on an H1 chart with InpDaysBack = 3 (black and white image per Code Base guidelines).
Position Tool - TradingView-style Long/Short position calculator
TradingView-style Long/Short position tool for MT5: drag the Entry, Stop and Target lines and get lot size, risk, reward, R:R and margin instantly.
MA Toolkit
MA Toolkit: a compact moving average indicator written from scratch. Choose SMA, EMA or LWMA for a fast and a slow line, see the fast line colored by its slope, and get optional crossover arrows, alerts and an info panel.
Risk Drift Audit: the Real Risk of Every Past Trade
Shows the risk every past trade really took (the loss at its stop loss as a % of the balance at entry) and how far a fixed lot drifted from the tested risk. Read-only.
MACD Signals
Indicator edition for new platform.