Built-in Functions
Structures
Built-in Variables and Constants
Conventions
Exchanges
talib.CEIL
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
| Type | Description |
numeric array | Results, the same length as the input. |
Arguments
| Name | Type | Required | Description |
inReal |
| Yes | K-line array (close prices are used) or numeric array; in Python, pass a numeric array such as |
See Also
Remarks
TA-Lib equivalent: CEIL(Records[Close]) = Array(outReal).