Alexander Trufanov
Alexander Trufanov
Just in case I forget it one more time: ``` #5 topic 1 #9 Chapter I #11 topic 2 #39 topic 3 ```
> I still need to calculate the minimal required number of datapoints for the indicators (with a given parameter-set), but this 0 instead of NaN problem makes it harder. Aren't...
It looks like not. Perhaps it'll be not so difficult to clone `abstract.Function()` from abstract.py to `abstract.Lookback()` or so that will do the same as `abstract.Function()` but for lookback functions?
Oh, there's a way to access a lookback values indeed: ``` from talib import abstract func = abstract.Function('CDL2CROWS') func.lookback >> 12 func = abstract.Function('HT_TRENDMODE') func.lookback >> 63 ```
Well, it seems to be a bug in wrapper. The `cdef int __ta_setOptInputParamReal(lib.TA_ParamHolder *holder, int idx, int value):` must be `cdef int __ta_setOptInputParamReal(lib.TA_ParamHolder *holder, int idx, double value):` in `_abstract.pxi`....
You may start with that https://github.com/TA-Lib/ta-lib/blob/master/src/ta_func/ta_CMO.c#L206
You need to learn how arrays in C are designed. `double*` is a pointer in memory to a first double element of an array. And you can't just divide array...
You are probably using ARRAY_REF. That's a template which is declared in ta_memory.h. And it's value is `type *name`. Which means ARRAY_REF(tempBuffer1); will be substituted by `ARRAY_VTYPE_REF(double, name)` and its...
I'll answer tomorrow.
> @trufanov-nok given the below psuedo code, how would you code it in talib? > > ``` > input length = 50; > rawRelVol = (volume - Average(volume, length)) /...