TREND, MOVING AVERAGES & STRUCTURE

DeMark pivots

A support and resistance pair built from yesterday's candle, with a twist: the level shifts depending on whether yesterday closed up or down.

spec id: demark_pivotoutputs: pp · r1 · s1

What does DeMark pivots measure?

A support and resistance pair built from yesterday's candle, with a twist: the level shifts depending on whether yesterday closed up or down.

How is DeMark pivots calculated?

Take yesterday's open, high, low and close. If yesterday closed below its open, weight the low more heavily; if it closed above, weight the high more heavily; if unchanged, weight the close. From that blended number come `pp`, one resistance (r1) and one support (s1). Uses only the PREVIOUS candle.

Written by reading the engine’s real computation, not a textbook — where the two differ, the page describes what actually runs.

How do I use DeMark pivots in a bot?

In the builder, add an indicator of type demark_pivot. Its output series — pp, r1, s1 — become operands you can compare in any entry or exit rule. The engine grades the whole rule honestly: real fills, no look-ahead, half the history held back.

Related indicators

Or browse all 158 indicators in the full library.

Build a bot that trades on DeMark pivots — the first backtest is free.

Run a free backtest