Home/Dovee/Function reference

on

Read a series from another timeframe (multi-timeframe).

Reference/Language/Language

expr on 1h

Evaluates the expression on a higher timeframe. Uses only the last fully closed higher-timeframe bar — never the in-progress HTF candle — so historical evaluation has no look-ahead bias. When the chart timeframe is finer, Dovee aggregates from chart candles. When the requested TF is finer than the chart (or not a clean multiple), Run fetches sibling candles for the same symbol. Common timeframes: 1m, 3m, 5m, 10m, 15m, 30m, 1h, 2h, 4h, 1D, 1W, 1M.

Return value

Series aligned to the chart bars

Note

  • Scripts still run on closed chart bars.
  • Trail stops and SL/TP hits use OHLC only — intrabar order is not known.

Example

trend = ema(close, 50) on 1h
rsiHigher = rsi(close, 14) on 15m
when close > trend and rsiHigher > 50
  buy

See also