Under the Hood
CEIL rounds each value up to the nearest integer (ceiling function). For example, 45.1 becomes 46, 45.9 becomes 46, and -45.1 becomes -45. This operation is useful for discretizing continuous indicator values, creating stepped levels, or rounding to ensure integer-based calculations. Unlike FLOOR which rounds down, CEIL always rounds toward positive infinity.
In Practice
Developers use CEIL for creating discrete price levels from continuous indicators, building whole-number thresholds in custom algorithms, or ensuring integer outputs for calculations requiring whole values. Useful for rounding indicator values to create stepped signals, converting fractional index values to whole numbers, or implementing grid-based trading levels. Combine with FLOOR for creating integer ranges or with indicator normalization to create discrete signal levels.
Build automated strategies using Vector Ceiling (Round Up) and hundreds of other indicators. Connect to your favourite exchange and let the bot execute trades 24/7 — no code required.