Created
August 25, 2015 17:13
-
-
Save samuelhei/eac5c905390c999a28e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var talib = require("talib"); | |
module.exports = function(name, inReal, optInTimePeriod, callback) { | |
talib.execute({ | |
name: name, | |
startIdx: 0, | |
endIdx: inReal.length - 1, | |
inReal: inReal, | |
optInTimePeriod: optInTimePeriod | |
}, function(result) { | |
if(typeof(result.result) == 'undefined') { | |
callback([]); | |
} | |
else{ | |
callback(result.result.outReal); | |
} | |
}); | |
}; |
Author
samuelhei
commented
Aug 25, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment