The checked building blocks

Every indicator on the marketplace is made from these blocks. Each one comes with a written proof that its value on a bar uses only that bar and earlier ones — never a later one. That proof is what the No repaint — proven badge on a listing rests on.

What this is

    What this is not

      How to read a block

      Proof
      Why it can’t see the future, written against Context’s code. i is the current bar, i-1 the bar before it. Names that start with _ are Context’s own helper functions.
      Future bars read
      How many later bars it uses. It must be 0 — a block that read even one could not be used in a listing.
      Looks back
      How many earlier bars it needs before its first value (its warm-up).
      Running
      Builds on its own previous value, like an EMA or a running total. It still never reads ahead.
      Resets each session
      Starts over at each day’s open, like VWAP.
      Loading the building blocks…