Guias

How to Build a Trading Bot in Python – #2 Developing and Implementing a Trading Strategy








Welcome back to the trading bot mini-series. After going over how the general set up and API connection, we can look into developing a trading strategy. Today, I will show you how you can implement the martingale strategies with Alpaca. These strategies can be risky, but since we have unlimited funds with paper trading, I thought it would be fun to go over. In the next video, we will discuss ways to deploy and automate our trading bot in the cloud. That video will conclude this mini-series. Stay tuned for more!

First video Trading Bot video (setup and API connection):
Alpaca documentation:

Social Links:
▶ Github:
▶ Instagram:

Link do Vídeo






48 Comentários

  1. Having a trading plan is essential for every trader. Trading with Mrs Monroe's platform and understanding its unique premise could help you formulate better your own trading plan.

  2. Great video, im currently following ur tutorial to make my own trading bot. Waiting for the last part 😁😁

  3. i keep getting TypeError: unsupported operand type(s) for -: 'str' and 'int' for the part where we have to make delta = target – self.position

  4. Very nice video, i found oil wit a great trading bot idea. I would appreciate if you would come in touch with me. Best regards from switzerland

    L-M

  5. Can store your secret key 🔑 and/or token on a separate machine and have python call it when running code?

  6. congratulations on the channel and video, I wanted your contact because I am wanting to set up a grid robot that will act according to RSI would have and have the function of dragging upwards?

  7. I am getting some issues using the martingale line of code. I am new to python and I don't understand what I need to do it says the error is that "martingale" is not defined (for the "class Martingale(object): & t=Martingale() ) and therefore the "t" in the last line isnt defined as well. How can I fix this?

  8. I liked , subbed and also commented on this video so plz keep up the good content. hope you will reach more subz in the future. (Edit:- I sounds like a bot but this is not a spam comment)

  9. Hi, I'm not sure what the logic in the submit_order function means. Why do you want to buy if delta>0 and sell if delta<0? Looking forward to the third video; thank you!

  10. Great guide, much more straight forward and succinct than some others. At 5:44, as you are writing the buy statement, do you say "if the position is more than 0"? or "lower than 0"? It sounds like more to me, but you write a less than sign at line 29. Should that be reversed to a greater than symbol?

  11. Hi I'm from Brazil. I was looking for videos in python, I found your channel, I've seen other channels showing how to get the shares in Google Finance of any company in the video. of shares of some company, and use your bot to create tests, I believe that a history of 4 years ago, it would be interesting to see how your bot behaves. and teach how to save the company's history in some database. for future testing. here's my suggestion. big hug, I will follow more, another question is, have you ever studied the API of SaxoBank in Denmark? I await your return.

  12. Hey Davide, really enjoy your good content! You said, "everytime i run the code, it will execute depending on the condition"..So i need to keep on pressing "run" button for it to run? or it could be automated, too? Thanks for the tutorials 🙂

Comentários estão fechados.