HTF Candle Dock
- インディケータ
-
Yuxin Lyu
I build chart and volume tools for MetaTrader 5 — session volume profiles, order-flow style strength visuals, and lightweight manual trading panels. - バージョン: 2.3
HTF Candle Dock shows the most recent candles from higher timeframes on the right side of your current chart, using the same price scale as the bars you are trading.
It does not paint a historical strip of higher-timeframe candles along the time axis. Each timeframe is drawn as its own group, with the newest candle on the right of that group. The forming higher-timeframe candle updates live from your broker’s OHLC data.
This is a visual context tool. It does not place orders, and it does not generate buy or sell signals.
What you see
- Multiple higher timeframes at once (M15, M30, H1, H4, D1 by default; W1 is optional)
- Groups aligned to the right of the last bar, so they stay out of the way of your main price action
- Bullish and bearish colors you can change
- A compact timeframe label (15m, 30m, 1H, 4H, 1D, 1W) on one side of each group
- Automatic hiding of timeframes that are not higher than the current chart (for example, M15 will not appear on an H1 chart)
Installation
- Open MetaTrader 5 and log in to your MQL5 account in the terminal (Tools - Options - Community, or the upper-right account menu).
- Open the Market tab, search for HTF Candle Dock, and click Install.
- In Navigator, open Indicators - Market (or the Indicators folder where the product was installed).
- Drag HTF Candle Dock onto the chart you want to trade.
- Keep the default inputs for the first run, click OK, and check that the higher-timeframe groups appear on the right.
If the indicator is already on the chart and you change inputs, remove it from the chart and attach it again. MetaTrader can keep previously saved input values, and a simple “OK” may not apply new defaults.
To remove it: right-click the chart - Indicators List - select HTF Candle Dock - Delete.
Chart use
Recommended starting chart: a dark background, symbol such as XAUUSD, timeframe M5 or M15. The indicator works on any symbol and any chart period, as long as higher-timeframe data is available from your broker.
After you attach it:
- The overlay sits to the right of the last bar (80 pixels by default) and uses the same vertical price scale as the main chart.
- Each group is independent. The rightmost candle in a group is the current, still-forming candle of that timeframe and will change as new ticks arrive.
- Scroll, zoom, or change the chart scale as usual. The overlay redraws with a short delay so the chart stays responsive.
- If you switch the chart to a higher period, lower groups are hidden automatically. For example, on H1 you will still see H4 and D1, but not M15 or M30.
The labels are placed on one side only. The default Auto mode uses the top of the group when there is enough room, and moves the label to the bottom when the top would be clipped. You can lock the position to Top or Bottom in the inputs.
Because the labels live in the right-hand dock, they move with the higher-timeframe candles on the price scale and do not cover the main bars on the left.
Recommended starting settings
Use the shipped defaults first, then adjust only what you need:
- Timeframes: M15, M30, H1, H4, D1 on; W1 off
- Candle width: 13 pixels
- Gap inside a group: 4 pixels
- Gap between groups: 20 pixels
- Offset from the last bar: 80 pixels
- Anchor to last bar: true
- Show labels: true
- Label side: Auto
- Label font size: 12 points
- Bull color: teal (0,191,165)
- Bear color: red (255,68,68)
- Body transparency: about 85%
- Redraw delay: 50 milliseconds
If your broker chart already has a wide right margin, you can reduce the offset. If groups feel tight, increase the gap between groups. If labels still feel large or small on your screen, change Label font size (8–28 points). After any input change, remove the indicator and attach it again.
Parameters
Timeframes
- Show M15 / M30 / H1 / H4 / D1 / W1 — turn each group on or off. A group is drawn only when it is a higher timeframe than the current chart and data can be loaded.
Layout
- Candle width (px) — width of each overlay candle.
- Gap inside a group (px) — space between candles in the same timeframe.
- Gap between TF groups (px) — space between timeframe groups.
- Offset from last bar (px) — distance from the last main-chart bar to the first overlay candle.
- Anchor to last bar — when enabled, the dock follows the last bar; when disabled, it is placed from the right edge of the window.
Labels
- Show TF labels — show or hide the 15m / 30m / 1H / 4H / 1D / 1W text.
- Label side — Auto, Top, or Bottom. Auto picks the side with enough space, preferring the top.
- Label color — text color.
- Label font size (points) — text size in points, not tiny “pixel” values. 12 is the recommended default.
Colors
- Bull color / Bear color — body and wick colors.
- Body alpha (0–255) — body opacity. 217 is about 85% opaque, so the dock does not look heavy.
Performance
- Redraw debounce (ms) — wait time after chart changes before redrawing. 50 ms is a good balance between smoothness and CPU use. Increase it only if the chart feels busy.
Notes
- The overlay uses standard OHLC rates from your broker. Different brokers may have slightly different candle times or prices.
- This product does not show exchange order book or footprint data.
- It does not trade and it does not tell you when to enter or exit.
- If a higher-timeframe history is not available yet, that group is skipped until the terminal has downloaded the data. Open a chart of that period once, or wait for the terminal to sync, then re-attach the indicator.
Author
Developed by ChuckLv. This indicator is an original chart-context tool for MetaTrader 5.
