100 thoughts on “Machine Learning and Pattern Recognition for Algorithmic Forex and Stock Trading: Intro

  • October 25, 2013 at 5:22 am
    Permalink

    Nice video, where can I get the pic of Machine Learning "What society think I do"?

    Reply
  • October 25, 2013 at 1:51 pm
    Permalink

    Haha, it was just a pic I made. I've put it on the machine learning tutorial page on my website. About > Tutorials > Machine Learning and it is below the video.

    Reply
  • October 25, 2013 at 3:03 pm
    Permalink

    Thanks 🙂

    Reply
  • November 2, 2013 at 7:28 pm
    Permalink

    This is awesome !
    Looking forward to study the rest of these vids.

    Reply
  • November 3, 2013 at 11:31 pm
    Permalink

    TDM,看不了

    Reply
  • November 12, 2013 at 10:43 am
    Permalink

    Hey, great tutorial!!! How did you get that forex data?

    Reply
  • December 23, 2013 at 5:44 am
    Permalink

    hey, thanks for your really helpful video.  I have successfully downloaded python and numpy without any problems, but I have had problems getting matplotlib to run in python.

    I am running a 64 bit windows OS and have downloaded matplotlib from the recommended website (http://matplotlib.org/downloads.html) and downloaded the 1.3.1.win-amd64-py2.7.exe.  It should also be known that the version of Python which I downloaded was 2.7.6 (however I downloaded 2.7.5 and the same problem persisted)

    The error message I got was:
    ">>>import matplotlib
    Traceback (most recent call last):
       File"<stdin>", line 1, in <module>
       File "C:Pythos27libsite-packagesmatplotlib__init__.py", line 111, in <module>
          raise ImportError("matplotlib requires dateuntil")
    ImportError: matplotlib requires dateuntil"

    Thanks for your help!

    Reply
  • December 28, 2013 at 10:00 pm
    Permalink

    hi there whenever i type import matplotlib i get this message

     Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "C:Program Files (x86)libsite-p
    10, in <module>
        raise ImportError("matplotlib require
    ImportError: matplotlib requires dateutil

    any help??

    Reply
  • January 22, 2014 at 2:21 pm
    Permalink

    hi! where did you get the data from?

    Reply
  • February 22, 2014 at 10:58 pm
    Permalink

    Could give me the link because when I got to your website and type in GPBUSD.zip it's "File not found"

    Reply
  • February 25, 2014 at 9:53 pm
    Permalink

    I downloaded Python 2.7.6, is this ok?

    Reply
  • February 25, 2014 at 11:51 pm
    Permalink

    Having problems with matplotlib and numpy when doing import.

    Reply
  • March 13, 2014 at 3:42 am
    Permalink

    Thanks for the vid! It helps a tone

    Reply
  • March 18, 2014 at 6:07 pm
    Permalink

    Error: Matplotlib requires pyparsing

    Reply
  • March 21, 2014 at 6:10 pm
    Permalink

    If you using Python 2.7 your going to need  pyparsing for 2.7 and something else.

    Reply
  • March 25, 2014 at 9:51 pm
    Permalink

    Hi I am not able to download the forex file, getting a 404 on it.

    Reply
  • May 13, 2014 at 7:38 pm
    Permalink

    Loving these vids Harrison. Please keep em coming especially the Python stuff, I'm learning loads here, just DEVOURING this channel ha ha!

    Reply
  • August 12, 2014 at 5:22 am
    Permalink

    Looks like a great tutorial. Do you teach how you are calculating 'sentdex' in this series ? If not, do you mind pointing to a url where you explain it ? 

    Reply
  • August 24, 2014 at 8:14 am
    Permalink

    seem like a real result ..i wish it .. i think that the file contain the actual & predicted value .. u should test ur result at real life forex data and trading .. then we all ll say " congratulations "

    Reply
  • August 26, 2014 at 2:31 pm
    Permalink

    When I put in "import matplotlib" I got "Traceback <most recent call last>:
      File "<stdin>", line 1 , in <module>
      File "C:Python27libsite-packagesmatplotlib__init__.py", line 105, in <module>
             Import six
    ImportError: No moudle names six
    >>>

    Thanks in advance,

    Reply
  • August 27, 2014 at 7:02 am
    Permalink

    I get :

    >>> graphRawFX()

    Traceback (most recent call last):
      File "<pyshell#9>", line 1, in <module>
        graphRawFX()
    NameError: name 'graphRawFX' is not defined

    My code is :

    import matplotlib
    import matplotlib.pyplot as plt
    import matplotlib.ticker as mticker
    import matplotlib.dates as mdates
    import numpy as np

    def graphRawFX():
        date,bid,ask = np.loadtxt('GBPUSD1d.txt', unpack=True,
                                 delimiter = ',',
                                 converters={0:mdates.strpdate2num('%Y%m%d%H%M%S')}
        fig = plt.figure(figsize=(10,7))
        ax1 = plt.subplot2grid((40,40), (0,0), rowspan=40, colspan=40)
        
        ax1.plot(date,bid)        
        ax1.plot(date,ask)

        ax1.xaxis.set_major_formatter(mdates.DateFormatter('%Y-%m-%d %H:%M:%S'))
        
        plt.grid(True)
        plt.show()

    what should I do now?

    Thanks,

    Reply
  • September 1, 2014 at 6:38 am
    Permalink

    GUYS!!!!! To get Matplotlib to work you will need install ALL of these from the website he provided. 1) numpy 2)six and 3) python-Dateutil this will make it work 

    Reply
  • November 7, 2014 at 5:04 pm
    Permalink

    Dude, I love your videos

    Reply
  • November 12, 2014 at 5:49 pm
    Permalink

    similar to +Hema Al-Qady
    I get :

    >>> graphRawFX()

    Traceback (most recent call last):
      File "<pyshell#9>", line 1, in <module>
        graphRawFX()
    NameError: name 'graphRawFX' is not defined

    It shows that error if I try calling it in the terminal, however if I place a call to graphRawFX() in my script, it runs

    Reply
  • December 1, 2014 at 8:19 am
    Permalink

    thank you very much

    Reply
  • December 14, 2014 at 6:49 am
    Permalink

    Why is it necessary that we use python2.7 vs python3.4?

    Reply
  • December 27, 2014 at 12:09 am
    Permalink

    What are the pre requisites for this video series? What other video series should I have watched before this one to clearly understand it?
    Thanks in advance.

    Reply
  • January 7, 2015 at 9:21 am
    Permalink

    A  lot of blabber and no substance!… Such a waste of time!!!

    Reply
  • January 15, 2015 at 3:42 pm
    Permalink

    Traceback (most recent call last):
      File "<pyshell#1>", line 1, in <module>
        graphRawFX()
      File "C:/Python27/Graph.py", line 10, in graphRawFX
        converters={0:mdates.strpdate2num('%Y%m%d%H%M%S')})
      File "C:Python27libsite-packagesnumpylibnpyio.py", line 737, in loadtxt
        fh = iter(open(fname, 'U'))
    IOError: [Errno 2] No such file or directory: 'GBPUSd1.txt'

    Im guessing my txt file is not in the directory, can someone tell me where to find the directory to put the files?

    Reply
  • January 18, 2015 at 5:59 pm
    Permalink

    I have numpy, matplotlib and sklearn loaded in the pyhton27 directory on windows 8.1, but I can't seem to import them

    I get errror: no module name numpy, or matplotlib   what is the mater?

    Reply
  • January 30, 2015 at 12:45 am
    Permalink

    Hello there. You've got a great series of tutorials, kudos ! What I'm looking for though, and that't the reason I looked in this series, is how to mine Forex data. Do you have a relevant tutorial somewhere or any suggestions as to where/what to look? Thanks and all the best, you're awesome and inspiring ! Keep it up.

    Reply
  • February 18, 2015 at 7:22 pm
    Permalink

    I did all what you said, but in the result, when I print "import matplotlib" python said that it requires dateutil
    I found this package, but after that I don't know what to do
    I mean I tried to put it in the directory of python – nothing
    another action which I found in the Internet was to install via pip – this one I didn't understand
    please help me, I really want to study your course but this problem doesn't allow me to do this
    Thank you

    Reply
  • April 1, 2015 at 4:47 pm
    Permalink

    Having trouble downloading and installing the .whl files.  Gohlke almost exlusively uses them now, no .exe.

    Reply
  • May 2, 2015 at 6:13 pm
    Permalink

    Hi this looks very interesting. Is it possible to run on 3.4.3?

    Reply
  • June 12, 2015 at 7:23 pm
    Permalink

    Hey, if i try to import matplotlib in python an error occurs 'matepltlib requires dateutil' how can i fix that ? Import numpy actually works. I have version 2.7.10 of Phyton.
    Greets from Germany

    Reply
  • August 21, 2015 at 1:42 am
    Permalink

    Does anyone know any other good channels that has great videos for machine learning? Thank you in advance!

    Reply
  • September 8, 2015 at 10:31 pm
    Permalink

    my god this seem impossible.
    is there any clear documentation of steps to install on linux as well as win 8.1

    I have put numpy and pandas into site-packages but still no Import?

    how can one learn with nothing but compugeek speak

    should be simple and not need PHD in Hindi to understand

    Reply
  • September 9, 2015 at 2:48 pm
    Permalink

    this is all very cryptic..
    thanks for the advice

    I installed Anaconda after spending more than 6 hours in attempts to load modules in python.
    Anaconda works on my windows machine

    I will try different methods for linux, and windows after I get more comfortable with the modules; numpy, pandas, and matplotlib

    Reply
  • September 15, 2015 at 1:42 am
    Permalink

    32bit OS = 4Gb ram max, technicalities aside – looks like an exciting series 😀

    Reply
  • September 25, 2015 at 4:42 pm
    Permalink

    Hi, do you know if python can connect to interactive brokers? how does it work? thanks

    Reply
  • September 27, 2015 at 9:21 am
    Permalink

    sir,can you please provide me the final code where threading is also used … to enhance its efficency .I really need it.

    Reply
  • September 27, 2015 at 9:22 am
    Permalink

    i,m not able to implement the whole project using threading

    Reply
  • October 2, 2015 at 3:29 pm
    Permalink

    Will u plz tell me how to predict whether to sell/buy??Any relevant info. would be helpful

    Reply
  • October 6, 2015 at 8:56 am
    Permalink

    which theory or law have u used in these videos? +sentdex

    Reply
  • December 4, 2015 at 4:41 pm
    Permalink

    I love you !

    Reply
  • December 18, 2015 at 3:36 am
    Permalink

    Oh man I love you so much!

    Reply
  • January 13, 2016 at 4:40 am
    Permalink

    love it!!! you da best

    Reply
  • January 30, 2016 at 4:28 am
    Permalink

    after I download the data in my desktop, I can not use this code" date,bid,ask = np.loadtxt('GBPUSD1d.txt' " like you. I am a greenhand ,please tell me how

    Reply
  • February 6, 2016 at 1:39 am
    Permalink

    How can you so certainly state that backtesting on all available data, is a bad method to judge whether or not that strategi will work or not in the future?

    Reply
  • February 8, 2016 at 2:22 am
    Permalink

    Do you have a tut for machine learning on robotics? Maybe a general understanding on the topic. Any link would suffice.

    Reply
  • February 20, 2016 at 6:02 am
    Permalink

    Sir,
    I have been following your tutorials.I have come up with following doubts in doing so.Firstly
    can you please explain what is it that we are getting in output (on
    video 6 and 7). I am unable to understand the pattern that we are
    getting. We get 10 values when we print patternFinder() function. So
    what does those values imply?Also what is currentPoint that we are printing?
    Please reply ASAPThank You Sir!

    Reply
  • February 20, 2016 at 9:22 am
    Permalink

    Hey Sentdex, why do we take y=11?
    and what does the variables p1,p2,p3…..upto p10 implies?
    Reply ASAP plz

    Reply
  • February 21, 2016 at 9:33 am
    Permalink

    Hello, I have 64 bit Win7 OS, I am finding problem in importing, Numpy and matplotlib. Could you please help me. Thanks

    Reply
  • February 22, 2016 at 5:05 pm
    Permalink

    +sentdex 1. please suggest me some book or any paper where I can learn about same approach of stock and forex trade predicitions.
    2. If not then can you explain my previous queries?

    Reply
  • March 27, 2016 at 10:51 pm
    Permalink

    sentdex, thank you so much for your tutorials, they are definetely the best in Youtube

    Reply
  • March 27, 2016 at 10:56 pm
    Permalink

    Do you have updated info for GBPUSD.zip file? It currently contains information for 2013

    Reply
  • April 10, 2016 at 2:32 am
    Permalink

    Hello, I am having difficulties installing the matplotlib. I am guessing it is because the version I am installing is a much older version? Please help me out?

    Reply
  • April 10, 2016 at 6:08 am
    Permalink

    Guys, i'm a total noob. I follow every step but when i got to the maplotbid website theres no option to download the file. what can I do?

    Reply
  • April 18, 2016 at 3:00 pm
    Permalink

    Hey, thanks for the tutorials, they're great.
    Do you recommend watching these tutorials in any sequence? i.e value investing then machine learning etc..?

    Reply
  • May 10, 2016 at 9:43 pm
    Permalink

    Hi, I found you release a new tutorial relate to machine learning, is there any relation? Which one should be select first? Thanks!

    Reply
  • May 28, 2016 at 3:44 pm
    Permalink

    Hey, thanks for the tutorial. Wanted to ask: do you use these algorithmic strategies when trading your self and if so, have you been more successful than standard trading?

    Reply
  • June 16, 2016 at 3:52 am
    Permalink

    Hi Sentdex, For convenience, I installed Python anaconda, is it totally the same if I use anaconda?

    Reply
  • June 27, 2016 at 4:19 am
    Permalink

    Hi Sentdex, there are 2 series of machine learning you uploaded, one is this one, the other is the Sci-kit one. So which one should I look at first?

    Reply
  • July 6, 2016 at 1:21 pm
    Permalink

    I keep getting 'invalid syntax' error on line 12:

    File "<ipython-input-9-cdc0fdcbe767>", line 12
    fig = plt.figure(figsize=(10,7))
    ^
    SyntaxError: invalid syntax

    I've made sure my code matches every line in the video all packages installed.
    Could this be an Anaconda issue?

    Reply
  • August 16, 2016 at 11:24 am
    Permalink

    Hi, i am finding an startup problem in understanding the tutorial,
    can you give me a straight-forward answer on choosing the predictors and target for Forex data( date, bid, ask),
    i am quite finding difficult to knowing about what should we predict in forex data.. thanks .

    Reply
  • September 18, 2016 at 10:17 am
    Permalink

    where did you find the GBPUSD files? did you simply download them from a stock website? with the info of the file in such specific order?

    Reply
  • October 10, 2016 at 2:38 am
    Permalink

    Hi sentdex. I've noticed that this series is from 2013. Is there an updated version I should be watching (you have a 2015 machine learning series) or is this the best series for machine learning and stocks.

    Reply
  • October 12, 2016 at 7:47 am
    Permalink

    for python 3.6, use bytespdate2num instead of strpdates2num , see https://github.com/matplotlib/matplotlib/issues/4126

    Reply
  • October 12, 2016 at 9:35 am
    Permalink

    People are getting confuse on what to choose, and what is the best, with the uncountable number of apps and huge amounts of information available on Binary Options trading. I guess I can help you with this. I have been using one great app (Link here https://t.co/C3jzMDa873 ) for over a year now, and I don’t need to worry about a thing anymore. It takes care of all my trading, within my given pre-set instructions. And above everything, it is for free. All you need to do is sign up and download it. Then follow some simple instructions and get going.

    Reply
  • November 20, 2016 at 5:29 pm
    Permalink

    Hi Sentdex, I tried to download the package 'qsforex' but wasn't able to do so. I tried downloading using pip and searched it on the website you have mentioned ( the unofficial windows binaries for python packages) but didn't found the 'qsforex' package. Can you please tell the procedure to download it ??

    Reply
  • November 29, 2016 at 6:47 pm
    Permalink

    you helpn us alot …mate…. keep th good work..alive

    Reply
  • January 22, 2017 at 3:27 am
    Permalink

    Sendex is the smartest guy in the room.

    Reply
  • January 28, 2017 at 9:03 pm
    Permalink

    on the stock exchange, i.e made available on the stock exchange to buy and sell. follow for signals twitter.com/DaveWarens

    Reply
  • February 14, 2017 at 2:54 pm
    Permalink

    An easier way to get python with all the packages is to install Anaconda
    https://www.continuum.io/downloads

    Reply
  • April 16, 2017 at 11:43 pm
    Permalink

    hi sentdex
    i am trying to import numpy and matplotlib but giving me error no module named numpy. i have downloaded . whl files.plz help i am rookie in coding

    Reply
  • May 13, 2017 at 3:54 pm
    Permalink

    thanks!

    Reply
  • August 27, 2017 at 10:45 am
    Permalink

    I and my family was in pains trading with forex, and forex made us run at lost but when we discovered Mr. BAILEY strategy our family business become a great business bringing much income and profit of 98%. thanks to Bailey strategy. [email protected] com

    Reply
  • October 1, 2017 at 9:42 am
    Permalink

    why did you choose python 2.7 over 3.3 ?

    Reply
  • October 16, 2017 at 2:55 pm
    Permalink

    try to use command 2to3 pythonfile.py in terminal or whatever you're using

    Reply
  • October 16, 2017 at 2:58 pm
    Permalink

    Please update your code for Python 3.6 if you have a chance.

    Reply
  • November 28, 2017 at 9:57 am
    Permalink

    the first caution at the beginning of the clip ,sounds rude to me. bcuz it's too obvious.

    Reply
  • December 8, 2017 at 9:32 pm
    Permalink

    Thank you, excellent channel!
    Question from my side – you are an expert in data science & python, do you use it to invest your own/anyone else's money in stocks/forex/crypto?

    Reply
  • December 13, 2017 at 7:49 am
    Permalink

    Good one !!
    Get Free Signals and Improve your Trading – https://www.tradedesk24.com/freesignal.html
    Check this amazing indicator as well from TradeDesk24.com – https://www.youtube.com/watch?v=gfAjmUAtqKQ
    We provide GREAT EA services too !!?

    Reply
  • December 27, 2017 at 4:50 pm
    Permalink

    Great series +sentdex, and thank you for the free lessons!

    In all fairness to those who followed this entire series and still think this was a tutorial on how to copy code, then easy money, think again. The core concepts, techniques, tools, and steps of reasoning are the true gold and creative empowerment.

    A couple things I'm interested in knowing and (my humble) constructive pieces of criticism:
    – like +dagharr2 i'd also like to see some abstraction, maybe even account for new tick data and desired predictions based on a future time.
    – you mentioned at the start that traders use fancy names for these patterns. how about a vid on pseudo code dissections of these patterns?
    – how can these patterns be applied or considered in NN's?
    – can you talk about any experience you have with Pine Script (tradingview.com) and maybe walkthrough a strategy test or two?
    – can you target these kinds of vids to more code-oriented people? some of the beginner explanation stuff takes away from the breadth and brevity of your content.

    Keep it rock'n!

    Reply
  • January 18, 2018 at 3:13 pm
    Permalink

    very useful !
    www.ibcviet.com

    Reply
  • February 3, 2018 at 5:05 pm
    Permalink

    can i still follow your tutorial till today?

    Reply
  • February 24, 2018 at 2:32 pm
    Permalink

    Hi – just trying to get started and failed to download matplotlib or numpy. neither seem to be quite as video. Have managed to download Python v 2.7. I am W10 (Pro). I follow the links
    and find myself with a command 'python -mpip install -U pip'. I tried this in the Python command line but not accepted.
    Just need to get the basics correct to make any progress

    Reply
  • June 14, 2018 at 8:26 pm
    Permalink

    I can't get these things to download and install properly, except Python??? "pip" install – throws an error?? Anyone?

    Reply
  • June 30, 2018 at 6:57 am
    Permalink

    In the Forex field now after numerous year I have turned into the best performing pioneer or trader, and get a kick out of the chance to give the preferred standpoint to my broker Forex4you who give each imperative strategies, systems, administrations, rule whatever I require I get them on ideal time. In particular they are amicable as they generally endeavor to give me the best things to wind up effective.

    Reply
  • July 7, 2018 at 1:33 am
    Permalink

    Hello sentdex. First I would like to congratulate you on your channel which I think is the best and most complete I have seen about Python. I would like to ask you if it is possible for a retail trader to be profitable in algorithmic trading because I understand that many Hedge Funds have at their service brilliant mathematicians and programmers like you with a level of knowledge that very few people on the planet can reach, in addition to having millions of dollars in infrastructure. What has been your personal experience on this subject and do you think it is really possible to achieve it? Thank you very much in advance

    Reply
  • August 16, 2018 at 2:28 pm
    Permalink

    Hello there , thanks for your video ,im studing quantitatif finance and i need please some PDF and more information about trading using machine learning, and thanks

    Reply
  • September 12, 2018 at 4:13 pm
    Permalink

    Great tutorials as always! Any specific reason you are using Python 2.x instead of 3.x for this project?

    Reply
  • September 14, 2018 at 1:08 pm
    Permalink

    Great stuff man, thank you very much

    Reply
  • October 14, 2018 at 1:29 pm
    Permalink

    Hi Sentdex, I just understood what exactly you are trying to do with the data at around the 7th video in this series.

    I think your first video (here) does not explain clearly the strategy you are going to use in the rest of the series. For your future series (or this series), I suggest that you give an outline of the strategy so that your audience get the big picture. It will help your audience to follow your codes. Overall, I really enjoyed this series so far. Please, keep up the good work.

    Reply
  • December 25, 2018 at 12:49 pm
    Permalink

    Hey! Great videos! Just wondering… why Python 2.7 and not 3.x

    Reply
  • January 1, 2019 at 7:16 am
    Permalink

    For anybody starting this series… I wrote this code in Python, and then re-wrote it in NodeJS (i.e. JavaScript) using python-shell for MatPlotLib. The final code runs way faster in NodeJS. I'm running the 1month data in NodeJS (using more than 800,000 patterns in the searches) as fast as Python runs the 1 day data (using only 30,000 patterns). I wish people moved away from Python for machine learning.

    Reply
  • January 23, 2019 at 4:12 pm
    Permalink

    There's now a source of forex data for training machine learning algorithms in AWS called Hello Forex. You can find it in the AWS marketplace by searching for "forex"

    Reply
  • March 21, 2019 at 2:16 pm
    Permalink

    Sentdex your out of this earth . Your Smart coooooooool!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    Reply
  • March 21, 2019 at 2:16 pm
    Permalink

    I am leaning a lot from you my man . thank you so much .

    Reply
  • April 25, 2019 at 3:00 pm
    Permalink

    Any change this pattern recognition code is available in python 3?. I am very
    new to python and trying to figure out the bugs is well…a job and a half

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *