Algorithmic Trading Strategy in Python

Поделиться
HTML-код
  • Опубликовано: 3 июл 2021
  • In this video we learn how to implement an algorithmic trading strategy in Python.
    DISCLAIMER: This is not investing advice. I am not a professional who is qualified in giving any financial advice. This is a video purely about programming using financial data.
    ◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
    📚 Programming Books & Merch 📚
    🐍 The Python Bible Book: www.neuralnine.com/books/
    💻 The Algorithm Bible Book: www.neuralnine.com/books/
    👕 Programming Merch: www.neuralnine.com/shop
    🌐 Social Media & Contact 🌐
    📱 Website: www.neuralnine.com/
    📷 Instagram: / neuralnine
    🐦 Twitter: / neuralnine
    🤵 LinkedIn: / neuralnine
    📁 GitHub: github.com/NeuralNine
    🎙 Discord: / discord
    🎵 Outro Music From: www.bensound.com/
  • НаукаНаука

Комментарии • 73

  • @birdkiller1234
    @birdkiller1234 2 года назад +3

    Dude, you are in beast mode... Awesome videos. Much love, thanks for making your videos

  • @MatBat__
    @MatBat__ 2 года назад

    Nice bro! Will try this algo, thank you. Keep them comming

  • @asmodeus4310
    @asmodeus4310 2 года назад +1

    Great video man, today, i can finally say, that i got real knowledge

  • @maiconreis9276
    @maiconreis9276 2 года назад

    Perfect video. I like this very much. Thank man.

  • @melsaied101
    @melsaied101 Год назад

    This was awesome. Thank you.

  • @rvforte8
    @rvforte8 2 года назад

    Great tutorial man, thanks!
    What PyCharm theme is it you're using?

  • @robertjulesyoung9994
    @robertjulesyoung9994 Год назад +2

    it would be awesome if you could put the algorithm in real use, using a sandbox may be, to see how much would you make in a month or so. but, what I'm gonna do is, I will use this algorithm and try to adjust the parameters for different stocks. it would be really good for swing trading. thanks a lot for your time, great video!

  • @jorgeoliveiralawinskyfilho7069
    @jorgeoliveiralawinskyfilho7069 2 года назад

    Amazing Video, Gratitude! Gratitude!

  • @CodeTradingCafe
    @CodeTradingCafe 2 года назад

    Nicely explained!

  • @gabrielmessias7814
    @gabrielmessias7814 2 года назад

    Thanks bro..... helped a lot....

  • @larrygranda6447
    @larrygranda6447 2 года назад

    Good day to you You make it look so easy!. Would be nice to have a no code option like PlutoHQ Trading or Three Commas or FXTrader but do they work?

  • @ubermedic8
    @ubermedic8 2 года назад +1

    Is there anyway using Pandas Datareader to get different time frames of data. For example, right now using the Yahoo source, we are getting daily adjusted closes, but I'd like to make an SMA algorithm using 4 hour adjusted closes instead.
    Thanks

  • @jorgeoliveiralawinskyfilho7069
    @jorgeoliveiralawinskyfilho7069 2 года назад +3

    Please, how could we include ADX for confirmation? With different values for ADX, +DI, -DI? This would improve a lot the results, believe me. Gratitude Master.

  • @lakeguy65616
    @lakeguy65616 28 дней назад

    Have you ever considered a video about linking a trading bot with a brokerage account? Or a video about how to trade using the Schwab API for traders? thank you.

  • @redacted5594
    @redacted5594 2 года назад +3

    Great tutorial! I have one question though, when I generate the plot, all of the dates on the x axis are very congested. I tried to maximise the window like you did but it stated the same. Any help would be greatly appreciated. Thanks!

    • @redacted5594
      @redacted5594 2 года назад +1

      I figured it out. Pycharm was generating the plot in the scientific window as a png rather than as a figure in its own window

  • @chapmansbg
    @chapmansbg 2 года назад +1

    Nice python work but the prices you are getting are daily closes, wouldn't you be better off using yfinance so that you can specify the chart time frame?

  • @qitube7476
    @qitube7476 2 года назад

    Hallo Florian, welche Python-Programmier-Plattform nutzt Du für Dein Coding?
    Ich bin Python-Anfänher.
    Danke für Deine Unterstützung & Frohe Weihnachten!
    Beste Grüße
    Frank

  • @dany2685
    @dany2685 День назад

    I would combine this algorithm with a DCA one so for example if it says buy we have two cases:
    1. Sell when reaching buy level + 100 pips
    2. Buy more using a step let's say 100 pips each step. After multiple buy trades if we have a profit of 100 points with our DCA we'll sell all trades
    Do the same for a first sell trade but reversed

    • @dany2685
      @dany2685 День назад

      Also you will not have access to yahoo finance anymore. I offer free downloads of csv on my website for forex.

  • @srmyrm
    @srmyrm 2 года назад

    How to setup this program to give the next future signal? , i believe re-running the program will change the past buy/sell signal based on incremental data and we lost track of previous buy/sell points, please advice

  • @alifebz5312
    @alifebz5312 4 месяца назад

    hi! how are you? can I ask which software you used for making the code, Im using vscode and I tried used the same code it showed me a lot of errors.. I just start started learning programming recently and id like to know more and be better coder.

  • @kavekaaveau9289
    @kavekaaveau9289 Год назад

    does the data reader already have access to the yahoo api? i try to Run the same as you did in the video but no data prints. im new to coding but any help is much appreciated

  • @Tendo_27
    @Tendo_27 Год назад

    Thank you so much for this video!!

  • @moali173
    @moali173 2 года назад

    Is it possible to build a trading bot with okex platform ?

  • @sazamhashmi
    @sazamhashmi 2 года назад

    Nice video, thanks, how can i contact you ? and one more question what the icon for which is black with fan symbol in the bottom tab. hope to hear from you soon.

    • @NeuralNine
      @NeuralNine  2 года назад +1

      Depends on for what you want to contact me. For business inquiries use the mail. For anything else social media or discord. But I don't do troubleshooting

    • @sazamhashmi
      @sazamhashmi 2 года назад

      @@NeuralNine well, it could turn out to be a good business for us both.

  • @rakeshjat5127
    @rakeshjat5127 2 года назад

    Please make a detaile video on ccxt python

  • @milikest
    @milikest 2 года назад

    Good coding section. A better way to test an algo on stocks, it is better to test it on down-trends. Because many theories can make you earn on an uptrend. If the algo profits on downtrend than it can be said that it is working. And unfortunately sma, ema , bollinger bands or rsi, they can give an idea about trades. There are many things to consider, but I think correct elliot wave count is the best way to predict the future. And here important word is 'correct'.

    • @usamasaad9334
      @usamasaad9334 Год назад

      But elliott is sometimes gets so much complex and i dont think it is easy to make a bot out of elliott

  • @ventiladorbueno1846
    @ventiladorbueno1846 2 года назад

    Thxs

  • @TejrajParab
    @TejrajParab 2 года назад

    Wow!

  • @bigden288
    @bigden288 2 года назад +1

    Great video, can you make a video on how to code to trade with real money in a broker's platform. Else please share some insights about it and can I use the knowledge of this video

  • @saidud1459
    @saidud1459 2 года назад

    the fact that my brain has still not developed but he is developing my brain

  • @priyamd4759
    @priyamd4759 Год назад

    Please show how to handle live stream data.

  • @krispyren
    @krispyren 2 года назад

    Thank you! Great tutorial. What about implementing a percentage gain and including it in the if statement? Wont that guarantee gains?

  • @rtr195807
    @rtr195807 2 года назад +4

    panda Datareader has probs with connection at the time.
    pandas_datareader._utils.RemoteDataError: Unable to read URL

    • @user-kq5cd7bd3o
      @user-kq5cd7bd3o 2 года назад

      I ran into the same problem with this and another tutorial. Seems like the yahoo finance service is down at the moment....

    • @rtr195807
      @rtr195807 2 года назад +3

      @@user-kq5cd7bd3o You can use instead:
      import pandas
      from pandas_datareader import data as pdr
      import yfinance as yfin
      yfin.pdr_override()
      then
      df = pdr.get_data_yahoo("TSLA", start="yyyy-mm-dd", end="yyyy-mm-dd")
      print(df)

    • @erictovbin4200
      @erictovbin4200 2 года назад

      @@rtr195807 Thank you!

    • @user-nr9zn3de3r
      @user-nr9zn3de3r 2 года назад

      @@rtr195807 Thank you

  • @sauelac3898
    @sauelac3898 2 года назад

    what program are you using

  • @prod.ot5
    @prod.ot5 2 года назад

    this video is very good but Invert the buy and sell it would perform better

    • @1queijocas
      @1queijocas 2 года назад

      This strategy is only good to learn how to code; not for actually trading

  • @gorge9774
    @gorge9774 2 года назад

    Can someone give me the code ?

    • @destiny_02
      @destiny_02 2 года назад

      Just use Google lens

  • @GameSmilexD
    @GameSmilexD 2 года назад

    Your content is top quality, but fintech is kinda a waste of talent, just my opinion, good work

  • @danx_x155
    @danx_x155 2 года назад

    Code code plzz

    • @NeuralNine
      @NeuralNine  2 года назад

      watch my Q&A episode 1

    • @danx_x155
      @danx_x155 2 года назад

      @@NeuralNine I'm getting errors need to compare it to mine

  • @shourya9998
    @shourya9998 2 года назад +6

    This guy has got the skills, he should learn how to code

    • @gus.stviaaa
      @gus.stviaaa 2 года назад

      Yeah totally

    • @destiny_02
      @destiny_02 2 года назад

      And you should learn how to set profile photo on RUclips

    • @shourya9998
      @shourya9998 2 года назад +2

      @@destiny_02 that joke went above your head, didn't it?

  • @north32street
    @north32street 2 года назад +1

    this video doesn't make sense where are the predictions?????????

    • @robinweaver4690
      @robinweaver4690 2 года назад

      No predictions, it provides an indication of when might be good to buy and when might be good to sell

    • @north32street
      @north32street 2 года назад

      @@robinweaver4690 i know that, but it oldy provides old indications

  • @fabulousr2d2
    @fabulousr2d2 2 года назад +1

    I'm new to this and I keep getting this:🤣🤣
    KeyError: 'Adj CLose'