Skip to main content

Posts

Showing posts with the label Stock Market Programs

Predicting Stock Prices using Machine Learning (XGBoost)

  Today, I'll show you how to create a machine learning program to predict stock prices. Machine learning is used in a variety of fields, and we can utilize its ability to learn and predict from data to predict useful variables, with minimal error. Therefore in theory, we can apply the same on stocks to predict the next closing price, so that we can make a killing gain. However, stock markets are highly unstable. Their price movement often depends on decisions taken by the company, favor and reaction of investors, social impact, human emotions, and price movements of some other related stocks. These types of data cannot be made available to a program. The prediction can be close only if the market remains relatively stable. You don't actually need to learn machine learning using python to understand how this program works, if not minimal. I'll describe each machine learning process. And don't forget to download the source code of this program, link provided at the end. ...

Basic Stocks Graph Plotter In Python

  Plotting Graphs in Python Python offers a wide range of graphs that can be plotted using the library  Matplotlib.  We can use the function Pyplot  of Matplotlib to visualize data in many forms like Line charts, Bar charts, Histograms, Pie charts and many more. Today we will make a program to draw Line Charts for our Stock data in Python. This post is in continuation of our previous post where we explained how to collect and store daily stocks data in your database, which you can go over here:  Stock Data Collection in Python . We are going to use the stock data collected from the database we had created there, to get a peek at how a particular stock is performing. Skip to the end if you would like to get the free code! Let's get started! Modules Required As mentioned earlier, we are going to work with matplotlib , specifically with the function matplotlib.pyplot . We will also use mysql.connector to connect Python with MySQL. Last but not the least, mysql.con...

Stock Market Recorder: Stock Market Data collection using Python

  Stock Market Data Collecting Program You must have heard of stocks here and there, sometimes its on the television, some day a stock crashes, or a stock surges, it has become a star of the show when it comes to finance in recent times. Huge companies involving small investors like you and me who are willing to invest our money in their company for a tiny, tiny, tiny share in return for hopeful profits is very common nowadays. If you are one of those people who have a keen interest in stocks, then you must have certainly used one of the apps on your phone which tells you the price of the stock on that day, the company's market capital, trading value, trading quantity and what not. Apart from the financial point of view, its fun when you invest a fraction of your pocket money on these and see them up by 0.01 the next day. It makes you feel like you are destined to be the next Warren Buffet. Some people actually make a living out of it. They watch the stocks wherever it goes. But th...