Code Monkey home page Code Monkey logo

Comments (4)

twopirllc avatar twopirllc commented on May 13, 2024

Hello @ajmal017,

Thanks for checking out Pandas TA!

If you do not like using TA Lib's implementation of ema which begins with an sma, you can easily disable it by passing in the keyword argument sma=False into ema like so: ema15 = ta.ema(close, length=15, sma=False).

If you are curious about how to use any Pandas TA indicator, just do: help(ta.indicator) for more specific options or calculation adjustments. For further details on how to use Pandas TA, please check out the README.

How can we get this thing done

If any of the indicators are incorrectly calculated, feel free to make adjustments to your fork. Please note, if the indicator also exists in TA Lib, make sure that the output is at least 90% correlated, preferably 99% correlated, with TA Lib before submitting a pull request as well as your corrected rendition as an additional keyword argument for the indicator. If the indicator in question has no corresponding indicator in TA Lib, then all you need to do is submit a pull request.

I look forward to our collaboration and your submissions to help making Pandas TA a better TA Library for the Python community!

Thanks!
KJ

from pandas-ta.

twopirllc avatar twopirllc commented on May 13, 2024

Hello @ajmal017,

Curious if you have tried the following regarding ema?
ema15 = ta.ema(close, length=15, sma=False)

Thanks,
KJ

from pandas-ta.

webclinic017 avatar webclinic017 commented on May 13, 2024

I felt the question was misunderstood, it wasnt about any error or any wrong calculation - its about displaying all variables in a chart in a full way.. https://raw.githubusercontent.com/twopirllc/pandas-ta/master/images/TA_Chart.png take for example this image, the 200 MA is display after 200 days in the chart, so is bands etc - to display rightly in a chart, we usually take backward data to calculate the SMA but display from the date asked.. was wanting to know if anyone has done this or any guidance on it..

user wants from 1-1-2020 but asks for 20 day MA - the data is taken from 10-12-2019 and calculated to display MA from start in chart and display from 1-1-2020

image

from pandas-ta.

twopirllc avatar twopirllc commented on May 13, 2024

I felt the question was misunderstood, ...

Your original post, did not have a question.

This is a Technical Analysis Library, not a charting library. There are plenty of Data Source APIs, Analysis and Backtesting Libraries, Charting Libraries, ML/AI Frameworks and Brokerage APIs required/needed to build an Algo Trading Platform. This is just one component, not two or more, of the pipeline that many traders and investors rely upon and use. As such, it is up to the user to display charts to their liking and specifications.

It appears that your real issue is with an example chart displaying it's resultant calculations. It is only an example, it shows that SMA and Bollinger Bands are calculating properly because there is no data for values less than it's period of calculation. The SMA200 will not have any data for those first 200 periods, likewise the first 20 periods for Bollinger Bands. Why is that an issue? 🤷‍♂️ Here are some Matplotlib Charts without the period gaps. I have been planning to update the Example Charts in the README anyhow after adding some more indicators.

I spend considerable free time to produce an easy to use Open Source Technical Analysis library that is comparable to other de facto Open Source TA Libraries plus other features not commonly found in other libraries. With the rest of my non-existent free time, I am building out the other components of the pipeline for my own Algo Trading Platform. So I would greatly appreciate if future issues are related to adding or improving indicators.

Thank you,
KJ

from pandas-ta.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.