Edit:
There are a lot of talib indicators that start with "CDL", stands for Candle, or Candlesticks, where each one (in my current understanding) gives you a non-zero number when a candlestick matches the particular pattern for the name indicated in the function (like MORNINGDOJISTAR), for example plain Doji is open and close same price. Some pretty informative general reading on some of them here and there and categorized or lots of reading, and info at youtube candlestick patterns maybe.
Evidently for many of the CDL talib indicators the instances where each type of candlestick shows up can be extremely rare, accounting for the mostly zero outputs.
To test them further I'm wondering if there is a way in Python code to start with a list of their function names as strings and call each function turning the string into its function name in a loop (the input parameters can always be the same).
So, starting with this list, running for example talib.CDL2CROWS([inputs]):
function_names = ['CDL2CROWS', 'CDL3BLACKCROWS', 'CDL3INSIDE', 'CDL3LINESTRIKE', 'CDL3OUTSIDE', 'CDL3STARSINSOUTH', 'CDL3WHITESOLDIERS', 'CDLABANDONEDBABY', 'CDLADVANCEBLOCK', 'CDLBELTHOLD', 'CDLBREAKAWAY', 'CDLCLOSINGMARUBOZU', 'CDLCONCEALBABYSWALL', 'CDLCOUNTERATTACK', 'CDLDARKCLOUDCOVER', 'CDLDOJI', 'CDLDOJISTAR', 'CDLDRAGONFLYDOJI', 'CDLENGULFING', 'CDLEVENINGDOJISTAR', 'CDLEVENINGSTAR', 'CDLGAPSIDESIDEWHITE', 'CDLGRAVESTONEDOJI', 'CDLHAMMER', 'CDLHANGINGMAN', 'CDLHARAMI', 'CDLHARAMICROSS', 'CDLHIGHWAVE', 'CDLHIKKAKE', 'CDLHIKKAKEMOD', 'CDLHOMINGPIGEON', 'CDLIDENTICAL3CROWS', 'CDLINNECK', 'CDLINVERTEDHAMMER', 'CDLKICKING', 'CDLKICKINGBYLENGTH', 'CDLLADDERBOTTOM', 'CDLLONGLEGGEDDOJI', 'CDLLONGLINE', 'CDLMARUBOZU', 'CDLMATCHINGLOW', 'CDLMATHOLD', 'CDLMORNINGDOJISTAR', 'CDLMORNINGSTAR', 'CDLONNECK', 'CDLPIERCING', 'CDLRICKSHAWMAN', 'CDLRISEFALL3METHODS', 'CDLSEPARATINGLINES', 'CDLSHOOTINGSTAR', 'CDLSHORTLINE', 'CDLSPINNINGTOP', 'CDLSTALLEDPATTERN', 'CDLSTICKSANDWICH', 'CDLTAKURI', 'CDLTASUKIGAP', 'CDLTHRUSTING', 'CDLTRISTAR', 'CDLUNIQUE3RIVER', 'CDLUPSIDEGAP2CROWS', 'CDLXSIDEGAP3METHODS']
Original message (edited some):
This page has some Python code for calling various talib indicators (handful of different ways they have to be called).
In case anyone is curious, here are a few of the top percent returns when added to my algo in testing a few days ago (tested 75 of them one at a time):
729 CDLLADDERBOTTOM
613 ADX
555 CDLSTALLEDPATTERN
534 MFI
525 CDLUPSIDEGAP2CROWS
518 CDLMORNINGDOJISTAR
518 ULTOSC
517 AVGPRICE
513 CDL3STARSINSOUTH
509 ATR
Some of the more common talib indicators (SMA, RSI etc) return values on every bar, CDL's often zero.
The attached code returns mostly zero values [edit: explained above].