Skip to content

Running Max (since reset)

Flow · Counter

Running Max (since reset) node on the canvas

Highest value seen since the last reset (or since the start if unwired). Wire an entry pulse to Reset for 'highest-high since entry' — the anchor for trailing stops and MFE.

Running Max Since tracks the highest value seen since the last reset. Point it at price and pulse the reset on entry, and it gives you the highest high since you entered — the anchor behind trailing stops and maximum-favourable-excursion (MFE) analysis.

How it works

Two inputs: a value series and a reset signal. It carries forward the running maximum, updating it whenever the value exceeds the previous high. When reset fires, the maximum restarts from the current bar. If reset is left unwired, it's the high since the very start of the series. Lookahead-free.

When to use it

Use it whenever you need "the best it's reached since X": the peak since entry for a trailing stop, the highest high of a move for a Fibonacci or MFE measure, or the running high of an indicator since a regime change. Pairing it with an entry pulse on reset is the standard way to build a from-entry trailing anchor.

Example

Trailing-stop anchor: wire high into value and your entry pulse into reset, so Running Max Since holds the highest high since entry. Subtract an ATR buffer from it and feed that into the Tester's stop input for an ATR trailing stop.

Tips & gotchas

  • Reset unwired → high since the start of the whole series.
  • Ratchets up only — it never falls until a reset (that's the point of a trailing anchor).
  • Mirror of Running Min Since for lows.

Inputs

Socket Type What to wire in
Value series / bars Series to track. BARS uses close.
Reset (optional) signal When true, restart the extreme from this bar's value. Optional.

Outputs

Output Type Plots as Description
run max series Line · sub-pane Running maximum since the last reset.

Reference auto-generated from the block catalog · category Flow.