Type/to search
Built-in Functions
Global
Log
Market
Trade
Account
Futures
Exchange
IO
Network
Storage
Threads
TA
Talib
Overlap Studies
Momentum Indicators
Volume Indicators
Volatility Indicators
Cycle Indicators
Price Transform
Statistic Functions
Math Transform
talib.ACOS
talib.ASIN
talib.ATAN
talib.CEIL
talib.COS
talib.COSH
talib.EXP
talib.FLOOR
talib.LN
talib.LOG10
talib.SIN
talib.SINH
talib.SQRT
talib.TAN
talib.TANH
Math Operators
Pattern Recognition
OS
Structures
Built-in Variables and Constants
Conventions
Exchanges

Rounds each element up to an integer (Vector Ceil).

talib.CEIL(inReal)

Examples

Round the close prices of the latest K-lines up.

javascript
function main() { var records = exchange.GetRecords() if (!records) return var ret = talib.CEIL(records) Log(ret) }
python
import talib def main(): records = exchange.GetRecords() if not records: return ret = talib.CEIL(records.Close) Log(ret)

Returns

TypeDescription

numeric array

Results, the same length as the input.

Arguments

NameTypeRequiredDescription

inReal

Record array / numeric array

Yes

K-line array (close prices are used) or numeric array; in Python, pass a numeric array such as records.Close.

See Also

Remarks

TA-Lib equivalent: CEIL(Records[Close]) = Array(outReal).