Skip to content

Commit ccf7fb1

Browse files
committed
talib: updating docs for new functions
1 parent 65dc03d commit ccf7fb1

File tree

2 files changed

+70
-6
lines changed

2 files changed

+70
-6
lines changed

talib/_func.pxi

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,19 @@ cdef np.ndarray make_int_array(np.npy_intp length, int lookback):
142142
@wraparound(False) # turn off relative indexing from end of lists
143143
@boundscheck(False) # turn off bounds-checking for entire function
144144
def ACCBANDS( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod=-2**31 ):
145-
""" ACCBANDS(high, low, close[, timeperiod=?])"""
145+
""" ACCBANDS(high, low, close[, timeperiod=?])
146+
147+
Acceleration Bands (Overlap Studies)
148+
149+
Inputs:
150+
prices: ['high', 'low', 'close']
151+
Parameters:
152+
timeperiod: 20
153+
Outputs:
154+
upperband
155+
middleband
156+
lowerband
157+
"""
146158
cdef:
147159
np.npy_intp length
148160
int begidx, endidx, lookback
@@ -585,7 +597,17 @@ def AVGPRICE( np.ndarray open not None , np.ndarray high not None , np.ndarray l
585597
@wraparound(False) # turn off relative indexing from end of lists
586598
@boundscheck(False) # turn off bounds-checking for entire function
587599
def AVGDEV( np.ndarray real not None , int timeperiod=-2**31 ):
588-
""" AVGDEV(real[, timeperiod=?])"""
600+
""" AVGDEV(real[, timeperiod=?])
601+
602+
Average Deviation (Price Transform)
603+
604+
Inputs:
605+
real: (any ndarray)
606+
Parameters:
607+
timeperiod: 14
608+
Outputs:
609+
real
610+
"""
589611
cdef:
590612
np.npy_intp length
591613
int begidx, endidx, lookback
@@ -3225,7 +3247,17 @@ def HT_TRENDMODE( np.ndarray real not None ):
32253247
@wraparound(False) # turn off relative indexing from end of lists
32263248
@boundscheck(False) # turn off bounds-checking for entire function
32273249
def IMI( np.ndarray open not None , np.ndarray close not None , int timeperiod=-2**31 ):
3228-
""" IMI(open, close[, timeperiod=?])"""
3250+
""" IMI(open, close[, timeperiod=?])
3251+
3252+
Intraday Momentum Index (Momentum Indicators)
3253+
3254+
Inputs:
3255+
prices: ['open', 'close']
3256+
Parameters:
3257+
timeperiod: 14
3258+
Outputs:
3259+
real
3260+
"""
32293261
cdef:
32303262
np.npy_intp length
32313263
int begidx, endidx, lookback

talib/_stream.pxi

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,19 @@ np.import_array() # Initialize the NumPy C API
99
@wraparound(False) # turn off relative indexing from end of lists
1010
@boundscheck(False) # turn off bounds-checking for entire function
1111
def stream_ACCBANDS( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod=-2**31 ):
12-
""" ACCBANDS(high, low, close[, timeperiod=?])"""
12+
""" ACCBANDS(high, low, close[, timeperiod=?])
13+
14+
Acceleration Bands (Overlap Studies)
15+
16+
Inputs:
17+
prices: ['high', 'low', 'close']
18+
Parameters:
19+
timeperiod: 20
20+
Outputs:
21+
upperband
22+
middleband
23+
lowerband
24+
"""
1325
cdef:
1426
np.npy_intp length
1527
TA_RetCode retCode
@@ -464,7 +476,17 @@ def stream_AVGPRICE( np.ndarray open not None , np.ndarray high not None , np.nd
464476
@wraparound(False) # turn off relative indexing from end of lists
465477
@boundscheck(False) # turn off bounds-checking for entire function
466478
def stream_AVGDEV( np.ndarray real not None , int timeperiod=-2**31 ):
467-
""" AVGDEV(real[, timeperiod=?])"""
479+
""" AVGDEV(real[, timeperiod=?])
480+
481+
Average Deviation (Price Transform)
482+
483+
Inputs:
484+
real: (any ndarray)
485+
Parameters:
486+
timeperiod: 14
487+
Outputs:
488+
real
489+
"""
468490
cdef:
469491
np.npy_intp length
470492
TA_RetCode retCode
@@ -3324,7 +3346,17 @@ def stream_HT_TRENDMODE( np.ndarray real not None ):
33243346
@wraparound(False) # turn off relative indexing from end of lists
33253347
@boundscheck(False) # turn off bounds-checking for entire function
33263348
def stream_IMI( np.ndarray open not None , np.ndarray close not None , int timeperiod=-2**31 ):
3327-
""" IMI(open, close[, timeperiod=?])"""
3349+
""" IMI(open, close[, timeperiod=?])
3350+
3351+
Intraday Momentum Index (Momentum Indicators)
3352+
3353+
Inputs:
3354+
prices: ['open', 'close']
3355+
Parameters:
3356+
timeperiod: 14
3357+
Outputs:
3358+
real
3359+
"""
33283360
cdef:
33293361
np.npy_intp length
33303362
TA_RetCode retCode

0 commit comments

Comments
 (0)