Тёмный

How to Code a Trading Bot in Python - Beginners Guide 

TradeOptionsWithMe
Подписаться 65 тыс.
Просмотров 806 тыс.
50% 1

In this video, we are going to code a python trading algorithm in the QuantConnect platform. Feel free to code along!
Check out QuantConnect: www.quantconnect.com/?ref=towm
(This is a referral link.)
Clone my algorithm here: www.quantconnect.com/forum/di...
The best algorithmic trading platforms: tradeoptionswithme.com/best-a...
Follow me on:
Facebook: / tradeoptionswithme
Twitter: / louis_options
Pinterest: / louistradeoptionswithme
Instagram: / tradeoptionswithme

Опубликовано:

 

21 сен 2020

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 707   
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
If you want to learn algorithmic trading, check out this free course that I created here on RU-vid: ru-vid.com/group/PLtqRgJ_TIq8Y6YG8G-ETIFW_36mvxMLad
@bostananwar592
@bostananwar592 3 года назад
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%
@gabrielanthony816
@gabrielanthony816 3 года назад
@@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.
@gabrielanthony816
@gabrielanthony816 3 года назад
@Coreytradings.
@torbokovsanat
@torbokovsanat 3 года назад
@@bostananwar592 hello send me a telegram ... i also do machine learning in trade. share our experience @EasyInvestForeva
@awake7018
@awake7018 2 года назад
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?
@wardaddy9489
@wardaddy9489 3 года назад
This guy made a trading bot in just 23 minutes AND he explained everything AND its working! Massive respect!!
@lwazidlamini8338
@lwazidlamini8338 2 года назад
Hello 👋 How well does it work?? I’ve been watching other videos they all don’t seem to work
@leonidaschang8849
@leonidaschang8849 2 года назад
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. ..
@jungyo8417
@jungyo8417 Год назад
@@leonidaschang8849 it helps having prior knowledge in python and coding in general.
@mrCetus
@mrCetus 2 года назад
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!
@drewwoo
@drewwoo 3 года назад
This is amazing content! Can’t wait for more!
@hesaidshesaid5149
@hesaidshesaid5149 Год назад
Just to let you know I concur with everyone below. Exceptional, and people like me are still learning from it! Thank you so much!
@betoperalta701
@betoperalta701 3 года назад
This is great. Im still digesting the algo. I might have a lot of questions once I get a better grasp.
@violian5
@violian5 3 года назад
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.
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
That’s a great plan!
@kalilveramartinez4617
@kalilveramartinez4617 3 года назад
But isn´t a robot better than a human at making trading decisions? It leaves appart the emotional mistakes.
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
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: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-6ctVJcUj6vA.html
@thegoldenatlas753
@thegoldenatlas753 2 года назад
@@TradeOptionsWithMe is there more advanced systems that utilize machine learning, and if so why are they not chosen over bots like these?
@skylarkenneth2407
@skylarkenneth2407 2 года назад
Totally agree 👍
@kennethgituro7578
@kennethgituro7578 2 года назад
You broke it down so well....and made me rest assured it's possible...your argument in the strategy are very good.
@Young_Santana808
@Young_Santana808 3 года назад
Thank you so much for your tutorial . I am going to try to use it with other parameters
@DD-pk7ed
@DD-pk7ed 3 года назад
Love this. Alot of creators would charge for a tutorial like this. Subbed.
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
Thanks!
@tooshlong
@tooshlong 3 года назад
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
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
Thanks for the positive feedback and the suggestions!
@JP-xb9fv
@JP-xb9fv 2 года назад
This isone of the absolute best tutorials i have ever seen. i would love to see more of your material. Thank you
@TradeOptionsWithMe
@TradeOptionsWithMe 2 года назад
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.
@JWADE0350
@JWADE0350 3 года назад
I appreciate your perspective on algorithmic trading, you seem to have the most complete grasp of it on RU-vid. The ideas you focused around the lookback feature were pure gold. Would love to see some ideas on instrument selection!
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
Thanks for the feedback. You could check out my latest video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-rYHFGOZM7s8.html In it, I show you how you can set up a custom stock universe and select stocks to trade based on their fundamentals.
@JWADE0350
@JWADE0350 3 года назад
@@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?
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
@@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.
@JWADE0350
@JWADE0350 3 года назад
@@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!
@s3dghost
@s3dghost 2 года назад
@@JWADE0350 any updates??
@paulblack2649
@paulblack2649 3 года назад
Great video, and really good job explaining the code. Thanks.
@aposoria8682
@aposoria8682 3 года назад
I made a bot that only bought high and sold low I woke up this morning to find my account depleted
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
I wonder why ;D
@ohyash
@ohyash 3 года назад
Perfection. I'd like to buy your algorithm :D
@sovrign
@sovrign 3 года назад
I really would like your programs. At least it will tell what not to do to my other bot.
@andychen3044
@andychen3044 3 года назад
Bro, just flip the if else statement and you’ll make millions
@kw9494
@kw9494 3 года назад
You created a Frankenstein bot. LOL.
@jpeg.600x2
@jpeg.600x2 3 года назад
Went to sleep like Gandhi, woke up like Bezos
@pulkitsharmapremiumvideos9252
@pulkitsharmapremiumvideos9252 3 года назад
Lol😂😂😂
@pruthvi7798
@pruthvi7798 3 года назад
F Gandhi destroyed india. Who know real history will understand. Not the one that is framed by his followers.
@mason2769
@mason2769 3 года назад
@@pruthvi7798 He just mean that he didn't have a lot of money
@jpeg.600x2
@jpeg.600x2 3 года назад
@@pruthvi7798 how so?
@soejrd24978
@soejrd24978 3 года назад
I'd rather be Gandhi than Bezos lol
@manit77
@manit77 3 года назад
The MultidimensionalTransdimensionalSplitter class is intended to teleport your molecules to another dimension.
@Xaminn
@Xaminn 3 года назад
Lmao. I had a chuckle at this as well. It reminds me of my variable/function/class names. 'new_dictionary_for_arbitrary_items = {}'.
@bradtaylor6139
@bradtaylor6139 2 года назад
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.
@TradeOptionsWithMe
@TradeOptionsWithMe 2 года назад
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.
@hurricanesking8533
@hurricanesking8533 3 года назад
This is gold. 🙏🏽
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
Create your free QuantConnect account here: www.quantconnect.com/?ref=towm
@ahmetsuatyildiz4836
@ahmetsuatyildiz4836 3 года назад
What can be done with free account? I am very at the beginning.
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
@@ahmetsuatyildiz4836 You can still develop, research, and backtest algorithms with a free account. There just are some minor restrictions such as limited Logs, and a short backtest delay. If you want to live trade your algorithms, you would also have to upgrade your account.
@ahmetsuatyildiz4836
@ahmetsuatyildiz4836 3 года назад
@@TradeOptionsWithMe Thank you for the info. Firstly, I have to learn the fundamentals. If your solution help me, I could start with a free account.
@thorsoundsystem-doct6103
@thorsoundsystem-doct6103 3 года назад
During the algorithm initialization, the following exception has occurred: AttributeError : 'HyperActiveYellowCrocodile' object has no attribute 'Shedule' at Initialize in main.py:line 20 AttributeError : 'HyperActiveYellowCrocodile' object has no attribute 'Shedule' WHILE TESTING...HELP?
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
@@thorsoundsystem-doct6103 Thanks for leaving a comment. Sadly, I can't tell you what exactly is causing the error. That's why I recommend just using the link in the description box to clone my code. That will definitely work.
@florencepestel4454
@florencepestel4454 Год назад
You train so well! It's like you comprehend my tempo...
@tg3470
@tg3470 3 года назад
This was a very useful video. Thank you.
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
You are very welcome. Glad you liked it!
@jesusurbina6138
@jesusurbina6138 3 года назад
this is an excellent tutorial . thanks a lot ~!
@desisher5292
@desisher5292 3 года назад
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.
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
Thank you very much for your encouragement and kind words!
@Anonymous-dy5hb
@Anonymous-dy5hb 11 месяцев назад
Blessed are the ones who help others learn
@Dero88
@Dero88 3 года назад
This is so good. All i have to do now is learn Coding. And trading.
@estou_aqui-2361
@estou_aqui-2361 3 года назад
That makes two of us lol 😂
@ertugrulcigci
@ertugrulcigci 3 года назад
@@estou_aqui-2361 make that 3 😁
@estou_aqui-2361
@estou_aqui-2361 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!!
@GoovyLiOn
@GoovyLiOn 3 года назад
@@estou_aqui-2361 podes partilhar onde é que encontraste a informação para aprender? E sinceramente, tens conseguido tirar dinheiro?
@estou_aqui-2361
@estou_aqui-2361 3 года назад
@@GoovyLiOn site hacker rank, tambem fazendo meus proprios projetos. Ainda não, comecei a menos de um mes.
@karenkrohn8003
@karenkrohn8003 3 года назад
That was immensely helpful-- thank you!
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
You are very welcome!
@hari.santoso
@hari.santoso 2 года назад
I am a beginner here. This video gives me hope for a better future. Thanks
@jeffwilson2918
@jeffwilson2918 2 года назад
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
@thetradingbotbootcamp2309
@thetradingbotbootcamp2309 2 года назад
Priceless video! A little complicated for those not familiar with coding though...
@boshao13
@boshao13 Год назад
If you’re new to coding you don’t need to be trying quant bots. Go check out some JavaScript tutorial videos
@HawkIjr
@HawkIjr 3 года назад
Enjoyed the video. Thanks you for sharing. I was looking for a interface just like this to create a back testing algo for the trading group I am a member of. I believe this will be a great place to start.
@stanleymassam9908
@stanleymassam9908 2 года назад
Any update? How’d it go?
@mystif1976
@mystif1976 Год назад
Awesome lesson and such a better way to get your data i've seen others copy code straight from Yahoo's page's
@Stisse12
@Stisse12 2 года назад
This is soo good, I please make more tutorial! Thanks for sharing!
@TradeOptionsWithMe
@TradeOptionsWithMe 2 года назад
Glad you like it. You should check out my full free course on my channel
@GuyFawkes911
@GuyFawkes911 3 года назад
great video would love to see more
@utibeobot5905
@utibeobot5905 Год назад
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
@Wikibadi
@Wikibadi Год назад
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
@baptiste6436
@baptiste6436 3 года назад
I can't figure out how to backtest on Paris market symbols
@BlunderMunchkin
@BlunderMunchkin 3 года назад
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..
@ralfantino2291
@ralfantino2291 2 года назад
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
@zayn3608
@zayn3608 3 года назад
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
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
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.
@dogguy5405
@dogguy5405 3 года назад
How is the job market like in Pakistan?
@ImmoralKoala
@ImmoralKoala 3 года назад
I can just imagine someone making one of these and accidently putting a > instead of a
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
That’s why it’s very important to thoroughly test and analyze your code before letting it trade with any real money.
@whatsgoingon07
@whatsgoingon07 3 года назад
"Doh!" -Homer Simpson
@bill7778
@bill7778 3 года назад
Then they probably would make money.
@johnp5761
@johnp5761 3 года назад
@@whatsgoingon07 haha
@barbaradunn9632
@barbaradunn9632 3 года назад
I'm still looking for my mistake I'm having a back test error😟😟
@marcovalentinoalvarado3290
@marcovalentinoalvarado3290 3 года назад
Goddamit, how didnt i found this channel before? Liked and subscribed.
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
Awesome, thanks for the support!
@younghwanchae1422
@younghwanchae1422 3 года назад
What an informative channel I just found!! Do you have any alg. trading book you would like to recommend?
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
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
@22449738
@22449738 3 года назад
Yes, bro would love to see more video from this channel. Thank you Mr.Tradeoptionsiwithme! Found my digital mentor here.
@vidurawijekoon8482
@vidurawijekoon8482 3 года назад
Great content!
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
Thanks!
@darhan9417
@darhan9417 2 года назад
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.
@shadowxxx2055
@shadowxxx2055 Год назад
great video. nice.
@danbarton6946
@danbarton6946 3 года назад
keep up the good work
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
Thank you!
@2khz
@2khz 3 года назад
I don't understand what any of these trading terms mean but this was fascinating
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
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.
@mzsincere1122
@mzsincere1122 2 года назад
Thanks for this
@chptr7117
@chptr7117 Год назад
Everything works at its best!!
@HITthegymwithjkhman
@HITthegymwithjkhman 2 года назад
Very educational
@jhonatanmaia5652
@jhonatanmaia5652 3 года назад
Great video, you could do a video about the metatrader5 library for python
@Gregoz987
@Gregoz987 3 года назад
Omg you're on another planet trading like tht. I find it just impressive and somewhat discouraging at the same time.
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
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).
@artugonza5410
@artugonza5410 2 года назад
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?
@jiraiYT
@jiraiYT 3 года назад
Dear God what are you teaching??? Pretty cool appreciate the vid.
@codydietrich4246
@codydietrich4246 2 года назад
Thank you!
@karmaalwaysprevail1202
@karmaalwaysprevail1202 2 года назад
this guy is so cooool!!!!
@JcadeH1
@JcadeH1 3 года назад
And yet somehow people are saying RU-vid isn't a replacement for college
@foetusdeletus6313
@foetusdeletus6313 3 года назад
Soon enough with corporate gatekeeping it won't be. Just look at the scumbags at elsevier.
@jpeg.600x2
@jpeg.600x2 3 года назад
@@foetusdeletus6313 why tf is youtube megacorp so anti tutorial?
@HaloDude557
@HaloDude557 3 года назад
That’s exactly what the colleges want you to think
@KennTollens
@KennTollens 3 года назад
Sweet thank you
@anshulzade6355
@anshulzade6355 2 года назад
Great !!
@georgemavimbela
@georgemavimbela 3 года назад
Thanks for these tutorials... Would you please make one for Bitcoin or ethereum one day
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
Added it to my TODO-list.
@stevecross9159
@stevecross9159 3 года назад
Please 💯
@roderickjohnson9989
@roderickjohnson9989 3 года назад
This was dope
@veliem3935
@veliem3935 3 года назад
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👊🏽
@calebcoble7468
@calebcoble7468 3 года назад
Always use % for stop loss
@elcapitan549
@elcapitan549 2 года назад
I think you may have just changed my life my friend.
@headoverheels9050
@headoverheels9050 2 года назад
Thanks for Watching ☝️Whatsapp for more info
@loot6
@loot6 Год назад
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.
@moodi1102
@moodi1102 3 года назад
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.
@alexandrefrota97
@alexandrefrota97 3 года назад
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.
@lucasjoel3255
@lucasjoel3255 3 года назад
I think making investments in crypto seems to be the best move to make right now.
@Andrew-dj1wd
@Andrew-dj1wd 2 года назад
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?
@sceploxgamingchannel2355
@sceploxgamingchannel2355 2 года назад
Stop loss vs ruggedness diminishes!Dant think of it.Peesistence is key thx
@pentaflouride3213
@pentaflouride3213 3 года назад
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.
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
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.
@thomas01charles67
@thomas01charles67 3 года назад
Keep going bro
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
Thanks!
@xLenny22x
@xLenny22x 3 года назад
It would be interesting to import TensorFlow and work with AI for the self.initialStopRisk and self.trailingStopRisk values.
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
It sure would be.
@aldrenvaldez8384
@aldrenvaldez8384 Год назад
Hello! Thank you for this wonderful tutorial. I am currently using your code and trying it out in the live paper trading. I just noticed that it still not buying asset after a few days of running. Is it okay if I will be the one to buy instead of waiting for itself to make a buy order?
@Boufonamong
@Boufonamong 2 года назад
Your English is better than the queen's sir!
@ryankao1983
@ryankao1983 3 года назад
thank you ~~
@WallstreetFlip
@WallstreetFlip 3 года назад
good content
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
Thank you!
@hari.santoso
@hari.santoso 2 года назад
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.
@TradeOptionsWithMe
@TradeOptionsWithMe 2 года назад
You should check out my free algo trading course playlist. In it, I create such bots as examples.
@fazlulhaque920
@fazlulhaque920 Год назад
Like bro!)
@roberthuber2770
@roberthuber2770 3 года назад
Fantastic video! Thank you so much! I am a full time student interested in investing, however I do find manual trading, at least in the fashion I prefer, to be time consuming. I hope to leverage my programming experience (C++ and C#) to manage a portfolio for me. I coded along with you in another window and plan to do some developing and back-testing over the weekend. One major change based on the information above would be adding various securities. I am planning around 10-20 stocks, and I was curious if you had any recommendations for making efficient modification to the program. Of course, I am aware modifications to the percentages will need to be made. I recall you mentioning this at one point in the video. Admittedly, I am unfamiliar with python but the language feels rather user friendly. Would adding multiple securities be as simple as adding additional addEquity commands and adjusting percentages?
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
That sounds like a great idea! Adding multiple securities can be done in various ways. Firstly, you have to ask yourself whether you want a fixed universe of securities. This would be the easiest to add. Alternatively, you could also add a dynamic universe of securities. Either way the main modifications include: 1. Implementing the security selection. For a fixed universe, this can be done by multiple AddEquity commands. For a dynamic universe, you would have to add a universe selection model/function. 2. Changing the main parameters from a single value to a collection of values. E.g. currently this algorithm saves the stop loss price of the open position in a single variable. For multiple securities, you would need to be able to access this value for each security. A dictionary with the security’s symbol as the key would be a good way to accomplish this. I have 2 other example algorithms videos similar to this one where I actually implement a bot with a dynamic universe of stocks. If you want to, you could check them out here: Earnings-based bot: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-zepqjxgf2n4.html Fundamentals-based bot: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-rYHFGOZM7s8.html Note that QuantConnect also supports C# but since the majority of the community prefers Python, the support isn’t as good as for Python. I hope this helps. Let me know if you have any other questions or comments.
@jasonlernox5767
@jasonlernox5767 3 года назад
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!
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
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: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-YVqxCrxKC_c.html
@harshalmohagaonkar
@harshalmohagaonkar 3 года назад
is it necessary for an aspiring quant trader to know technical analysis and its indicators or price action
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
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.
@harshalmohagaonkar
@harshalmohagaonkar 3 года назад
@@TradeOptionsWithMe thanks
@Fr3shTiger
@Fr3shTiger 3 года назад
Great video! I really want to get more into algorithmic trading. Just out of curiosity, how do you actually move this algorithm into live trading? Is there a way to move an algorithm to a brokerage account?
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
Next to the backtest button, there is a “Go Live” button which brings you to a page where you can set it up for live trading or paper trading. You can view a list of supported brokers here: www.quantconnect.com/brokerages?ref=towm
@Fr3shTiger
@Fr3shTiger 3 года назад
@@TradeOptionsWithMe Thank you! I haven't used any of those sites before. I think all of them don't have free trading. Assuming you used a similar bot to the one you made on this video, I was wondering with how many trades the bot is likely to make if the commission on the trade would substantially hurt your earnings.
@Fr3shTiger
@Fr3shTiger 3 года назад
@@TradeOptionsWithMe ^^That might be a stupid question as I didn't look at all the sites in a lot of depth haha. Thanks anyways!
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
@@Fr3shTiger Hi, the great thing about QuantConnect is that you can actually set a commission-model for your algorithm so that it accurately accounts for trading costs. I believe they even have a commission model for specific brokerages. For instance, you could set SetBrokerageModel(BrokerageName.InteractiveBrokersBrokerage, AccountType.Cash); to account for IB's commission costs. For more details, I recommend looking at the documentation of the commission models. I hope this helps.
@younghwanchae1422
@younghwanchae1422 3 года назад
Could you please show us what types of broker APIs are available out there and tell us their pros and cons?
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
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.
@aleksanderorzechowski5580
@aleksanderorzechowski5580 3 года назад
Pure Gold
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
Thanks!
@pareshprajapati7916
@pareshprajapati7916 2 года назад
Thank you sir 🇮🇳🕉️💓🙏
@davidxu6477
@davidxu6477 3 года назад
Hey, interesting work, one question here, which trading broker can let you install that trading bot into? Thanks.
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
Thanks for the question. You can check out the list of currently supported brokers here: www.quantconnect.com/brokerages?ref=towm
@edijenggotz
@edijenggotz 3 года назад
i've problem with line 22th. there's error like this type AttributeError : 'ResistanceDynamicContainmentField' object has no attribute 'EveryMarketOpen' How to fix that?
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
That’s odd. Are you sure you copied the algorithm correctly? Try cloning it and see if you still have the error.
@edijenggotz
@edijenggotz 3 года назад
@@TradeOptionsWithMe that fixed, thanks dude
@arsalanvsgite4076
@arsalanvsgite4076 2 года назад
tnx
@rc.3760
@rc.3760 3 года назад
Thanks for the tutorial. I got stuck I may have entered the wrong line of code. I can not find it? Any Suggestion???
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
I’d recommend just using the link in the description box to clone the algorithm. That should definitely work.
@taranagnew436
@taranagnew436 3 года назад
1.can you use the backtrack to test bitcoin prices? 2. can you use this in a bitcoin trading stock market 3. how well is the overall efficiency of the bot?
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
Thanks for the comment. Yes, QuantConnect also supports Bitcoin (and other cryptocurrencies). To learn how to evaluate the efficiency of a bot, you could check out this video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-VmD2fUt8KYY.html
@andraenandoo7486
@andraenandoo7486 3 года назад
can you do a video on how to code a bot that trade a cypher pattern
@StaKy
@StaKy 3 года назад
Why i'm getting a error on line " self.initialStopRisk * self.breakout1v1 < self.Securtities[self.symbol].close * self.trailingStopRisk"?
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
Thanks for the comment. It’s supposed to be self.brekoutlvl instead of self.breakou1v1. Note that you could also just clone the algorithm by using the link in the description box to make sure you don’t have any small typos.
@sixsoxsex1
@sixsoxsex1 2 года назад
What is the advantage instead using tradestation or multicharts
@przemex7407
@przemex7407 2 года назад
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
@juank46983
@juank46983 2 года назад
nice, do you have some with binance?
@mktaha
@mktaha 3 года назад
Thank you for this, I've watched almost all of the QuantConnect Videos and I think I got more out of this one! Question, my results are different than yours and I followed the exact code and time period... does that mean I have an error in my code or did they change their backtest engine? Thanks.
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
I don’t believe that they changed the backtesting engine. I’d recommend using the link in the description box to clone my code. That should definitely work. If not, let me know.
@mktaha
@mktaha 3 года назад
Update: I copied your code and got the same results as you... which concerns me that there were errors in my code that they system didn't flag!! no easy way to find them!
@loganbedford2105
@loganbedford2105 3 года назад
Super awesome video. I am trying to do this same process but in Spyder. Any suggestions on what I should change so that I could make this code work in that platform?
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
To make this work locally on your computer, you need to set up QuantConnect on your machine. Here is a tutorial for that: github.com/QuantConnect/Lean/blob/master/Algorithm.Python/readme.md Note that this is a lot less convenient than just using the online platform. I hope this helps.
@loganbedford2105
@loganbedford2105 3 года назад
@@TradeOptionsWithMe Awesome! thank you.
@electrobiztro
@electrobiztro 3 года назад
hi, this is an amazing video! however, would you recommend for someone like me who has coding experience but not python to first learn python before attempting this? or is it okay to attempt this straight?
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
Thanks for the comment. In my opinion, it is best to learn some basic Python before trying to learn the QuantConnect API. That should definitely help with the learning process. But if you already have some coding experience, learning Python really shouldn’t be too hard.
@electrobiztro
@electrobiztro 3 года назад
@@TradeOptionsWithMe alright, thanks!
@electrobiztro
@electrobiztro 3 года назад
@@TradeOptionsWithMe subbed btw 👍
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
Awesome, thanks for the sub!
@thesnatchbox1118
@thesnatchbox1118 3 года назад
Hi There, I came across your youtube videos and hoped you could answer a question for me. I currently am using a trading bot with Ninja trader and want to make changes to the bot but don't know how or how to locate the person or company who wrote the bot. Can the bot be viewed to show who wrote the script or edited if its locked? Thanks for your assistance.
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
Sorry, but I have no experience with ninja trader so I can’t really help.
@woodruler6746
@woodruler6746 3 года назад
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?
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
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: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-FyTP6D_4SQc.html Note that local backtesting is currently not possible this way. But it is on their upcoming feature list. I hope this helps.
@antiquesordo
@antiquesordo 2 года назад
Kindly show us how to code an arbitrage bot between DEXs and CEXs for xrp, vet, xdc
@YouSuck921
@YouSuck921 2 года назад
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?
@bl1tz229
@bl1tz229 3 года назад
Hello! Great tutorial! It was very easy for me to follow how the algorithm functions and how it is technically programmed within Python. I am a C# fullstack programmer myself. I understand the choice in Python for stock-trading. I have one question however regarding support for trading-platforms like this. Would it be possible to create a program in C# that would function as a "shell" around Python-code, which will do the data-analyses for me and pass it back to the program. Dashboarding / creating a program in C# and calling Python-algorithms to do the data-analyses for me is something Im looking for. I would like to become introduced into stock-trading and programming it, yet I feel very comfortable within my C# "bubble" as I'd like to say it. I would love to combine my C# passion with some Python algorithmic programming in order to keep myself motivated and hobby my way through, without too many complications. Thanks in advance! Cheers
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
Hi Romeo, Thank you for the comment and the positive feedback. You’re in luck! QuantConnect also supports C#. So instead of creating a C# container, you could just create the algorithm in C# directly. Just note that since the majority of QuantConnect’s current user base is Python-based, the forum support might be a little worse than for Python algorithms. But the docs should be just as good. Furthermore, you should be able to find plenty of C# examples on QC.
@bl1tz229
@bl1tz229 3 года назад
@@TradeOptionsWithMe Thank you for your reply, now that is really useful! I am reading into QuantConnect as we speak and to me it looks promising already. Very intuitive documentation so far, also for C#. For example, I am reading into the time bars / ticks right now and things seem really clear. I read they provide a way to locally create my algorithm in my own IDE (which I prefer) by implementing the LEAN-engine, howver I read on your website things might become a little more complicated that way, but it is nice to see there is a way. I think I will be able to find my way on from here. Thanks for setting me up.
@TradeOptionsWithMe
@TradeOptionsWithMe 3 года назад
You are very welcome. I am glad I could help.
Далее
I Gave My Terrible Trading Bot $10,000 to Trade Stocks
16:05
КВН 2024 Высшая лига Четвертая 1/4
1:52:57
How To Read Stock Charts Without Getting Confused?
13:27
Stock Price Prediction Using Python & Machine Learning
49:48
How to Code a AI Trading bot (so you can make $$$)
35:09
Top 6 Algorithmic Trading Strategies!
12:15
Просмотров 300 тыс.
Python for Beginners - Learn Python in 1 Hour
1:00:06
Просмотров 17 млн
I Built a Trading Bot with ChatGPT
18:33
Просмотров 1,8 млн