Robinhood trading bot - How to Build a Robinhood auto-stock trader in Python (part 7)

Поділитися
Вставка
  • Опубліковано 28 вер 2024
  • Well, this is it. The final part of the "Robinhood trading bot - How to Build a Robinhood auto-stock trader" series. This video is part 7 of a 7 part series on how to design a Robinhood trading bot to interact with and trade your stocks for you. If you would like to see the previous episode, Robinhood trading bot - How to Build a Robinhood auto-stock trader in Python (part 6) before watching this one, click this link:
    • Robinhood trading bot ...
    In this video, we take the grapher.py file we made in part 6 and integrate it into the trader.py file that we started back in part 2. This will give us visual feedback throughout the day as our trading bot trades stocks throughout the day.
    The code that we have been making in this series can be found here:
    github.com/chr...
    As always, thank you again to my brother for editing the video. He has done a great job on the whole series!

КОМЕНТАРІ • 40

  • @uzdabest7
    @uzdabest7 Рік тому +1

    Hey Chris, have you tried to use this for Crypto trading in Robinhood? Or has anyone else tried?

  • @ventiladorbueno1846
    @ventiladorbueno1846 2 роки тому +1

    Thank youu

  • @blair3821
    @blair3821 3 роки тому +2

    Can I do this on a MacBook???
    I am using the terminal instead of CMD prompt

    • @ComputerGuyChris
      @ComputerGuyChris  3 роки тому

      That should be fine as long as you have Python installed on your MacBook.

  • @MrEugeneleo
    @MrEugeneleo 3 роки тому +1

    is there more strategy libraries instead of writing each from scratch?

    • @ComputerGuyChris
      @ComputerGuyChris  3 роки тому

      yes, great question. I eventually plan on making an add-on video about it but if you look into the "technical analysis" library, that should give you some good stuff to work with.

  • @clutchspwnz6971
    @clutchspwnz6971 3 роки тому +1

    Can this work for options as well or just the asset it’s self?

    • @ComputerGuyChris
      @ComputerGuyChris  3 роки тому

      Looking at the robin_stocks api, you can trade options. I am less familiar with option trading so I have not set up the trader for option trading but it is possible using the same robin_stocks api.

  • @jesualli9242
    @jesualli9242 10 місяців тому

    Yo Chris? Thank you so much! These videos were so helpful and i am SO happy that you were able to take some time off to focus on your relationship with God. Hope you're doing well!

  • @reginaldholland4906
    @reginaldholland4906 3 роки тому +1

    i been using your bot for a couple of weeks now and it has made some money for me but it also has prevented me from losing a lot of money.i want to add a line in telling it not to sell certain stocks in my pertfolio or for each stock it buys it has to hold for at least 24 hours before selling.any ideas what that line might look like?

    • @ComputerGuyChris
      @ComputerGuyChris  3 роки тому +1

      I am happy the bot is working for you and making you a bit of money. If you want to change the parameters in which the bot buys or sells a stock, there are really 2 places do to it. (1) in the Trade_strat.py file or (2) in the main loop of the Trader.py file. For what you are describing, I would recommend editing the Trader.py file. If you want to tell your bot to hold a stock for a period of time, just add another attribute to each stock that is when the stock was bought and say "if day>stock_bought+num_days: SELL"

    • @Adam_Lam
      @Adam_Lam Рік тому

      Hey Reginald. If you don’t mind, how much money are you making using this bot? Have you implemented your own strategy or just tested out different stocks? Currently I have made about a dollar using the exact strategy in this video, but have been testing different stocks and changing the allowable holdings and conditional statement in the buy section. Next test for me is to try trading only one high volume stock over a day to see how much I either make or lose

    • @reginaldholland4906
      @reginaldholland4906 Рік тому

      @@Adam_Lam actually I'm no longer using because I switched to TD Ameritrade but I remember that I put my own MACD strategy in a 60 - 70% win rate.....it went down after the market started acting wacky

    • @Adam_Lam
      @Adam_Lam Рік тому

      @@reginaldholland4906 Yeah, I was thinking about using TD Ameritrade too since they seem friendlier for this sort of thing. Are you using an auto trader and how much money are you making with it if so? Are you using 50-day and 200-day moving averages?

  • @wyattt1234
    @wyattt1234 3 роки тому

    any one have any example strategies that have been mildly positive that you can point me to

  • @WiseInvestor123
    @WiseInvestor123 3 роки тому +1

    Hello My program running but it is not buying at the time it says or selling. It will just print out BUT or SELL but is not buy at the market when the time it says to. Can you help

    • @ComputerGuyChris
      @ComputerGuyChris  3 роки тому

      Yes, I made it that was specifically so people had to make the change to know they are playing with real money. Just go into the buy and sell functions and uncomment the section of code that is the actual buy and sell commands. If you have any issues I have additional instructions on my GitHub. Happy trading!

    • @WiseInvestor123
      @WiseInvestor123 3 роки тому +1

      @@ComputerGuyChris Thank you for your reply. i did get the issue fix . seeing if i can addd the RSI indicator as and buy

    • @WiseInvestor123
      @WiseInvestor123 3 роки тому

      @@ComputerGuyChris Hey what is your SMA based off off. The buy trigger is not buying but if i buy it myself . I do see that the limit sell order does trigger order just fine

    • @ComputerGuyChris
      @ComputerGuyChris  3 роки тому

      @@WiseInvestor123 you definitely can because I use it on mine haha

    • @ComputerGuyChris
      @ComputerGuyChris  3 роки тому

      @@WiseInvestor123 sma is based off of current price compared to average price for the past X days, also, you can add a buffer if you want. If the code is not buying, make sure everything that is commented should be.

  • @danielbarry3191
    @danielbarry3191 3 роки тому

    Chris, I'm getting this error when I try to run the code:
    Traceback (most recent call last):
    File "C:\Users\Daniel\AppData\Local\atom\app-1.57.0\TradeBot\trader.py", line 97, in
    login(days=1)
    File "C:\Users\Daniel\AppData\Local\atom\app-1.57.0\TradeBot\trader.py", line 12, in login
    rh.authentication.login(username=config.USERNAME,
    AttributeError: module 'robin_stocks' has no attribute 'authentication'
    Any thoughts on how to resolve it?

    • @danielbarry3191
      @danielbarry3191 3 роки тому

      I was able to resolve the issue, so no worries!

  • @davidbernal4147
    @davidbernal4147 3 роки тому

    Hey Chris, this is great. Are you planning to do reviews of your current classes?

    • @ComputerGuyChris
      @ComputerGuyChris  3 роки тому

      Yes, I was taking the last semester off which is why the channel took a break from the OMSCS program. I am finishing up my current course “Machine Learning” and there will be a full review coming out.

    • @davidbernal4147
      @davidbernal4147 3 роки тому +1

      @@ComputerGuyChris Thank you. Love your videos BTW, I am planning to take ML next year. Hopefully it is not as complicated as some of the OMS Central reviews make it look.

  • @rverm1000
    @rverm1000 3 роки тому

    which file do you start to get all of them working?

    • @ComputerGuyChris
      @ComputerGuyChris  3 роки тому

      I included a README in the github that should explain everything you need to do to get the system working.
      To run the code:
      1. place all files in the same folder
      2. place your USERNAME and PASSWORD to "config.py"
      3. modify "trade_strat.py" to your personal trading strategy
      4. modify the "get_stocks()" function in the "trader.py" file with your stocks to watch
      5. un-comment the "sell()" and "buy()" functions in the "trader.py" file when you are ready to trade on the live market

    • @rverm1000
      @rverm1000 3 роки тому

      @@ComputerGuyChris have you had any luck getting vwap? Stocks above vwap are usually going up. Below vwap there going down. This would dramatically improve the odds of getting a good stock to trade

    • @ComputerGuyChris
      @ComputerGuyChris  3 роки тому

      @@rverm1000 I have not implemented VWAP as one of my indicators so I cannot speak to it.

  • @GTX790SLI
    @GTX790SLI 2 роки тому +2

    Did you learn this in ML4T?

    • @ComputerGuyChris
      @ComputerGuyChris  2 роки тому +1

      No, taking ML4T is what inspired me to make this but this was all self taught. I had to do a bunch of research into robinstocks and everything to get it to work and it took a bit of time. That is why I wanted to share it here to make it easier for anyone else who wanted to make their own.