Python Charting Stocks/Forex for Technical Analysis Part 6 - Basic Financial Graph

sentdex · Intermediate ·💻 AI-Assisted Coding ·12y ago

Key Takeaways

Creates a basic financial graph using Python

Full Transcript

hello everybody and welcome back to our financial charting tutorial we have completed everything for actual like stock price acquisition and the exact same method that we use to gather the stock prices you can use to gather Forex data at Yahoo does Forex as well so now what we want to do is once we actually have these prices like generally you want to do something with it now you can do almost all you the analysis and generate you know you can generate the RSI and you can generate all kinds of stuff and you don't actually have to visualize it right it just only helps us understand it visually you know but generally the next step is going to be to actually visualize the data and there's all kinds of like programs out there that will automatically do this for you and all kinds of like all kinds of analysis and stuff but it's really beneficial to be able to one do it yourself just so you can get exactly the analysis that you want and then also later on if you ever want to make like automatic trading or algorithmic trading and you want to do it based off of your own chart analysis that you've built yourself then you're gonna well you don't have to but this would be a very beneficial skill to have to do that so anyways let's get started with actually charting this stuff so the first thing that we need is a way to actually chart the stuff and for that we're going to need a couple of things the first thing we're going to need is mat plot Lib now I do have an entire series on just matplotlib just everything to do with mat plot live and I'll probably throw these videos in that series as well but I'll continue them in this series too so you don't have to like hop around and find the other playlist so the first thing that we need is matplotlib and it just so happens I'm on matplotlib well what are the odds anyway so the website is matplotlib dot org once you get there there used to be a little downloads link up here but they've removed it so now you just scroll down a little bit here it'll say download and visit the Matt plugins download page and you probably want to download the latest stable version it really I don't know what the dates are on some of these but I prime not even sure I've the most up-to-date version but anyway you get want to download the version you have I told you to download Python to seven so you want to do that and depending on which version of Python whether you got a 32-bit or 64-bit that's what you're going to have to download I recommended that you get 64-bit but if you're on a 32-bit operating system you're kind of Sol so download whichever one that you need also if you're on like a Linux or something like that you can just download the tarball yeah so anyways that's map hot live just downloaded go through the installer if you find yourself kind of like hung up you could check out the matplotlib series but it's pretty basic if you're getting an error you've probably downloaded like the wrong yeah it says it can't find python you've probably downloaded you know 64-bit when you're running 32-bit python etc so anyways that's where you get Matt plot lib now the next thing that we need is a program called numpy it'll help us a whole lot it's definitely one of the best one of the best of like imports for python in my opinion so to get numpy probably will just go to google i can't type google comm and then just type in like numpy download and let's see numpy org pretty sure it's not going to be here but let's see hold on yeah I didn't think it would be realistic numpy all right they're probably right here yeah so then you'll come over here this is the URL but if you google it you should be able to find pi pi but it's p YP i python org slash p YP i slash n um p y scroll down and again you'll see we've got basically the same kind of setup as we did before although this one only has a windows 32 but it does work with 64 so don't worry about that and then also obviously if you're not on Windows you can use just the tarball if you're on a Linux operating system II so that's all the stuff that you're going to need once you have all that stuff downloaded and installed you can begin this tutorial so what I think I'm going to do now is pause video here we'll continue on in the next video sorry to do that to you guys but you definitely gonna want to make sure you have all this stuff done to check it go to your Start bar whatever you have and type in just Python and open up that Python command line so here's my Python command line and do two things one import mat plot lib this is just basically if you don't throw like it doesn't say an error like if I did import mat right it throws this right it says there's no module called that but if you import matplotlib and you don't have like any error like that then it means you installed matplotlib correctly now the next thing we're going to want to check is numpy so import numpy and if you don't throw any errors that means you've installed it correctly so once you're to that point continue on to the next video

Original Description

This is the sixth video in the series for stock price analysis and financial charting. The purpose of the videos in this series is to teach you how to program your own charting and analysis of stocks or Forex. This is beneficial for you if you plan to do any sort of algorithmic, high-frequency, or any sort of automated trading. Sentdex.com Facebook.com/sentdex Twitter.com/sentdex
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from sentdex · sentdex · 0 of 60

← Previous Next →
1 Matplotlib Python Tutorial Part 1: Basics and your first Graph!
Matplotlib Python Tutorial Part 1: Basics and your first Graph!
sentdex
2 Python Encryption Tutorial with PyCrypto
Python Encryption Tutorial with PyCrypto
sentdex
3 Python's Logging Function
Python's Logging Function
sentdex
4 wxPython Tutorials 1: Making Windows GUIs with Python : Installing + 1st window!
wxPython Tutorials 1: Making Windows GUIs with Python : Installing + 1st window!
sentdex
5 wxPython Tutorials 2: Making Windows GUIs with Python: Customizing Window Parameters
wxPython Tutorials 2: Making Windows GUIs with Python: Customizing Window Parameters
sentdex
6 wxPython Programming Tutorial 3: Menu Bar and Menu Button
wxPython Programming Tutorial 3: Menu Bar and Menu Button
sentdex
7 wxPython Programming Tutorial 4: Panels
wxPython Programming Tutorial 4: Panels
sentdex
8 wxPython Programming Tutorial 5: User Input Saved To Variables
wxPython Programming Tutorial 5: User Input Saved To Variables
sentdex
9 wxPython Programming Tutorial 6: Multiple Choice Input
wxPython Programming Tutorial 6: Multiple Choice Input
sentdex
10 wxPython Programming Tutorial 7: Adding Static Text and Colors
wxPython Programming Tutorial 7: Adding Static Text and Colors
sentdex
11 wxPython Programming Tutorial 8: Custom Button Images
wxPython Programming Tutorial 8: Custom Button Images
sentdex
12 wxPython Programming Tutorial 9: Tool Bar Items and Sub Menus!
wxPython Programming Tutorial 9: Tool Bar Items and Sub Menus!
sentdex
13 Basic PHP Tutorial 13: Multi-dimensional Array
Basic PHP Tutorial 13: Multi-dimensional Array
sentdex
14 Basic PHP Tutorial 15: Functions and Global Variables
Basic PHP Tutorial 15: Functions and Global Variables
sentdex
15 Basic PHP Tutorial 12: Associative Array
Basic PHP Tutorial 12: Associative Array
sentdex
16 Basic PHP Tutorial 14: Foreach loop
Basic PHP Tutorial 14: Foreach loop
sentdex
17 Basic PHP Tutorial 16: Include and Require
Basic PHP Tutorial 16: Include and Require
sentdex
18 Basic PHP Tutorial 7: Assignment, comparison and Logical operators
Basic PHP Tutorial 7: Assignment, comparison and Logical operators
sentdex
19 Basic PHP Tutorial 4: Variables and Comments
Basic PHP Tutorial 4: Variables and Comments
sentdex
20 Basic PHP Tutorial 11: Arrays part 1, basic array
Basic PHP Tutorial 11: Arrays part 1, basic array
sentdex
21 Basic PHP Tutorial 6: If else and else if conditionals cont'd
Basic PHP Tutorial 6: If else and else if conditionals cont'd
sentdex
22 Basic PHP Tutorial 1: Intro to PHP
Basic PHP Tutorial 1: Intro to PHP
sentdex
23 Basic PHP Tutorial 3: HTML with PHP
Basic PHP Tutorial 3: HTML with PHP
sentdex
24 Basic PHP Tutorial 9: While Loop
Basic PHP Tutorial 9: While Loop
sentdex
25 Basic PHP Tutorial 10: Switch Statement
Basic PHP Tutorial 10: Switch Statement
sentdex
26 Basic PHP Tutorial 2: Print and Echo
Basic PHP Tutorial 2: Print and Echo
sentdex
27 Basic PHP Tutorial 5: If else and else if conditional statements
Basic PHP Tutorial 5: If else and else if conditional statements
sentdex
28 Basic PHP Tutorial 8: Arithmatic Operators: Doing math with php
Basic PHP Tutorial 8: Arithmatic Operators: Doing math with php
sentdex
29 Basic PHP Tutorial 17: User Input Form Example / String Manipulation
Basic PHP Tutorial 17: User Input Form Example / String Manipulation
sentdex
30 Basic PHP Tutorial 18: HTML Entities and forms cont'd
Basic PHP Tutorial 18: HTML Entities and forms cont'd
sentdex
31 Basic PHP Tutorial 19: Finding words in strings
Basic PHP Tutorial 19: Finding words in strings
sentdex
32 Basic PHP Programming Tutorial 20: Saving to a File / writing and appending
Basic PHP Programming Tutorial 20: Saving to a File / writing and appending
sentdex
33 Basic PHP Programming Tutorial 22: Hashing part 2: salting
Basic PHP Programming Tutorial 22: Hashing part 2: salting
sentdex
34 Basic PHP Programming Tutorial 23: Variables in Strings and tokenizing
Basic PHP Programming Tutorial 23: Variables in Strings and tokenizing
sentdex
35 Basic PHP Programming Tutorial 21: MD5 Hashing For Security
Basic PHP Programming Tutorial 21: MD5 Hashing For Security
sentdex
36 Basic PHP Programming Tutorial 24: String similarity
Basic PHP Programming Tutorial 24: String similarity
sentdex
37 Basic PHP Programming Tutorial 25: Time and Time stamps
Basic PHP Programming Tutorial 25: Time and Time stamps
sentdex
38 Basic PHP Programming Tutorial 26: Die and Exit
Basic PHP Programming Tutorial 26: Die and Exit
sentdex
39 Basic PHP Programming Tutorial 27: MySQL Databases Part 1
Basic PHP Programming Tutorial 27: MySQL Databases Part 1
sentdex
40 Basic PHP Programming Tutorial 28: MySQL Database Part 2: Reading From Database
Basic PHP Programming Tutorial 28: MySQL Database Part 2: Reading From Database
sentdex
41 Basic PHP Programming Tutorial 29: MySQL Database Part 3: Inputting Data
Basic PHP Programming Tutorial 29: MySQL Database Part 3: Inputting Data
sentdex
42 Basic PHP Programming Tutorial 30: MySQL database in Use
Basic PHP Programming Tutorial 30: MySQL database in Use
sentdex
43 Django Tutorial Web Development with Python Part 1: Installing Django
Django Tutorial Web Development with Python Part 1: Installing Django
sentdex
44 Python Tutorial: File Deletion and Folder Deletion / directory deletion
Python Tutorial: File Deletion and Folder Deletion / directory deletion
sentdex
45 Python Tutorial: How to Rename Files and Move Files with Python
Python Tutorial: How to Rename Files and Move Files with Python
sentdex
46 3D Graphs in Matplotlib for Python: Basic 3D Line
3D Graphs in Matplotlib for Python: Basic 3D Line
sentdex
47 3D Plotting in Matplotlib for Python: 3D Scatter Plot
3D Plotting in Matplotlib for Python: 3D Scatter Plot
sentdex
48 3D Charts in Matplotlib for Python: Multiple datasets scatter plot
3D Charts in Matplotlib for Python: Multiple datasets scatter plot
sentdex
49 Sikuli Tutorial 1: Visually programming in python!
Sikuli Tutorial 1: Visually programming in python!
sentdex
50 Sikuli Tutorial 2: Program visually in python!
Sikuli Tutorial 2: Program visually in python!
sentdex
51 Sikuli Tutorial 3: Program visually in python!
Sikuli Tutorial 3: Program visually in python!
sentdex
52 3D Bar Charts in Python and Matplotlib
3D Bar Charts in Python and Matplotlib
sentdex
53 3D Plane wire frame Graph Chart in Python
3D Plane wire frame Graph Chart in Python
sentdex
54 Raspberry Pi Part 1 Introduction
Raspberry Pi Part 1 Introduction
sentdex
55 Raspberry Pi Part 8: First Download and Update! (Firmware)
Raspberry Pi Part 8: First Download and Update! (Firmware)
sentdex
56 Raspberry Pi Part 10: How to set up a Linux Web Server on your Pi
Raspberry Pi Part 10: How to set up a Linux Web Server on your Pi
sentdex
57 Raspberry Pi Part 11: Remote Desktop
Raspberry Pi Part 11: Remote Desktop
sentdex
58 Twitter Analysis: How to rank a user's influence
Twitter Analysis: How to rank a user's influence
sentdex
59 GPIO Tutorial for Pi Part 2 - Programming the GPIO
GPIO Tutorial for Pi Part 2 - Programming the GPIO
sentdex
60 GPIO Tutorial for Raspberry Pi Part 1 - Setting up
GPIO Tutorial for Raspberry Pi Part 1 - Setting up
sentdex

Related Reads

📰
The Python Skills AI Still Can’t Replace in 2026
Learn the Python skills that AI still can't replace in 2026, focusing on security, architecture, and judgment
Medium · Programming
📰
AI's Next Frontier: Cost, Control, and the Compute Race
Learn how AI's next frontier is driven by cost, control, and the compute race, and why it matters for AI development
Dev.to AI
📰
The Rise of Enterprise AI Coding Assistant Bans: Why Cloud Tools Are Being Blocked and What to Build Instead
Learn why enterprises are banning cloud AI coding assistants and how to build a secure on-premise alternative, a $5,000/month opportunity for founders
Dev.to · ping wang
📰
coding benchmarks are becoming production dependencies
Coding benchmarks like SWE-Bench Pro have significant errors, impacting production dependencies, and it's crucial to reassess their use in decision-making
Dev.to AI
Up next
CodeAI at #ISTELive and their free lessons and learning space
Cool Cat Teacher
Watch →