This module can be used to convert stock data into an image. any stock data comprising of the columns Open
, High
, Low
, Close
and Volume
is used to generate the indicators data.
For a given stock data in pandas DataFrame, the CumputeTALibIndicators
class uses ta-lib to compute indicator data and appends it to the DataFrame. For certain indicators, time period is required. Using the CumputeTALibIndicators, you can compute indicators data for multiple time periods.
Using the helper functions in array2img.py, you can convert the indicator data to images. You can either convert to BW images or to RGB images.
Once you have the images, you can either save them to a dir or you can convert them to gifs and visualize them.