You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is my function with synchronize and can't seem to get it to wait. emaData returns undefined and then the "EMA Function Done." message hits after. What am I missing with the sync wrapper?
`sync(talib, "execute")
var emaData = sync.fiber(function(){
talib.execute({
name: "EMA",
startIdx: 0,
endIdx: series.length - 1,
inReal: series,
optInTimePeriod: 3
}, function (err, result) {
console.log("EMA Function Done.");
return result
});
return emaData
})
console.log(emaData)
`
The text was updated successfully, but these errors were encountered:
Not sure, but I think this project is dead -- been trying to use it with a few different async libraries and it just keeps failing. And considering the last commits to master were a year ago that's a good sign it's been abandoned just like most JS fads.
I am trying to wrap a function out of the talib library for the talib.execute(). Example code is https://github.com/oransel/node-talib/blob/master/examples/sma.js
Here is my function with synchronize and can't seem to get it to wait. emaData returns undefined and then the "EMA Function Done." message hits after. What am I missing with the sync wrapper?
`sync(talib, "execute")
var emaData = sync.fiber(function(){
talib.execute({
name: "EMA",
startIdx: 0,
endIdx: series.length - 1,
inReal: series,
optInTimePeriod: 3
}, function (err, result) {
console.log("EMA Function Done.");
return result
});
return emaData
})
console.log(emaData)
`
The text was updated successfully, but these errors were encountered: