Under the Hood
FLOOR rounds each value down to the nearest integer (floor function). For example, 45.9 becomes 45, 45.1 becomes 45, and -45.1 becomes -46. This operation rounds toward negative infinity, creating stepped levels from continuous data. FLOOR is the complement to CEIL (which rounds up) and is useful for discretizing values, creating integer thresholds, or implementing grid-based calculations.
In Practice
Developers use FLOOR for creating discrete price levels, rounding indicator values down to whole numbers, or building grid-based trading systems. Useful for implementing stepped stop-loss levels, converting continuous indicators to discrete signals, or ensuring integer outputs in algorithms. Combine with CEIL to create integer range boundaries, or use for rounding down position sizes and order quantities. Essential for grid trading algorithms and discrete signal generation.
Build automated strategies using Vector Floor (Round Down) and hundreds of other indicators. Connect to your favourite exchange and let the bot execute trades 24/7 — no code required.