Dario Lopez Padial
Aug 21, 2018 · 1 min read

Hi Wang Yi, thank you for your comment.

  1. I think if you placed “fillna=True”, you don’t have any problem because it will do a smart filled. Every indicator has some default values such as 50 for RSI indicator, backfilled for Bollinger Bands or 0 for MACD indicator. If you don’t like this option, you can place fillna = False and then remove the rows with NaNs values.
  2. It’s difficult to answer this question because every indicator has a different limitation and different input parameters that could change the number of points you need. So, if you use the default input parameters, I recommend using 200 or more points to get any significant result using ta library.
    Dario Lopez Padial

    Written by

    Artificial Intelligence & Blockchain Freelance Developer at Lecrin Technologies