.. _ta_lib_example:
Incorporating Indicators from TAlib
===================================
boatwright was designed to make it as easy as possible to incorporate data from 3rd party libraries.
To demonstrate this, this strategy uses technical indicators from the `TAlib `_ python package, more speifically `pandas_ta `_ which outputs indicators as pandas series.
Indeed, as boatwright organizes data as pandas dataframes, any 3rd party data, indicator, or custom function which can be organized as a pandas.Series (which is generally trivial to do) can be incorporated into boatwright.
Here, the strategy uses Bollinger Bands (Bbands), Relative Strength Index (RSI), and stochastic oscillator (stoch) indicators, buying when all 3 indicators suggest bullish behavior, and selling when 2 of them suggest bearish.
**Python source code:** :download:`../../examples/ta_lib.py`
.. literalinclude:: ../../examples/ta_lib.py
.. image:: images/ta_lib/aum.png
:align: center
.. image:: images/ta_lib/close.png
:align: center
.. image:: images/ta_lib/rsi.png
:align: center
.. image:: images/ta_lib/stoch.png
:align: center