talib.HT_SINE
Calculates the Hilbert Transform - SineWave and returns the sine and lead sine.
talib.HT_SINE(inReal)Examples
Compute the Hilbert Transform - SineWave from the latest K-lines.
javascript
function main() {
var records = exchange.GetRecords()
if (!records) return
var ret = talib.HT_SINE(records)
// Output: [sine array, lead sine array]
Log(ret)
}
python
import talib
def main():
records = exchange.GetRecords()
if not records:
return
ret = talib.HT_SINE(records.Close)
# Output: (sine array, lead sine array)
Log(ret)Returns
| Type | Description |
array | Two-dimensional array: [sine array, lead sine array] (a tuple in the same order in Python). |
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: HT_SINE(Records[Close]) = [Array(outSine),Array(outLeadSine)].