If you want to learn algorithmic trading, check out this free course that I created here on UA-cam: ua-cam.com/play/PLtqRgJ_TIq8Y6YG8G-ETIFW_36mvxMLad.html
Hi Bro, Use Tensor flow for better charging and use a decision regression tree by training your data from the last 3 years and check on the last year the outcome will be 75% to 90%
@@davidcosta391 Thanks for the video. Mr Corey the binary options Expert trader often said, The people without leverage work for those who have leverage.The people who have fallen behind are the people who fail to utilize the new tools of leverage created during their lifetimes, and the people who fail to use these leveraged tools are the people who work for the people who do, and they physically work harder than the people who use the tools of leverage. Invest with Mr Corey for successful returns.
Hello, I have a question, When i backtest it, i keep getting error messages even though my code and yours are the exact same... what should i do to fix this?
Trading bots are mostly scams... but there are exceptions. You just need a lot a patience to backtest and run many bots, discard the ones that are scams and keep playing with the ones that are good. EDIT: since so many of you ask, yes I use Galileo FX. ..
This is probably one of the best (if not THE best) tutorials I have ever seen. It's clear, short and very informative. Thank you for sharing! I can only hope you'll do more of this!
Thank you very much! I love to see that you like it. I will definitely create more content like this in the future. In fact, I am working on a similar video right now that will hopefully be released by the end of this week.
Agree With you man @ajdaria, this is the first time I came across such a clear and simple video of Algo trading, and God bless you man @Tradeoptionswithme.
Can't wait to try this out. Not interested in having it automatically exeucte the orders for me (too risky); but I have been interested in developing such code in which it would automatically evaluate the current situation, and then have it suggest me to "buy/sell" - at which time I would look at the situation and determine action.
A bot is better in certain ways, but it can also be worse in others. For a full comparison, you could check out this video: ua-cam.com/video/6ctVJcUj6vA/v-deo.html
I appreciate your perspective on algorithmic trading, you seem to have the most complete grasp of it on UA-cam. The ideas you focused around the lookback feature were pure gold. Would love to see some ideas on instrument selection!
Thanks for the feedback. You could check out my latest video: ua-cam.com/video/rYHFGOZM7s8/v-deo.html In it, I show you how you can set up a custom stock universe and select stocks to trade based on their fundamentals.
@@TradeOptionsWithMe Wow, just made my day! This is awesomee work, I will be studying your work in detail. Thanks so much 👏 Also, do you know if it is possible to code an algorithm to execute trades based off of technical analysis triggers related to supply and demand, Fibonacci, patterns, and trend-lines?
@@JWADE0350 Yes, that's absolutely possible. You can check out a list of predefined indicators supported by QC here: www.quantconnect.com/docs/algorithm-reference/indicators#Indicators-Introduction?ref=towm Besides that, it is also possible to create your own indicators if the desired indicator isn't on that list.
@@TradeOptionsWithMe All I need is possible. Thank you so much! Some of the predefined indicators can be used to create what I want and it looks like I’ll have some fun figuring out how to get the fibs and trend lines in. If I can get the tools to work, things could get really interesting🧐 I’ll keep you update!
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.
Wow, this video was a game-changer for me! It made creating my own trading bot a breeze. Highly recommend it! Also, check out "Algorithmic Trading Tutorial Python | Build Trading Algorithm from Scratch" by QuantInsti - another awesome video that helped me understand the fundamentals of algorithmic trading and build my own algorithm. Super helpful and definitely worth watching! Big thanks to both videos for giving me the knowledge and confidence to create my trading bot. Can't wait to see what it can do! 😄🚀
Thanks for the feedback! You could check out my free algorithmic trading course playlist. In it, I go over everything you need to know to get started with algorithmic trading in much more detail.
@@ertugrulcigci yo dude, started the day i commented that, I’m actually kinda good now. Idk if thats motivational, but if you try to learn code hard you can get good quite fast, so... try it!!
That "self.lookback = round(...)" operation looks like a problem to me. When the volatility changes steadily but slowly, it doesn't adapt when the lookback value is low. For example, if lookback is 10 then the volatility change has to be greater than 5% to change the lookback value. Since you round the value to the nearest integer, it will "forget" changes that are less than five percent. So if you get two four percent changes in a row, it won't change the lookback value, even though a cumulative 8% change occurred and we would expect the lookback value to be updated..
Just found your channel. Best for algo noobs I've seen! Would love more videos explaining basics of programming such as programming s/r on last high/lows only, programming trend breakouts etc. Subscribed anyway! Stay well
i've problem with line 22th. there's error like this type AttributeError : 'ResistanceDynamicContainmentField' object has no attribute 'EveryMarketOpen' How to fix that?
Don’t be discouraged. Note that I by no means just coded out this algorithm and recorded that. I first created the algorithm and then just copied he code for this video. In reality, coding a trading bot still requires a lot of looking at the docs, forum posts, debugging, etc. (even if you’re at a more advanced level).
If you want to get into algorithmic trading, I’d recommend first slowly getting into the world of finance/trading. Then you should be able to understand much more.
Amazing work, followed all along the way and FINALLY Made IT !!! Just Wondering if we could use it with Scripts that are being traded in other International Stock Exchanges like PSX, AEX or FTSE And Im really glad that i'm gonna be Software Engineer soon and already a Stock Market Investor (A small One), so a Win-Win for me... WIth lots of Love , from Pakistan
Thanks for the comment and the positive feedback! Currently, QuantConnect mainly supports US markets, but they have added international markets to their upcoming features list. Sadly, I can’t tell you how long it will take for them to add this.
Btw when you say "with that being said" you would normally follow up with something in contradiction to that, it's not something you just say before you begin talking about something. In this case it would be better to say something like "without further ado" or something like that. With that being said, you did appear to use the phrase correctly at the end of the video since it was in contrast to your previous statement.
You Sir, are awesome - I've just discovered your videos and watched a few and you are very knowledgeable, very good at explaining things and provide a lot of very insightful information. Dare I say it....your videos have German-level efficiency. Pls do more.
Thanks for the question. You definitely should know the basics of technical analysis (things such as support, resistance, trend lines, simple indicators, etc.) but I wouldn't say that you need to know various technical based trading systems or anything too specific.
how to add public indicators to this code line if we use our strategy of bot. and we want to send it to api of our account? for ex. when the line turns a colour? or below or upper color etc.
A great algorithmic trading book is "Inside The Black Box": amzn.to/32QAMf4 Otherwise, I have been recommended "Algorithmic Trading: Winning Strategies and Their Rationale" which I haven't read yet: amzn.to/32V7ufA
Is there a way of seeing all the class methods and variables you have access to? Like you have self.History, self.plot, self.Transactions,etc. Is there like a doc where you can see what each function/variable of the class returns, what inputs in needs and so on? Or do you have to know the name of the function, or variables beforehand, and then you can just look it up like you showed on the video.
Hi Timi, Of course, QuantConnect has an extensive documentation. If you already know the name of a given method, you can just search for it. Otherwise, you can check out their documentation here: www.quantconnect.com/docs/home/home?ref=towm If that isn't enough, you can also use their forum. This often leads you to a post of someone in a similar situation. If that still doesn't help, you can always create a forum post yourself.
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
Now this show up: 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(): No module named 'self'
I just cloned and ran it myself to check if there are any problems with the new QC code environment, but for me everything works fine. So I recommend just using the link to clone the code. That should work without problems.
Superb video. But I'd say the best thing to do is buying crypto and just storing it because if you want to trade with it, you could just loose it all just like I did.
Everyone has their reasons for either trading or just storing.I once traded crypto but sadly I didn't make any profit but I finally realized that I lost because I had no idea about cryptos before venturing in trading.
@@TradeOptionsWithMe ok cool thanks bro. can I email you as well if I got future questions on the setup with the trading bot? I rewrote all of the code while watching the whole video to help me understand it more.
This is a very insightful video, thanks for putting it out. Please can you do a video of a trading bot that uses demand and supply, trendline and price action as it's strategy
ok so my code looks good but I keep getting the error for the class MultidimensionalTransdimensionalSplitter(QCAlgorithm): During the algorithm initialization, the following exception has occurred: AttributeError : 'MultidimensionalTransdimensionalSplitter' object has no attribute 'EveryMarket' at Initialize Action(self.EveryMarket)) === at Python.Runtime.PyObject.Invoke (Python.Runtime.PyTuple args in main.py:line 65 AttributeError : 'MultidimensionalTransdimensionalSplitter' object has no attribute 'EveryMarket'
Seems like something is wrong with your definition of the EveryMarket method. It’s hard to say more without additional info. I recommend using the link in the description box to clone my code. That should definitely work.
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
@@TradeOptionsWithMe damn thank you. So how do I actually set it to work between some dates? Let's say I pick 17.03.2022 to 23.03.2022. How do I actually turn it on to run? How do I link my broker app/portofolio to it? And also will it work with any? I need someone with patience to carry me "by hand" through this. I'll repay y'all in a few years when I secure my bag. Thank you for the reply too
@@TradeOptionsWithMe Wow man thank you. Sorry for the late reply I just got out of work haha. I will look into it and definetly pop back IF I have any questions (hopefully not). Thank you man take care.
Also, in the code, how do I change the currencies for BTC/USDT for example? That is one pair I would go for with a broker with good leverage, trusting the bot would carry good operations, over different times. I'll run the tests myself. I have watched the tutorial twice and skipped to parts where I got stuck on to understand so it's kinda hard for me too. Thank you!
How do i make it into a bot that doesn't trade until i click the buy or sell button. It only suggests possible entries. Also, how to i call the value of the low of the previous price bar and the ATR value to create a stop limit entry instead of using market price.
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
It’s just a name chosen by the programmer. To trade crypto, you will need to change the chosen asset (in the initialize function). You can learn more details in my free algorithm trading course on my channel. But note I recommend first learning basic programming by itself.
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?
Not sure exactly what you are trying to accomplish. But you can check out my free Python algorithmic trading course under my playlists for a series on how to code your own algorithms.
@@TradeOptionsWithMe binance limit order trigger once the condition met. For instance if order sells at mentioned price. I want the order to buy again the mentioned price.
Wow!!! I never considered using % for SL. I always thought of pips which unconsciously covert into dollar value which raises my fear of losses... Thanks man👊🏽
You can check out my algorithmic trading course. There I also go through creating a Forex trading bot. The specific video is this one: ua-cam.com/video/CoIu-SXDRvY/v-deo.html
hi, it is possible make a script or an interactive dashboard to monitorize the order book of binance and with this see if are more orders of buy or more orders of sell on the real time and with this if it is possible to know if the price will go up or down on the next 1 minute or 5 minutes?
Thanks for the comment. Yes, that’s definitely possible as long as you have access to the order book data. Currently, QuantConnect does not yet support order book data, however, they have added it to their upcoming feature list, so hopefully, it will be available soon.
@@TradeOptionsWithMe I have acces to the order book of binance. I have a python program that collect all data from binance, but I want to export this data to a Excel or dashboard and filter it by range prices and quantity. Can you help me with this?
Im having trouble with an error keeps getting returned to me and I don't understand why. Ive looked on the internet but there was mention of how to externally launch PyTorch which I don't understand. The error is Build Error: File: n/a Line:0 Column:0 - Python class failed to compile.
Thanks for the comment. What are you trying to do? If you just want to run the code from this video, you should be able to just clone my code using the link in the description box.
Is there a way to include more than one stock in this same script? I'm not a coder, but I have a good strategy that's been working and I want to automate it. I can provide a flow chart of it. What it does is look at a few stocks, whichever has gone down below it's expected value, buy and if it goes above a certain percentage, sell.
Thanks for the question. Yes, it is possible to set up a stock universe so that your algorithm trades multiple stocks. For an example of an algorithm that uses a universe of stocks, check out this video: ua-cam.com/video/zepqjxgf2n4/v-deo.html
Sadly, I can’t say what’s causing the error with this limited information. However, I’d just recommend using the link in the description box to clone my code. That should definitely work.
I'm getting SyntaxError: invalid syntax with todayvol = np.std(close[1:31]) and I rewrote it multiple times just like it's in the video but I keep getting the same error. Help please
Thanks for the comment. Have you tried cloning my algorithm through the link in the description? If the error still persists with that version of the code, definitely let me know! I hope this helps.
No, that’s not a service I currently offer. You could try checking out freelance sites like Fiverr. But I can only recommend learning to code yourself since it is an incredibly valuable skill to have.
do the bots run on some sort of live script or do you just put the data in while loops? like how would i make sure the bot ran "buy" and "sell" commands over and over again?
The QCAlgorithm class calls its event handler functions every time it receives new data. Depending on the chosen resolution, this can be everything from once a day to once a minute or even more frequently. If you want to learn about all the details, I recommend checking out my free algorithmic trading course playlist in which I will be releasing one video a week for the next couple of months.
OnData should start with a capital letter. If that’s not the cause, make sure to use the link in the description box to clone the code from this video.
You can connect it with one of the supported brokers directly through QuantConnect and thereby let it trade live. But I wouldn’t really recommend trading this specific bot with real money
so a few questions... How do we run this in trading platforms other than quantconnect? If I wanted to upload this to TOS, for example, that runs code from thinkscript, will it recognize python code?.. essentially it's just a python code, so it should work, right? How do we print and backtest from other software like VS Code?
Thanks for your questions. To live trade, you have to click on the “Go Live” button next to the backtest button. This will bring you to a page where you can select a broker account to link to the algorithm. You can view the supported brokerages here: www.quantconnect.com/brokerages?ref=towm As of right now, TOS is not one of the supported brokers, so currently you can’t use this code to trade on TOS. As for local development, here is a video that shows how to do that: ua-cam.com/video/FyTP6D_4SQc/v-deo.html Note that local backtesting is currently not possible this way. But it is on their upcoming feature list. I hope this helps.
greetings. I am very new to trading, and exploring all corners and aspects of how people trade. Please explain to me, how can one implement the trading algorithm on to their online broker platform? So I have used this program and made an algorithm. Next, how do I implement it into my broker platform? Or is this strategy made purely to test out a strategy in future events and then You yourself have to implement it into the broker platform? Please let me know as I am a beginner at this sort of field. Thank you!
Hi Jason, Thanks for the question. QuantConnect allows you to directly link your algorithms to your broker account (if you have an account at one of the supported brokers). Otherwise, you usually have to place trade orders through your broker's API and host your algorithm somewhere else. I recommend checking out the following video to learn some more details about how the algorithm interacts with a broker and more: ua-cam.com/video/YVqxCrxKC_c/v-deo.html
In my opinion, the best way to learn is by coming up with example strategies such as this one and then trying to implement them with the help of the docs and the forum. It’s best, however, to start by learning Python if you aren’t familiar with it already. Otherwise, like I said in the video, the QuantConnect boot camp is a great way to get started. I hope this helps.
Thanks for the comment. It’s very hard to say what causes this problem with so little info. I’d recommend using the link in the description box to clone my algorithm. That should definitely work.
If you use a platform such as QuantConnect, you won’t have to use the broker’s API. Here is a list of some great algorithmic trading platforms: tradeoptionswithme.com/best-algo-trading-platforms/ Besides the features and commissions of a broker, the other factors to consider are also outlines in that article (programming language, documentation/support, price of data, etc.) Often brokers don’t offer free data which means that you have to buy data somewhere. This can be very expensive which is one of the main reasons why I recommend an all-in-one platform such as QuantConnect. I hope this helps.
Hello, I am new to this. I tested this bot and I managed to work, but to no avail, showing no results and information. Is there anything wrong with the code to make no results show?
Sure, I’d recommend learning how to code from scratch. Start with the basics and when you feel that you understand a programming language such as Python good enough, you can start getting into algorithmic trading. Without understanding standard Python code, it will be very hard to understand QuantConnect’s Python API. There are plenty of great free resources that can help you learn how to code.
@@TradeOptionsWithMe if you could pick one class, book, or UA-cam series to learn python (engineering background) what would it be? all encompassing if possible :p
If you could pick one encompassing resources to learn python, which would it be? Ive tried to learn in the past, but have been discouraged since im always being told im not gonna learn anything since said course is missing this or that :(
@@cortez-eq7qb @MRuiz Thanks for the comment. Since it has been many years since I have learned Python, I can't really give you a specific resource to learn Python. But there are countless great free resources that are easy to find. And don't worry about finding the "one" best "holy-grail" resource. The best way to learn is to learn the basics and then just practice, experiment, and try around a bunch. The most important part is just to get started. I hope this helps.
@@TradeOptionsWithMe Thank you! I have to accept that no such thing exists, the best thing i can do is identify my weakness and seek resources from there. Thank you for setting me straight.
Keep getting a Syntax error on line 56, despite following your code to the letter. The error reads: "Build Error: File: main.py Line:56 Column:104 - SyntaxError: invalid syntax"
Thanks for letting me know. Sadly, I can't really tell you what's wrong without seeing your code. I recommend just using the link in the description box to clone my code. That should definitely work.
If you want to learn algorithmic trading, check out this free course that I created here on UA-cam: ua-cam.com/play/PLtqRgJ_TIq8Y6YG8G-ETIFW_36mvxMLad.html
Hi Bro,
Use Tensor flow for better charging and use a decision regression tree by training your data from the last 3 years and check on the last year
the outcome will be 75% to 90%
@@davidcosta391 Thanks for the video. Mr Corey the binary options Expert trader often said, The people without leverage work for those who have leverage.The people who have fallen behind are the people who fail to utilize the new tools of leverage created during their lifetimes, and the people who fail to use these leveraged tools are the people who work for the people who do, and they physically work harder than the people who use the tools of leverage. Invest with Mr Corey for successful returns.
@Coreytradings.
@@bostananwar592 hello send me a telegram ... i also do machine learning in trade. share our experience @EasyInvestForeva
Hello, I have a question, When i backtest it, i keep getting error messages even though my code and yours are the exact same...
what should i do to fix this?
This guy made a trading bot in just 23 minutes AND he explained everything AND its working!
Massive respect!!
Hello 👋 How well does it work?? I’ve been watching other videos they all don’t seem to work
Trading bots are mostly scams... but there are exceptions. You just need a lot a patience to backtest and run many bots, discard the ones that are scams and keep playing with the ones that are good. EDIT: since so many of you ask, yes I use Galileo FX. ..
@@leonidaschang8849 it helps having prior knowledge in python and coding in general.
This is probably one of the best (if not THE best) tutorials I have ever seen. It's clear, short and very informative. Thank you for sharing! I can only hope you'll do more of this!
Thank you very much! I love to see that you like it. I will definitely create more content like this in the future. In fact, I am working on a similar video right now that will hopefully be released by the end of this week.
Agree With you man @ajdaria, this is the first time I came across such a clear and simple video of Algo trading, and
God bless you man @Tradeoptionswithme.
this is true
@Борис Кутузов How you figure the data is fake? Genuinely curious as to how you think they’d still be in business with trash information.
Can't wait to try this out. Not interested in having it automatically exeucte the orders for me (too risky); but I have been interested in developing such code in which it would automatically evaluate the current situation, and then have it suggest me to "buy/sell" - at which time I would look at the situation and determine action.
That’s a great plan!
But isn´t a robot better than a human at making trading decisions? It leaves appart the emotional mistakes.
A bot is better in certain ways, but it can also be worse in others. For a full comparison, you could check out this video: ua-cam.com/video/6ctVJcUj6vA/v-deo.html
@@TradeOptionsWithMe is there more advanced systems that utilize machine learning, and if so why are they not chosen over bots like these?
Totally agree 👍
I appreciate your perspective on algorithmic trading, you seem to have the most complete grasp of it on UA-cam. The ideas you focused around the lookback feature were pure gold. Would love to see some ideas on instrument selection!
Thanks for the feedback. You could check out my latest video: ua-cam.com/video/rYHFGOZM7s8/v-deo.html
In it, I show you how you can set up a custom stock universe and select stocks to trade based on their fundamentals.
@@TradeOptionsWithMe Wow, just made my day! This is awesomee work, I will be studying your work in detail. Thanks so much 👏
Also, do you know if it is possible to code an algorithm to execute trades based off of technical analysis triggers related to supply and demand, Fibonacci, patterns, and trend-lines?
@@JWADE0350 Yes, that's absolutely possible. You can check out a list of predefined indicators supported by QC here: www.quantconnect.com/docs/algorithm-reference/indicators#Indicators-Introduction?ref=towm
Besides that, it is also possible to create your own indicators if the desired indicator isn't on that list.
@@TradeOptionsWithMe All I need is possible. Thank you so much! Some of the predefined indicators can be used to create what I want and it looks like I’ll have some fun figuring out how to get the fibs and trend lines in. If I can get the tools to work, things could get really interesting🧐 I’ll keep you update!
@@JWADE0350 any updates??
Just to let you know I concur with everyone below. Exceptional, and people like me are still learning from it! Thank you so much!
Blessed are the ones who help others learn
I am a beginner here. This video gives me hope for a better future. Thanks
Despite the economic downturn, i'm so happy I have been earning $24,000 returns from my $7000 investment every 7days with Mrs Jane maria
Went to sleep like Gandhi, woke up like Bezos
Lol😂😂😂
F Gandhi destroyed india.
Who know real history will understand.
Not the one that is framed by his followers.
@@pruthvi7798 He just mean that he didn't have a lot of money
@@pruthvi7798 how so?
I'd rather be Gandhi than Bezos lol
The MultidimensionalTransdimensionalSplitter class is intended to teleport your molecules to another dimension.
Lmao. I had a chuckle at this as well. It reminds me of my variable/function/class names. 'new_dictionary_for_arbitrary_items = {}'.
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.
Thanks for the comment. You could check out my free algorithmic trading course playlist on my channel. In it, I cover all the basics and much more.
This is great. Im still digesting the algo.
I might have a lot of questions once I get a better grasp.
You broke it down so well....and made me rest assured it's possible...your argument in the strategy are very good.
I made a bot that only bought high and sold low I woke up this morning to find my account depleted
I wonder why ;D
Perfection. I'd like to buy your algorithm :D
I really would like your programs. At least it will tell what not to do to my other bot.
Bro, just flip the if else statement and you’ll make millions
You created a Frankenstein bot. LOL.
Love this. Alot of creators would charge for a tutorial like this. Subbed.
Thanks!
Wow, this video was a game-changer for me! It made creating my own trading bot a breeze. Highly recommend it!
Also, check out "Algorithmic Trading Tutorial Python | Build Trading Algorithm from Scratch" by QuantInsti - another awesome video that helped me understand the fundamentals of algorithmic trading and build my own algorithm. Super helpful and definitely worth watching!
Big thanks to both videos for giving me the knowledge and confidence to create my trading bot. Can't wait to see what it can do! 😄🚀
This isone of the absolute best tutorials i have ever seen. i would love to see more of your material. Thank you
Thanks for the feedback! You could check out my free algorithmic trading course playlist. In it, I go over everything you need to know to get started with algorithmic trading in much more detail.
This is so good.
All i have to do now is learn Coding.
And trading.
That makes two of us lol 😂
@@estou_aqui-2361 make that 3 😁
@@ertugrulcigci yo dude, started the day i commented that, I’m actually kinda good now.
Idk if thats motivational, but if you try to learn code hard you can get good quite fast, so... try it!!
@@estou_aqui-2361 podes partilhar onde é que encontraste a informação para aprender? E sinceramente, tens conseguido tirar dinheiro?
@@GoovyLiOn site hacker rank, tambem fazendo meus proprios projetos. Ainda não, comecei a menos de um mes.
That "self.lookback = round(...)" operation looks like a problem to me. When the volatility changes steadily but slowly, it doesn't adapt when the lookback value is low. For example, if lookback is 10 then the volatility change has to be greater than 5% to change the lookback value. Since you round the value to the nearest integer, it will "forget" changes that are less than five percent. So if you get two four percent changes in a row, it won't change the lookback value, even though a cumulative 8% change occurred and we would expect the lookback value to be updated..
A good fix would be to define the loopback time in hours instead of days, this way a smaller change is needed to change the number
You train so well! It's like you comprehend my tempo...
This is amazing content! Can’t wait for more!
Just found your channel. Best for algo noobs I've seen! Would love more videos explaining basics of programming such as programming s/r on last high/lows only, programming trend breakouts etc. Subscribed anyway! Stay well
Thanks for the positive feedback and the suggestions!
I can just imagine someone making one of these and accidently putting a > instead of a
That’s why it’s very important to thoroughly test and analyze your code before letting it trade with any real money.
"Doh!"
-Homer Simpson
Then they probably would make money.
@@whatsgoingon07 haha
I'm still looking for my mistake I'm having a back test error😟😟
Thank you so much for your tutorial . I am going to try to use it with other parameters
Priceless video! A little complicated for those not familiar with coding though...
If you’re new to coding you don’t need to be trying quant bots. Go check out some JavaScript tutorial videos
i've problem with line 22th. there's error like this
type AttributeError : 'ResistanceDynamicContainmentField' object has no attribute 'EveryMarketOpen'
How to fix that?
That’s odd. Are you sure you copied the algorithm correctly? Try cloning it and see if you still have the error.
@@TradeOptionsWithMe that fixed, thanks dude
Omg you're on another planet trading like tht. I find it just impressive and somewhat discouraging at the same time.
Don’t be discouraged. Note that I by no means just coded out this algorithm and recorded that. I first created the algorithm and then just copied he code for this video. In reality, coding a trading bot still requires a lot of looking at the docs, forum posts, debugging, etc. (even if you’re at a more advanced level).
I don't understand what any of these trading terms mean but this was fascinating
If you want to get into algorithmic trading, I’d recommend first slowly getting into the world of finance/trading. Then you should be able to understand much more.
I can't figure out how to backtest on Paris market symbols
I think you may have just changed my life my friend.
Thanks for Watching
☝️Whatsapp for more info
Amazing work, followed all along the way and FINALLY Made IT !!!
Just Wondering if we could use it with Scripts that are being traded in other International Stock Exchanges like PSX, AEX or FTSE
And Im really glad that i'm gonna be Software Engineer soon and already a Stock Market Investor (A small One), so a Win-Win for me...
WIth lots of Love ,
from Pakistan
Thanks for the comment and the positive feedback! Currently, QuantConnect mainly supports US markets, but they have added international markets to their upcoming features list. Sadly, I can’t tell you how long it will take for them to add this.
How is the job market like in Pakistan?
Everything works at its best!!
Btw when you say "with that being said" you would normally follow up with something in contradiction to that, it's not something you just say before you begin talking about something. In this case it would be better to say something like "without further ado" or something like that. With that being said, you did appear to use the phrase correctly at the end of the video since it was in contrast to your previous statement.
You Sir, are awesome - I've just discovered your videos and watched a few and you are very knowledgeable, very good at explaining things and provide a lot of very insightful information. Dare I say it....your videos have German-level efficiency. Pls do more.
Thank you very much for your encouragement and kind words!
Awesome lesson and such a better way to get your data i've seen others copy code straight from Yahoo's page's
This is gold. 🙏🏽
is it necessary for an aspiring quant trader to know technical analysis and its indicators or price action
Thanks for the question. You definitely should know the basics of technical analysis (things such as support, resistance, trend lines, simple indicators, etc.) but I wouldn't say that you need to know various technical based trading systems or anything too specific.
@@TradeOptionsWithMe thanks
Спасибо!
This is soo good, I please make more tutorial!
Thanks for sharing!
Glad you like it. You should check out my full free course on my channel
Great video, and really good job explaining the code. Thanks.
very good tutorial . very clean . i am happy you didn't start digging deep into any specific feature - sotNice tutorialng that happens to too many
how to add public indicators to this code line if we use our strategy of bot. and we want to send it to api of our account? for ex. when the line turns a colour? or below or upper color etc.
What an informative channel I just found!! Do you have any alg. trading book you would like to recommend?
A great algorithmic trading book is "Inside The Black Box": amzn.to/32QAMf4
Otherwise, I have been recommended "Algorithmic Trading: Winning Strategies and Their Rationale" which I haven't read yet: amzn.to/32V7ufA
Yes, bro would love to see more video from this channel. Thank you Mr.Tradeoptionsiwithme!
Found my digital mentor here.
Is there a way of seeing all the class methods and variables you have access to? Like you have self.History, self.plot, self.Transactions,etc. Is there like a doc where you can see what each function/variable of the class returns, what inputs in needs and so on? Or do you have to know the name of the function, or variables beforehand, and then you can just look it up like you showed on the video.
Hi Timi,
Of course, QuantConnect has an extensive documentation. If you already know the name of a given method, you can just search for it. Otherwise, you can check out their documentation here: www.quantconnect.com/docs/home/home?ref=towm
If that isn't enough, you can also use their forum. This often leads you to a post of someone in a similar situation. If that still doesn't help, you can always create a forum post yourself.
Your English is better than the queen's sir!
Goddamit, how didnt i found this channel before? Liked and subscribed.
Awesome, thanks for the support!
Dear God what are you teaching??? Pretty cool appreciate the vid.
What programming languages are needed to learn training software development??
That totally depends. For QuantConnect, Python is enough. You can check out my full free Python algorithmic trading course on my channel to learn more
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
Did you clone the code using the link in the description box?
Now this show up: 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(): No module named 'self'
I just cloned and ran it myself to check if there are any problems with the new QC code environment, but for me everything works fine. So I recommend just using the link to clone the code. That should work without problems.
@@TradeOptionsWithMe Yup, have just copied the code and runs perfectly. Thanks
Thanks for these tutorials... Would you please make one for Bitcoin or ethereum one day
Added it to my TODO-list.
Please 💯
hi can you help me i am not using any such web but developing my own bot i know python can you inform me what else should i learn??
??
Superb video. But I'd say the best thing to do is buying crypto and just storing it because if you want to trade with it, you could just loose it all just like I did.
Everyone has their reasons for either trading or just storing.I once traded crypto but sadly I didn't make any profit but I finally realized that I lost because I had no idea about cryptos before venturing in trading.
I think making investments in crypto seems to be the best move to make right now.
This was a very useful video. Thank you.
You are very welcome. Glad you liked it!
cant seem to get the progrom to run terminal keeps saying "the '...TransdimensionalQuantum...' In line 3 is not a defined class" somebody please help?
It’s impossible to say what the problem is from your comment. But you can just use the link in the description box to clone my code.
@@TradeOptionsWithMe ok cool thanks bro. can I email you as well if I got future questions on the setup with the trading bot? I rewrote all of the code while watching the whole video to help me understand it more.
the backtest isn't working for me. It always says something about "Failed to Register service worker".
And yet somehow people are saying UA-cam isn't a replacement for college
Soon enough with corporate gatekeeping it won't be. Just look at the scumbags at elsevier.
@@foetusdeletus6313 why tf is youtube megacorp so anti tutorial?
That’s exactly what the colleges want you to think
This is a very insightful video, thanks for putting it out.
Please can you do a video of a trading bot that uses demand and supply, trendline and price action as it's strategy
I get an error in the todayvol command and I don´t know why, send help
You can use the link in the description box to clone my code. That should work. Otherwise, let me know
ok so my code looks good but I keep getting the error for the class MultidimensionalTransdimensionalSplitter(QCAlgorithm):
During the algorithm initialization, the following exception has occurred: AttributeError : 'MultidimensionalTransdimensionalSplitter' object has no attribute 'EveryMarket'
at Initialize
Action(self.EveryMarket))
===
at Python.Runtime.PyObject.Invoke (Python.Runtime.PyTuple args in main.py:line 65
AttributeError : 'MultidimensionalTransdimensionalSplitter' object has no attribute 'EveryMarket'
Seems like something is wrong with your definition of the EveryMarket method. It’s hard to say more without additional info. I recommend using the link in the description box to clone my code. That should definitely work.
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
You can’t backtest the future since that data is not yet available. That should be the cause of the error.
@@TradeOptionsWithMe damn thank you. So how do I actually set it to work between some dates? Let's say I pick 17.03.2022 to 23.03.2022. How do I actually turn it on to run? How do I link my broker app/portofolio to it? And also will it work with any? I need someone with patience to carry me "by hand" through this. I'll repay y'all in a few years when I secure my bag. Thank you for the reply too
Check out my newest video, in it I go over how to deploy to live trading and connect your broker platform.
@@TradeOptionsWithMe Wow man thank you. Sorry for the late reply I just got out of work haha. I will look into it and definetly pop back IF I have any questions (hopefully not). Thank you man take care.
Also, in the code, how do I change the currencies for BTC/USDT for example? That is one pair I would go for with a broker with good leverage, trusting the bot would carry good operations, over different times. I'll run the tests myself. I have watched the tutorial twice and skipped to parts where I got stuck on to understand so it's kinda hard for me too. Thank you!
how do i get the prebuilt parts
You can use the link in the comment section to clone the code.
So I did everything as you and it got a error it said failed to compile python what does that even mean?
It's hard to say what the problem is without seeing the code. I recommend just using the link in the description box to clone my code.
How do i make it into a bot that doesn't trade until i click the buy or sell button. It only suggests possible entries.
Also, how to i call the value of the low of the previous price bar and the ATR value to create a stop limit entry instead of using market price.
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
It’s just a name chosen by the programmer. To trade crypto, you will need to change the chosen asset (in the initialize function). You can learn more details in my free algorithm trading course on my channel. But note I recommend first learning basic programming by itself.
That was immensely helpful-- thank you!
You are very welcome!
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?
I want to create a bot that executes my buy and sell price.. is it possible?
Not sure exactly what you are trying to accomplish. But you can check out my free Python algorithmic trading course under my playlists for a series on how to code your own algorithms.
@@TradeOptionsWithMe binance limit order trigger once the condition met. For instance if order sells at mentioned price. I want the order to buy again the mentioned price.
@@TradeOptionsWithMe creating limit orders using bot.
Yes, that is absolutely possible. You can learn how to do this and much more in the aforementioned course.
The stock you have to use does it have to be rising
is it for carcked rust or steam rust?
is this for equity markets or forex? and does this code only work for this api or other api's
This algorithm is for equities, but QuantConnect also supports Forex.
Wow!!! I never considered using % for SL. I always thought of pips which unconsciously covert into dollar value which raises my fear of losses... Thanks man👊🏽
Always use % for stop loss
why stocks try to do an example for Forex pairs like EUR/USD or , GPB/USD
You can check out my algorithmic trading course. There I also go through creating a Forex trading bot. The specific video is this one: ua-cam.com/video/CoIu-SXDRvY/v-deo.html
Man i have a trading statigy using the daily timeframe and the supertrend indicator on trading vue is it possible to make an algo that would do this?
hi, it is possible make a script or an interactive dashboard to monitorize the order book of binance and with this see if are more orders of buy or more orders of sell on the real time and with this if it is possible to know if the price will go up or down on the next 1 minute or 5 minutes?
Thanks for the comment. Yes, that’s definitely possible as long as you have access to the order book data. Currently, QuantConnect does not yet support order book data, however, they have added it to their upcoming feature list, so hopefully, it will be available soon.
@@TradeOptionsWithMe I have acces to the order book of binance. I have a python program that collect all data from binance, but I want to export this data to a Excel or dashboard and filter it by range prices and quantity. Can you help me with this?
If you have the data, that’s great. I’d recommend using Python’s Pandas library to filter and analyze the data.
Im having trouble with an error keeps getting returned to me and I don't understand why. Ive looked on the internet but there was mention of how to externally launch PyTorch which I don't understand. The error is
Build Error: File: n/a Line:0 Column:0 - Python class failed to compile.
Thanks for the comment. What are you trying to do? If you just want to run the code from this video, you should be able to just clone my code using the link in the description box.
@@TradeOptionsWithMe ok I’ll do that and let you know what happens
It would be interesting to import TensorFlow and work with AI for the self.initialStopRisk and self.trailingStopRisk values.
It sure would be.
Is there a way to include more than one stock in this same script? I'm not a coder, but I have a good strategy that's been working and I want to automate it. I can provide a flow chart of it. What it does is look at a few stocks, whichever has gone down below it's expected value, buy and if it goes above a certain percentage, sell.
Thanks for the question. Yes, it is possible to set up a stock universe so that your algorithm trades multiple stocks. For an example of an algorithm that uses a universe of stocks, check out this video: ua-cam.com/video/zepqjxgf2n4/v-deo.html
@@TradeOptionsWithMe Thanks for the quick reply.
Can anyone tell me when he writes the line to sell the stocks?
you are so good i love this video u saved me from dyin
this is an excellent tutorial . thanks a lot ~!
Can't get it working unfortunately. When I backtest it says "error line 20: object has no attribute 'symbol'". What have I done wrong?
Sadly, I can’t say what’s causing the error with this limited information. However, I’d just recommend using the link in the description box to clone my code. That should definitely work.
On what platform would you run your script for real after your tested It and found It oké?
QuantConnect allows you to host your algorithms directly on their platform.
I'm getting SyntaxError: invalid syntax with todayvol = np.std(close[1:31]) and I rewrote it multiple times just like it's in the video but I keep getting the same error. Help please
Thanks for the comment. Have you tried cloning my algorithm through the link in the description? If the error still persists with that version of the code, definitely let me know!
I hope this helps.
is there a simple code to have it buy your chosen stock every minunte
I’d recommend checking out the QuantConnect boot camp for some simpler introductory algorithms to get started.
@@TradeOptionsWithMe do you think you coul;d make the code for me and pay you or somthing
No, that’s not a service I currently offer. You could try checking out freelance sites like Fiverr. But I can only recommend learning to code yourself since it is an incredibly valuable skill to have.
do the bots run on some sort of live script or do you just put the data in while loops? like how would i make sure the bot ran "buy" and "sell" commands over and over again?
The QCAlgorithm class calls its event handler functions every time it receives new data. Depending on the chosen resolution, this can be everything from once a day to once a minute or even more frequently. If you want to learn about all the details, I recommend checking out my free algorithmic trading course playlist in which I will be releasing one video a week for the next couple of months.
@@TradeOptionsWithMe thanks man!
Hi I am getting a syntax error on the def onData line, will you help me please?
OnData should start with a capital letter. If that’s not the cause, make sure to use the link in the description box to clone the code from this video.
How do I implement and make use of this bot?
You can connect it with one of the supported brokers directly through QuantConnect and thereby let it trade live. But I wouldn’t really recommend trading this specific bot with real money
Is this for options or no because I don’t see a time of trade an amount an I heard you say shares through the video
No this is not for options. But I do have a different coding video for an options trading bot.
so a few questions... How do we run this in trading platforms other than quantconnect? If I wanted to upload this to TOS, for example, that runs code from thinkscript, will it recognize python code?.. essentially it's just a python code, so it should work, right? How do we print and backtest from other software like VS Code?
Thanks for your questions. To live trade, you have to click on the “Go Live” button next to the backtest button. This will bring you to a page where you can select a broker account to link to the algorithm. You can view the supported brokerages here: www.quantconnect.com/brokerages?ref=towm
As of right now, TOS is not one of the supported brokers, so currently you can’t use this code to trade on TOS.
As for local development, here is a video that shows how to do that: ua-cam.com/video/FyTP6D_4SQc/v-deo.html
Note that local backtesting is currently not possible this way. But it is on their upcoming feature list.
I hope this helps.
greetings.
I am very new to trading, and exploring all corners and aspects of how people trade.
Please explain to me, how can one implement the trading algorithm on to their online broker platform?
So I have used this program and made an algorithm.
Next, how do I implement it into my broker platform?
Or is this strategy made purely to test out a strategy in future events and then You yourself have to implement it into the broker platform?
Please let me know as I am a beginner at this sort of field.
Thank you!
Hi Jason,
Thanks for the question. QuantConnect allows you to directly link your algorithms to your broker account (if you have an account at one of the supported brokers).
Otherwise, you usually have to place trade orders through your broker's API and host your algorithm somewhere else. I recommend checking out the following video to learn some more details about how the algorithm interacts with a broker and more: ua-cam.com/video/YVqxCrxKC_c/v-deo.html
Where did u learn it?
In my opinion, the best way to learn is by coming up with example strategies such as this one and then trying to implement them with the help of the docs and the forum.
It’s best, however, to start by learning Python if you aren’t familiar with it already.
Otherwise, like I said in the video, the QuantConnect boot camp is a great way to get started.
I hope this helps.
Can it be used with kucoin for crypto
I copied everything exactly but when backtesting only blank charts appear with no data or change in my initial equity
Thanks for the comment. It’s very hard to say what causes this problem with so little info. I’d recommend using the link in the description box to clone my algorithm. That should definitely work.
Could you please show us what types of broker APIs are available out there and tell us their pros and cons?
If you use a platform such as QuantConnect, you won’t have to use the broker’s API. Here is a list of some great algorithmic trading platforms: tradeoptionswithme.com/best-algo-trading-platforms/
Besides the features and commissions of a broker, the other factors to consider are also outlines in that article (programming language, documentation/support, price of data, etc.)
Often brokers don’t offer free data which means that you have to buy data somewhere. This can be very expensive which is one of the main reasons why I recommend an all-in-one platform such as QuantConnect.
I hope this helps.
Hello, I am new to this. I tested this bot and I managed to work, but to no avail, showing no results and information. Is there anything wrong with the code to make no results show?
Have you used the link in the description box to clone the code?
@@TradeOptionsWithMe i feel stupid
this guy is so cooool!!!!
How would you begin to use the bot within your brokerage?
i have a trading background but i dont know anything about programming can you help me figuring out what should i do
Sure, I’d recommend learning how to code from scratch. Start with the basics and when you feel that you understand a programming language such as Python good enough, you can start getting into algorithmic trading. Without understanding standard Python code, it will be very hard to understand QuantConnect’s Python API.
There are plenty of great free resources that can help you learn how to code.
@@TradeOptionsWithMe if you could pick one class, book, or UA-cam series to learn python (engineering background) what would it be? all encompassing if possible :p
If you could pick one encompassing resources to learn python, which would it be? Ive tried to learn in the past, but have been discouraged since im always being told im not gonna learn anything since said course is missing this or that :(
@@cortez-eq7qb @MRuiz Thanks for the comment. Since it has been many years since I have learned Python, I can't really give you a specific resource to learn Python. But there are countless great free resources that are easy to find. And don't worry about finding the "one" best "holy-grail" resource. The best way to learn is to learn the basics and then just practice, experiment, and try around a bunch.
The most important part is just to get started.
I hope this helps.
@@TradeOptionsWithMe Thank you! I have to accept that no such thing exists, the best thing i can do is identify my weakness and seek resources from there. Thank you for setting me straight.
Keep getting a Syntax error on line 56, despite following your code to the letter.
The error reads:
"Build Error: File: main.py Line:56 Column:104 - SyntaxError: invalid syntax"
Thanks for letting me know. Sadly, I can't really tell you what's wrong without seeing your code. I recommend just using the link in the description box to clone my code. That should definitely work.
Anyone have any tips to add more sophistication to this algorithm?
Have you checked out my free algorithmic trading course on my channel? There you might find some inspiration