Cookbook
Nearest book walls
Draw the nearest big resting levels (Pro data).
//@zscript 1
indicator("Book walls", overlay=true)
minSize = input.int(500, "Minimum size", minval=1)
plot(book.wall(book.side_bid, minSize), "Bid wall", color=color.green, style=plot.style_stepline)
plot(book.wall(book.side_ask, minSize), "Ask wall", color=color.red, style=plot.style_stepline)
How it works
A wall is a single price level with at least minSize resting. Walls can be pulled at any time, so treat them as information, not a promise.
Education only. Not financial advice. Examples are teaching samples, not trading results.
