Guias

How to Code a Trading Bot in Python – Beginners Guide








In this video, we are going to code a python trading algorithm in the QuantConnect platform. Feel free to code along!

Check out QuantConnect:
(This is a referral link.)

Clone my algorithm here:

The best algorithmic trading platforms:

Follow me on:
Facebook:
Twitter:
Pinterest:
Instagram:

Link do Vídeo






47 Comentários

  1. Can you make a bot that buys instantly after giving it the asset name and sells as soon as price goes up say 20% from buying point? Possibly including a stoploss

  2. Is everymarketopen just a name or is the bot programmed to only work when markets are open. If so how do I change it so it always works and I can use it to trade crypto

  3. When i backtested it, showed up this error: Algorithm.Initialize() Error: During the algorithm initialization, the following exception has occurred: Loader.TryCreatePythonAlgorithm(): Unable to import python module ./cache/algorithm/project/main.pyc. AlgorithmPythonWrapper(): name 'QCAlgorithm' is not defined

  4. Yay Im saved. Im trying to build the cv part of my fully autonomous trading bot. Mines just for high frequency scalping. My power automation and think or swim fully built out automations cant implement my logic on a minute to minute candle basis. And multiplying my instances and signing i to multiple other accounts was not feasible in this manner, maybe long term.

    K thanks for insight!

  5. What if I want to change the security from SPY to something like FTCI or NINE? When I try to do this I get an error while backtesting. "Trying to retrieve an element from a collection using a key that does not exist in that collection throws a KeyError exception. To prevent the exception, ensure that the close key exist in the collection and/or that collection is not empty.
    at pandas._libs.hashtable.PyObjectHashTable.get_item
    File "hashtable_class_helper.pxi" in hashtable_class_helper.pxi: line 1613"

  6. People who believe this are actually idiots, the thumbnail says £4000 per hour, thats 350,000,000 in 10 years. If you believe this what are you doing with your life

  7. Thank you for your Trading Bot on SPY from 2018 to 2020.
    1 In 2018 and in 2019, there were several instances when the Price fell below and then went above your Trailing Stop Loss.
    Would your Trading Bot Stop you Out and Buy Back In when Price fell below and then went above the Trailing Stop Loss in 2018 and 2019?

    2 Similarly, in 2020 with the COVID-19 Crash in February and March, would your Trading Bot Stop you out and Buy Back on recovery?

    3 If as a trader of the SPY, if you Held onto your SPY Shares during the same time period 2018 to 2020, what would have been the difference in gains in shares and dollar amount?

  8. Excellent vid. Watched a few others but none as easy to follow as this fella. Top respect for your effort to help us all. Can a time command be added to the take profit element? As in set a time to automatically take all profit at various times or time intervals? Thanks.

  9. the backtest isn't working for me. It always says something about "Failed to Register service worker".

  10. hello awesome tutorial, I built this along with you and it's awesome!! I'm wondering though about the asset you used SPY does this look for how that one particular ETF did?

  11. Hello can you please help me? I cloned your algorithm and I keep getting this error when I want to backtest it "Please select an algorithm end date greater than start date". What do I do? I put 2022/03/16 as a start date and 2022/03/18 as an end date. It seems right to me but not to IT. Can someone suggest any solutions please???? Thank y'all

  12. Btw, I hope you make a video on coding a bot for trading. But the trading signal is based on indicators. For example, moving average indicators.

  13. How to spend a lot of money in fees and spend a lot of your time losing your money – Beginner's Guide

  14. I have thought about making a program to do this but don’t have the skills that u have. I’m glad u made it public. Thanks. Also I’m sure you could tweak the code depending on if you felt we were in a bear market or bull. Very cool idea.

  15. I know this video is just meant as a tutorial for creating a trading algorithm, but I am just curious, does anyone know how effective these things actually are?? Like they obviously can't be perfect otherwise everyone would do it and constantly be making money. But what are the areas in which these often fail? And when these algorithms are successful what are the typical returns that one would expect to see from it?

Comentários estão fechados.