HTF Indicator
Computes an indicator on a larger timeframe (H4/D1), then feeds the value down to the primary TF — auto shift(1) prevents lookahead
When to use: Confirming the bigger-picture trend, e.g. trading H1 but checking that H4 EMA50 also points up (MTF confirmation, as used in "007")
Ports
out-value— The value of the most recently "closed" HTF bar (forward-filled down to the primary TF)
Params
htf— The larger timeframe (H4, D1, ...)kind— Indicator to compute: ema / sma / atr / adx / rsiperiod— Number of bars (counted on the HTF scale)source— Price to use (close/high/low/open)