You are an incredible teacher, your knowledge of python is impeccable :)
@Algovibes
2 жыл бұрын
Thanks for your kind words my friend ❤️
@thecodingguy9859
2 жыл бұрын
Glad I found this gem of a channel, keep up the good work man.
@Algovibes
2 жыл бұрын
Thank you very much for your kind words :-)
@jessedayan33
5 ай бұрын
So happy to have found these videos. I'm getting up early every morning to follow along and code before work. Thank you so much.
@Algovibes
4 ай бұрын
Awesome mate, thanks for your comment. Happy to read!
@flydr2
Жыл бұрын
Thanks you! I have learned more with your videos than any other in the pas year... These videos are incredibly useful to me (I guess to others also)... Many thanks
@Algovibes
Жыл бұрын
Very happy to read. Thanks a ton Marc for your positive attitude!
@techsavage813
3 жыл бұрын
ive been waiting for this
@Algovibes
3 жыл бұрын
Hope I met your expectations then! Thanks for waiting :-)
@vsalvato53
Жыл бұрын
You're a real master in Python coding... great content. I would like you to teach a beginenr, like me, how to test a Python script bot on a tradingview account (will be a trial one...)
@Algovibes
Жыл бұрын
Thanks mate. Master I wouldn't say but I got some years of experience on my back. Thanks for the suggestion!
@mistahgrill5135
2 жыл бұрын
In case you need to stop the warning messages regarding the df.append deprecation, replace the commented line below, with the bottom 2 lines: #dfx = dfx.append(mask, ignore_index=True) dfxn = pd.DataFrame([mask]) dfx = pd.concat([dfx, dfxn])
@SuperMacmac74
2 жыл бұрын
thanks buddy, you are a life saver
@burgerger3gerger333
Жыл бұрын
Thank you very much you are a hero also
@techsavage813
3 жыл бұрын
I love your crypto contents
@cookingfun2220
3 жыл бұрын
most people who does crypto probably do it via algorithm
@Algovibes
3 жыл бұрын
Thanks a lot @tech savage. I also love to play around with it. Disadvantage of these videos is I am getting a LOT of spam / scam comments (only on this video more than 20 comments in the first hours - a number of real comments I would dream of :D) @Cooking fun: Some surely do but I doubt most people do.
@techsavage813
3 жыл бұрын
@@Algovibes yeah those are annoying as hell. Your videos are informative and nice to follow along. Are you interested in Blockchain development too?
@Algovibes
2 жыл бұрын
@@techsavage813 Didn't have any exposure to it yet.
@dennbauer
3 жыл бұрын
The best video you have ever posted! Super cool content and very well explained. Thanks for sharing your knowledge! Would love to see some strategy on decision making with regards to which pair to trade, e g. based on volatility and it liquidity. Thanks again!
@Algovibes
3 жыл бұрын
Thank YOU! :-)
@sheheryarkhankhakwani2293
2 жыл бұрын
@@Algovibes Hi Can you share your business email as I have to discuss few projects?
@seanki
2 жыл бұрын
Learn Python they said.. I understand why now, so smooth. Very informative video, thanks 🐍 // JS dev
@Algovibes
2 жыл бұрын
Thanks for watching buddy.
@RafeedChowdhury
2 жыл бұрын
The best easy way to understand video to explain the bot! Thanks for this video and waiting for some new crypto related videos!
@Algovibes
2 жыл бұрын
Thank you very much for watching and your comment :-)
@TheHagentoft
2 жыл бұрын
Amazingly interesting, checked pretty much all of these videos thank you !
@Algovibes
2 жыл бұрын
Thanks for your support mate, you wouldn't believe how much this is helping me!
@nixie2418
2 жыл бұрын
You deserve more subs. Good content! keep it up
@Algovibes
2 жыл бұрын
Thank you :-) I am working on it! People like you help me with comments like that for sure! Thanks again.
@hayatokimura6404
2 жыл бұрын
Would love to see implementations of other strategy, price action strat perhap. You did great, thank you
@Algovibes
2 жыл бұрын
Thanks buddy :-)
@muratkonuklar3910
2 жыл бұрын
Great Teacher ! Kind regards and thousands respect !!!
@Algovibes
2 жыл бұрын
Thank you mate :-)
@FastbreaKHere
2 жыл бұрын
Wow nice man! How did you get your python programming skills? Great video ! Subbing now
@Algovibes
2 жыл бұрын
Hi buddy. Thanks a lot for subscribing :-) Have talked about that here: kzitem.info/news/bejne/0nmQz3mEj2pkpXo
@digitald74
2 жыл бұрын
great stuff.. love it.. just some recommendation… you should place the stop loss and take profit directly on the exchange… (if binance supports this) you also save fees because you use limit orders instead of market orders…
@Algovibes
2 жыл бұрын
Thanks buddy! Nice suggestion. Was actually using limit orders in one of my newer videos. I follow different approaches in the vids in general so feel free to explore the cryptobot playlist a bit. Here is the vid I am talking about: kzitem.info/news/bejne/znqEr3Whfox0m5w
@froginamagichat
2 жыл бұрын
Thank you for this brilliant video on KZitem. I am very very interested in this topic, although I am a complete noob👍👍👍
@Algovibes
2 жыл бұрын
Spasibo :-)
@teenspirit1
2 жыл бұрын
Great video of going straight to live without any backtesting.
@Algovibes
2 жыл бұрын
What? :D I am literally referencing to the backtest video in the first 20 seconds of the video.
@mrsteevedominiwue
2 жыл бұрын
Thanks for this great article. Everything is well explained.
@Algovibes
2 жыл бұрын
Thanks for your feedback mate.
@mrsteevedominiwue
Жыл бұрын
@@Algovibes Do you have any github link where your codes are available?
@CHITUS
2 жыл бұрын
Thank you for the video! Could you please make a video about how to run bots in the cloud 24/7?
@Algovibes
2 жыл бұрын
It's on my list but probably not within the next 2-3 videos. But definitely within this year!
@GlobalSpotlight
2 жыл бұрын
For running the bot in the cloud, how can we stop/break the while loop? In video it runs continuously and we have use Ctrl + C to stop the whole bot.
@jancan9168
2 жыл бұрын
Top Videos. Sehr lehrreich. Mich würde es interessieren ob du den Bot weiterhin am laufen hast und falls dies der Fall ist, wie viele deine Trades im Profit geschlossen wurden und wie viele im Verlust. Mach weiter so. Freu mich auf weiteren Content.
@Algovibes
2 жыл бұрын
Dankeschön :-) Ich glaube die Strategie hat relativ schlecht performed.
@flydr2
Жыл бұрын
Many thanks again... Wonderful info
@Algovibes
Жыл бұрын
Thanks a lot Marc!
@random_birch_forest
2 жыл бұрын
I believe the reason for the loss here is because the selling order type is MARKET and not LIMIT. If you place LIMIT orders you guarantee a price of buyprice * 1.005. In case of a MARKET order you are hostage to time differences between placing an order and it matching the order book. I believe this is what happened here.
@Algovibes
2 жыл бұрын
You made a very good point by I doubt that in this specific case this is not the reason for the loss.
@goodyonsen77
Жыл бұрын
I wonder if the reason you got 67 rows initially when you first ran “applytechnicals(df)” is because you had updated the database just 100-67=33 minutes ago. I got the same problem so I decided to go with looking back for the entire length of the database, although I could reset my crontab for minute-updates between certain hours (especially when I run applytechnicals). But I’m not sure such a length would affect the outcome or not?
@tagurit4749
2 жыл бұрын
Wow! Fantastic video. Thank you Algovibes. One question; how could you apply Heikin Ashi into the df before calculating %K, %D, rsi?
@Algovibes
2 жыл бұрын
Thanks a lot Tag. Didn't test that yet, so can't tell you ad hoc, sorry!
@MrRobfoster2000
2 жыл бұрын
Great video mate! One question - in other trading bot tutorials I have watched regarding RSI, the buying signal is always when the RSI goes below a certain level. In this video, you wait until the RSI goes above 50 to trigger a buy. Is there a reason for that? Another tutorial I did which I used for a while would buy when RSI is "oversold" when it gets below 30. Is it that you're waiting for a signal that RSI is rising before issuing a buy signal? Grateful if you can explain as this part is confusing me a bit. Thanks again for the great video!
@Receive_
2 жыл бұрын
Agree
@Oiutrem
2 жыл бұрын
More great content for me to use 😁 Thank you!
@Algovibes
2 жыл бұрын
Thank you buddy :-) Appreciate your comment!
@knawursztlow2416
2 жыл бұрын
Nice, very useful. I have been sent here by you from another video. Don't you think that the price taken in real time should be filtered in some way? I mean, many startegies point to take position when certain conditions are fulfilled and also when the candle is closed. So theoretically we are interested only in "real" close price of each candle. In above example we can get entry signals too fast. What do you think? Maybe your approach is more proper? :) PS sorry for my language, hope its understandable
@Algovibes
2 жыл бұрын
Hi man, thanks a lot. Depends on what you want to trade. You can surely also take the closed candle when this is your defined strategy.
@Receive_
2 жыл бұрын
Sorry for stupid question but i need help. What's mean the lags? It's the time frame? Can you clarify about in more detail? Thanks for your time.
@Algovibes
2 жыл бұрын
No worries man. There is a prerequisite for this video. I usually link the necessary videos in the description: kzitem.info/news/bejne/026mu2FupWN8g4o
@Receive_
2 жыл бұрын
Thanks again
@richardgrozinger1215
2 жыл бұрын
Sehr cooles Video. Danke. Könnte man auch direkt mit der Buyorder nicht eine Sellorder erstellen? Bei so schmalen Prozenten ist das ja manchmal in einer Kerze abgehandelt, oder macht das keinen Sinn?
@Algovibes
2 жыл бұрын
Danke dir :-) Wo würdest du den Vorteil darin sehen?
@richardgrozinger1215
2 жыл бұрын
@@Algovibes wenn die Preise im 5m TF nur nach jeder Kerze geprüft werden, kann sich ja in den 5 Minuten schon der TP eingestellt haben, wenns dumm läuft gehts nach 4 Minuten schon wieder runter und landet dann im SL obwohl es für den TP innerhalb der Kerze gereicht hätte. Hoffe ich hab mich verständlich ausgedrückt, kann auch sein ich mache hier einen Denkfehler wegen den "Preisprüfungen"
@arunkamath
2 жыл бұрын
I didn't understand the 'lags' concept. Have you explained it in any other video?
@Algovibes
2 жыл бұрын
Yeah, was going more into details here: kzitem.info/news/bejne/026mu2FupWN8g4o Thanks for watching :-)
@erichdarke8979
2 жыл бұрын
Guys, let's keep this guy our secret. lesspeople know this = this scheme works better.
@Algovibes
2 жыл бұрын
lol :D As I said many times. I don't claim to have any secrets. I am a finance guy working in the Data Science field and I love to program stuff in my spare time.
@erichdarke8979
2 жыл бұрын
@@Algovibes I mean that you are doing great stuff and not a lot of people knows about you. Our small community can learn and earn money together with you. That’s very cool in my opinion.
@Algovibes
2 жыл бұрын
@@erichdarke8979 Thanks for your kind words! ❤
@danifart
2 жыл бұрын
Awesome work and awesome channel, congratulations! I take it that if you are so kind to share these strategies and code is because they can't make people rich executing them with serious money, is that right? :p
@Algovibes
2 жыл бұрын
Thank you mate. You are right. These scripts are just play arounds with different approaches.
@rinusvangrunsven9259
Жыл бұрын
Thanks for the video, it is really helpful! However, I am wondering the following: you add the columns 'trigger' and 'buy' on which the model eventually decides to make a buy order, but not for sell orders. They are only focussed on minimizing the loss. Do you happen to have python code for a function like decide but then for sell orders instead?
@b.k.1768
2 жыл бұрын
@Algovibes Where do you share your source codes ? Great material! Tnx for sharing.
@Algovibes
2 жыл бұрын
Thanks a lot mate, for the written source code you could consider becoming a channel member. I would be happy to welcome you: kzitem.info/rock/87aeHqMrlR6ED0w2SVi5nwjoin
@CHARLOU839
2 жыл бұрын
Hey, Algo! Thanks for this brilliant video and your detailed explanation. One quick question! I have been testing your code for the last three days, and every time I place my order, I get the same API error message -1102 (TimeOut). This seems to be related to a mandatory parameter empty null or malformed. Do you have any advice on how I could fix this issue?
@Algovibes
2 жыл бұрын
First of all thanks a lot for your kind words. Secondly you should rather work with a data stream as shown in e.g. this video: kzitem.info/news/bejne/z4ehx35oaWmpjH4 Also this one is showing some approaches to avoid time outs: kzitem.info/news/bejne/yGZqrZl-nl-Vfaw
@randomguy_1998
2 жыл бұрын
Maybe your client was disconnected. Try connecting to client server before buy/sell order.
@Toninoredonet
2 жыл бұрын
Hey man, I like your content! While studying the behaviour of your code I stumbled upon a small mistake. When checking the stochastic whether it has hit oversold in the last n timeframe, you did not take into consideration that it should not trigger when it also has hit overbought in the meantime. Do you have a fix for that? Other than that, great work! Keep it up! Cheers!
@Algovibes
2 жыл бұрын
Hi mate, can you give me a timestamp? Happy to check that!
@Toninoredonet
2 жыл бұрын
@@Algovibes Hey! Thanks for answering! Sure, its 8:36 , the function gettrigger.
@darshanpatil8880
2 жыл бұрын
@Algovibes first of all I must thank you a lot for these wonderful series, requesting to please guide us on this question. I also feels the same.. Thanks in advance
@Street-Labs
2 ай бұрын
habe alles gechekt und finde den Fehler nicht :-( "TypeError: Signals() takes no arguments". was übersehe ich ? Danke
@Street-Labs
2 ай бұрын
😒__init__. :-D
@Algovibes
2 ай бұрын
Check Mal die Antwort auf deinen anderen Kommentar. Sollte das problem lösen.
@diplingbsc730
2 жыл бұрын
Nice Video! I‘m very Interested in Programming and investing (doing some pyhton in university-beginner)! My Question: I‘m currently trading with kraken and want to know, if its possible with kraken instead of binance? Greetings from Austria
@Algovibes
2 жыл бұрын
Hi man, Python in university can be painful, we share the same faith :D As far as I know Kraken has a python API - so basically: yes. I am planning on covering another API than binance, but I can't promise it will be Kraken.
@rithirongk
2 жыл бұрын
+1 sub, thanks for good content.
@Algovibes
2 жыл бұрын
Thanks a lot man. That's truly a big support for me!
@marshalsharma1801
2 жыл бұрын
I don't know how to use Jupiter notebook.... Can you teach the same thing in pycharm
@Algovibes
2 жыл бұрын
I have covered using an IDE here: kzitem.info/news/bejne/z4ehx35oaWmpjH4
@mymazl1
2 жыл бұрын
How do you handle all the fees? I did a lot of research, made different bots with different taking profit strategies.. but in low timeframes (1m, 5m) I didnt found any way to achieve profits when recognizing the taker fees for entry and close... Is any bot of your videos still live and generating profits?
@Algovibes
2 жыл бұрын
I think low timeframes are in fact pretty random - but I might be wrong with that. And yes: The fees are quite challenging to beat within these low timeframes. As stated many times: The objective of these videos is the process from trading idea to code implementation. I am running a bot on one day where I think a particular bot would make sense. Are they generating profits? Yes (and sometimes no). Are they generating alpha? Rather not.
@jalbarracin
2 жыл бұрын
You should print only when Target changes :)
@Algovibes
2 жыл бұрын
True! Would be way better.
@pitmotiv4422
2 жыл бұрын
Hallo! this is amazing Alter! but i do not understand completely what that "legs" are working. This parameter seems to be very important. I am testing it but orders are not getting triggered as fast as i would like. Danke!
@Algovibes
2 жыл бұрын
Thanks Alter :D it's just time steps which you are going back. I explained it in more detail here: kzitem.info/news/bejne/026mu2FupWN8g4o
@jeffrychen4894
2 жыл бұрын
Hi, i like your strategy. I'm wondering have u tested this bot over 100 trades? I'd like to see the win rate and gain on account for any time frame. Thankyou
@Algovibes
2 жыл бұрын
Thank you :-) No I haven't but I wanted to cover Backtesting on Cryptos in the future as well.
@ranielantolin3878
2 жыл бұрын
Just subscribe. Thanks for this.
@Algovibes
2 жыл бұрын
Awesome, thank you very much! :-)
@maradonasiego
2 жыл бұрын
excellent KZitem channel, congratulations, I ask you a question, where could I include the balance variable in testing mode, to know if it gives me profits or losses, the script
@Algovibes
2 жыл бұрын
Thank you mate :-) What do you exactly mean with balance variable?
@maradonasiego
2 жыл бұрын
@@Algovibes the balance we have in our account, to see if it is working, another question, what is the best sales strategy in crypto? stop loss? Can I raise the stop loss when the coin goes up?
@cryptolicious3738
2 жыл бұрын
very cool video ! id like to see this but 2x longs instead of buys and 1x shorts instead of sells ...what do u think ?
@Algovibes
2 жыл бұрын
Thank you mate. Well one need to try that out. I have no experience with that, so I don't have a qualified opinion on that.
@chigstardan7285
2 жыл бұрын
What about if i want to go short on my trades with this strategy? Because in the backtest video you included a selling signal. I want to add a selling signal for this strategy. Thanks again for the video.
@Algovibes
2 жыл бұрын
I covered Long only here.
@tomroels3773
2 жыл бұрын
Hi, I have a quick question. I am very new to this and want to understand how it works. I also saw your other video on this algorithm. In your selling conditions I understand why you implement the STOP-LOSS condition to limit your losses for a bad trade. However I don't understand why you limit the profit as well. In the other video we saw that using the same TA we can also get a selling trigger and signal. Shouldn't you sell when this occurs instead of already selling when a certain profit percentage was reached. Thanks for the help!
@Algovibes
2 жыл бұрын
Hi and thanks a lot for the comment! Sure, you can also take the signals which are generated by the indicators. That's another approach. As said: There are many many things which you can change. You can basically just take the logic as presented in the video to rebuild it. But I'll take it as a suggestion to show how you would do it with technicals in future videos.
@khtan5531
2 жыл бұрын
What is the expected win rate and expected gain/loss ratio in this strategy?
@Algovibes
2 жыл бұрын
Did you check the linked video? I have gone over that there. Let me know if that is what you were looking for!
@maradonasiego
2 жыл бұрын
hello how are you ... query create a robot with the purchase variables like this in the video and the stop loss, and configure it for a currency that grew 70% and did not win anything, lost, what could be the variable that I have What to modify to make the operations positive? Thank you
@Algovibes
2 жыл бұрын
Most probably the lookback period. It's unfortunately pretty vague.
@archie591
2 жыл бұрын
thank you for the video sir! I have a few questions if you don't mind :) Suppose I am trading at 15minute timeframe, 1. should I set "inst = Signals(df, 15)" to 15? 2. should I set "getminutedata(pair, '1m')" to 15 also? thanks again!
@Algovibes
2 жыл бұрын
Hi man, welcome! Thanks for watching. You are always going 15 rows back. So when you are taking 15m data you are ging 15 * 15min back. Makes sense?
@archie591
2 жыл бұрын
@@Algovibes thank you sir! one more question if you don’t mind 🙂 for 15m timeframe, getminutedata() should always be at 1m parameter then Signals() will have lags of 15?
@budrogerung6359
2 жыл бұрын
i got error message -Cannot find reference 'momentum' in '__init__.py'-, im using pycharm, can you tell me why i got that error message?
@Algovibes
2 жыл бұрын
Are you working with the ta library? Not ta-lib but ta?
@jalexisg
2 жыл бұрын
Hi mate, how could I change the quantiy? Instead of buying tokens, I want to use investment, I’d say 10 USDT.
@Algovibes
2 жыл бұрын
Hi man, I have covered using quantities in these two videos: kzitem.info/news/bejne/p6KCl4xncKWoa6Q and kzitem.info/news/bejne/znqEr3Whfox0m5w Let me know if that's solving your problem!
@jalexisg
2 жыл бұрын
@@Algovibes Danke shön! I’ll check them and let you know!! Tchüss
@PeterZeihanClips
2 жыл бұрын
Hi I have next to 0 programming skills, just done some basic stuff, but trying to follow you here. When executing "inst.decide()" i get the following error: "AttributeError: 'Signals' object has no attribute 'decide'" I executed inst = Signals(df, 5) but still i get this error. I tried giving it an attribute but that doesnt help, obviously.. Can someone help me?
@Algovibes
2 жыл бұрын
Hi man, well ad hoc I would guess that you didn't define the decide method within the Signals class.
@PeterZeihanClips
2 жыл бұрын
@@Algovibes I resolved the issue, i had defined it but the structure of my code was wrong. Not correctly indented lol. Thanks tho :) Also i tried running your code in PyCharm but i ran into a whole bunch of other issues doing that, so back to Jupyter now haha.
@PeterZeihanClips
2 жыл бұрын
@@Algovibes Ser, been trying to fix this issue for a day now, can't figure it out. I call the strategy and it starts running, however when buying conditions are met i always receive the same error: BinanceAPIException: APIError(code=-2010): Account has insufficient balance for requested action. Which is very weird, because i run another program (your high risk altcoin strategy) and it works there. Any idea why this happens on one script and not the other?
@knightofLotus
2 жыл бұрын
Hi sorry, I have a problem using ta library, because the ta.momentum command doesn't seem be present... maybe I wrong something installing ta library with pip install.. do you have any clue?
@chigstardan7285
2 жыл бұрын
Did you do pip install ta or pip install ta-lib? Please use ta.
@Algovibes
2 жыл бұрын
Yes, you need to install ta instead of ta-lib.
@knightofLotus
2 жыл бұрын
Yes I did... but It continue to not give me any real command momentum... any other advice? in case thanks in advance.
@remipelloux3152
2 жыл бұрын
Hi, thanks for the video ! I have a question, why not put a StopLoss and a TakeProfit instead of tick the price ? Thanks
@Algovibes
2 жыл бұрын
Also possible :D See these videos as room for all kinds of improvements and amendments.
@ziemamadoucoulibaly2305
2 жыл бұрын
Hello sir, you know how we can get sell limit and buy limit data from binance for orderbook? Thank for your help.
@Algovibes
2 жыл бұрын
Covered buy limit orders e.g. here: kzitem.info/news/bejne/znqEr3Whfox0m5w
@henrikworg350
2 жыл бұрын
Hi, how to change timezone in function getminutedata? 'Europe/Berlin' maybe?
@Algovibes
2 жыл бұрын
Hi, should be working with adding +1 to UTC. I think Germany should be +2 but not 100% sure.
@henrikworg350
2 жыл бұрын
@@Algovibes Thank you!
@henrikworg350
2 жыл бұрын
@@Algovibes no change but this did it: "frame.index = pd.to_datetime(frame.index + 7.2e+6, unit='ms')"
@weitongqi3399
2 жыл бұрын
Love your videos, thank you for sharing. I tried this method with a little modifications and it works great. Just one thing I don't quite understand, when you explained "lags", you said it means how many time stamp it goes back. Can you explain more please? Thank you.
@Algovibes
2 жыл бұрын
Thanks a lot for your kind words! :-) 1 lag -> 1 timestep before So example: You pull data for daily data. When you lag the data by 1 tilmestep you get the previous day data. When you pull data for 5 minute data you will get the previous 5 minute data. Does this make sense to you?
@trungnguyen6494
2 жыл бұрын
hey i deployed the same bot but to Kucoin platform and the code exceeded API request rate :( any fix for that?
@Algovibes
2 жыл бұрын
You probably need a live stream (via Websocket) of the data. Shouldn't run into that issue then.
@trungnguyen6494
2 жыл бұрын
@@Algovibes yes im trying it rn! will let u know if the bot works or not
@maddiehad
2 жыл бұрын
I may have missed this but where do you execute or run the script ?
@Algovibes
2 жыл бұрын
Locally on your machine manually, with a task scheduler cronjob or on a virtual machine. I have covered all three in the cryptobot playlist . Be kindly invited to check that out!
@maddiehad
2 жыл бұрын
@@Algovibes thanks will watch them.
@phucwall121
2 жыл бұрын
What's the platform your coding on?
@Algovibes
2 жыл бұрын
Jupyter Notebook :-)
@mastercrypto9587
2 жыл бұрын
hi. you are amazing. could you please write a code for kucoin with websocket and RSI STOCH and MACD? i could not implement kucoin websocket to dataframe. i am very new in python thanks bro
@Algovibes
2 жыл бұрын
thanks buddy
@dycorp
Жыл бұрын
"AttributeError: 'DataFrame' object has no attribute 'Buy'" How can i fix this? Please help me brothers and sisters.
@dycorp
Жыл бұрын
frame = frame.iloc[:, :7] frame.columns = ['Time', 'Open', 'High', 'Low', 'Close', 'Volume', 'Buy']; this fixed it.
@Algovibes
Жыл бұрын
Thank you so much for sharing the solution. Really appreciate the attitude helping out others!
@lamify_pro
2 жыл бұрын
Cool
@Algovibes
2 жыл бұрын
:-)
@jakubfancovic52
2 жыл бұрын
hey! is it possible to make strategy with two moving averages where we buy when they cross and when they cross later again sell current position and buy puts at the same time and again when they cross sell puts and buy another order? awesome videos btw
@maxweliau
2 жыл бұрын
Yes just change the logic of the buy and sell signals. Instead of using k and d, use maX = df.close.rolling(n).mean(), whereby n is the number of periods of your ma, then define the buy as ma1[i] >ma2[i] as the buy
@jakubfancovic52
2 жыл бұрын
@@maxweliau thanks man but I was rather asking on the problem that if its possible to buy asset when it goes up, then sell opened position when its neccessary and at the same time buy PUTs when the asset is starting to go down... so the bot can trade not just uptrend, but both.
@maxweliau
2 жыл бұрын
@@jakubfancovic52 yes. All u need to do is set the "mode" to open-long, close-long, open-short, and close-short and compare strings based on your needs
@Algovibes
2 жыл бұрын
First of all thanks both. Jakub for your kind words and Maxwell sharing your thoughts! It is possible for sure but I didn't have an exposure to trade Binance Options yet but might cover that in the future. Ad hoc I would probably follow a similar approach to Maxwell or as an alternative work with a 2x2 boolean matrix (starting with four 0s) and then just define the logic you described e.g.: Simple if condition if they cross and place a buying order and set a 1 in the boolean matrix. If this value is True AND cross is happening again -> Selling AND buying condition of the put and set next boolean to True.... and so on.
@maxweliau
2 жыл бұрын
@@Algovibes for my own bot, i just set strings and compare strings to execute long and ahort orders on binance futures (currently banned in singapore, integrsting to okex) :/
@martinknapp8139
2 жыл бұрын
great video, really pulled a lot of questions together for me. One question I have is, how to pull getminutedata for a list of symbols? I imagine this is a For loop within the getminutedata function, but I keep getting errors. What is the best way to pull minutedata for a list of symbols instead of doing one symbol at a time?
@Algovibes
2 жыл бұрын
Hi man, thanks a lot. For minute data this will be helpful for you: kzitem.info/news/bejne/qXhnqYCwaYxigY4 If you want to pull stream data for multiple symbols, check this out: kzitem.info/news/bejne/maZommSnqKCbY3o Happy for a quick feedback on the comment section of these videos.
@TheFunvader
2 жыл бұрын
Great video as always! I have been trying to find out how to get live data for multiple pairs to apply certain strategies to multiple cryptocurrencies at once. Do you know which documentation explains how to do that? Or perhaps a tutorial on that? :)
@Algovibes
2 жыл бұрын
Hi mate, thanks a lot! I am not quite sure if there is an API call for multiple streams. I would probably just run several simultaneously. I already thought about a bot including more than one pair in the future.
@maxweliau
2 жыл бұрын
All u need to do it have an array of tickers amd quantities, and input them in a for loop within the while True loop
@TheFunvader
2 жыл бұрын
@@maxweliau yes great idea! This is how i have solved to problem until now. However, depending on how many tickers you want to stream it wont be very efficient. But i guess depending on the strategy it can be good enough :)
@ianisgiannis2363
2 жыл бұрын
Wouldn't it be better if u make it so that it only prints out only when there is an order?
@Algovibes
2 жыл бұрын
Sure. Also possible!
@RealFahadhere
2 жыл бұрын
Getting an error that says TA not defined. Do you have any solution on that please?
@Algovibes
2 жыл бұрын
you need to make sure you have imported ta
@RealFahadhere
2 жыл бұрын
@@Algovibes Thank you. But how do we import TA?
@riteshgaur7264
2 жыл бұрын
Great video and very nicely explained. I implemented your logic to derive the stats (on 1 min timeframe) and it shows perfectly. But for the latest 15-20 min, it shows all values as NaN. I am not able to figure out why? Any help, please.
@Algovibes
2 жыл бұрын
Thanks mate. Probably because there is not enough data. Can you double check?
@riteshgaur7264
2 жыл бұрын
@@Algovibes My mistake, since I am using Coinbase API, I need to sort the incoming price based on date and time. Thanks
@Foose1337
2 жыл бұрын
Hello sir, I was wondering if you could show us an example on how to implement the bybit futures API into this kind of bot and how to make the orders? Would be very appreciated :) Very very great content.
@Algovibes
2 жыл бұрын
Hi man, thanks a lot for your kind words. Not quite sure if I will do exactly that in the upcoming weeks/months but I got covering another exchange on my list.
@michaeladesina3131
2 жыл бұрын
Hello Anglovibes, can i get the source code so as to edit it to suit my strategy? please
@Algovibes
2 жыл бұрын
Hi Michael, I am publishing code based on engagement. This video is near to the engagement goal but not yet there. I have published code e.g. in this one here: kzitem.info/news/bejne/05mVv2qonXSii4I
@melakanimanthaperera6697
3 жыл бұрын
Is there any free host available where we can run this 24*7 ?
@Algovibes
3 жыл бұрын
I am using GCP which is not free but this bot will run on the simplest form of a Virtual machine. I have some tutorials on how to set up GCP and let a Python script run on it. Be invited to check it out: kzitem.info/door/PL9ATnizYJ7f9ZGSx-7siizxqh4VtRZblk
@crypto-tube2236
2 жыл бұрын
Have a lot of 🤖bots🤖 for buying NFT. Ask me if it's intresting for you.
@justrelaxyouself294
2 жыл бұрын
Can you please help on fixing the below error ConnectionError: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))
@Algovibes
2 жыл бұрын
Can you just instantiate the client again?
@justrelaxyouself294
2 жыл бұрын
@@Algovibes Thanks for your reply. It's fixed. The cause of teh error is by defult the windows OS has enabled for the option to sleep in 30 mins. So the uninteractive screen for 30 mins will go on sleep mode. Thus the connection with binance will interrupted. SO I disble the screen saver and sleep options.
@energyclown58
2 жыл бұрын
When i run this code, after a while, probably when a trade is triggered, this error comes up: "BinanceAPIException: APIError(code=-1117): Invalid side." Does anyone know what that means and how to fix it?
@energyclown58
2 жыл бұрын
Ok, I think i fixed it. I typed side='buy' instead of "side='BUY'
@Algovibes
2 жыл бұрын
awesome. Less work for me 😛
@energyclown58
2 жыл бұрын
@@Algovibes There are only long positions included in this script. Is it possible to add short positions to the same script with the opposite triggers? So the bot would either trade long or short if the respective triggers get activated, but not both at the same time
@oridabush2453
2 жыл бұрын
Is there a place where we can view your notebooks?
@Algovibes
2 жыл бұрын
I am appending them as a pastebin link in the video description once a certain level of engagement is reached.
@johnadam7996
2 жыл бұрын
Thank you for another great tutorial. Is it possible to set coin symbol as the frame index in a data frame? Kindly advise. Thank you again
@Algovibes
2 жыл бұрын
Thanks for watching :-) Yes it is possible: Define a new column containing the symbol: df['symbol'] = 'ADAUSDT' Reset the index: df = df.reset_index() Set the index: df = df.set_index('symbol') Hope this is what you are looking for!
@johnadam7996
2 жыл бұрын
@@Algovibes Thank you so much for your prompt respond. Yes, that's exactly what I was looking for!
@xDDBF
2 жыл бұрын
this is VERY nice, thank you for this, i learned a lot!
@Algovibes
2 жыл бұрын
Awesome, thank you very much for your feedback.
@MrGromusin
2 жыл бұрын
Hi!! Nice video ,Can you make the bot hold the cryto for future selling without getting a loss?
@Algovibes
2 жыл бұрын
Thank you buddy. In that case just cancel the selling condition.
@MrGromusin
2 жыл бұрын
@@Algovibes i mean, autosell if it have favorable condition and if don't, to just hold the crypto.
@shaneorourke110
2 жыл бұрын
You can just remove the "df.Close[-1]
@bonkerztao
2 жыл бұрын
ich hab die letzen 2 monate 300k verzockt , wenn du wirklich geld machen willst und wirklich sehr gut im bot schreiben bist , ich bevorzuge python xD dann können wa was großes starten xD
@Algovibes
2 жыл бұрын
Was? :D Wie das denn?
@bonkerztao
2 жыл бұрын
@@Algovibes bin stark nach programmierern am suchen , hab z.b morgen ein termin mit einem programmierer der 7 jahre erfahrung hat . xD können ja kontakt aufbauen . falls ich kein hier in der nähe finde , können wir zusammen was starten wenn du gut im programmieren bist
@alic690
2 жыл бұрын
Hi, how do you get trading volume from the tick data from binance?
@Algovibes
2 жыл бұрын
Either via the get_historical_kline as one of the columns (not 100% which but its in the API docs) or via the livestream.
@oczko1986
2 жыл бұрын
What is the bame of that editor your programming in?
@Algovibes
2 жыл бұрын
I am using Jupyter Notebook in this as I think its the best for tutorials. Privately I am using Spyder.
@umayangaphone4296
2 жыл бұрын
how to change time fram, i try to change 5 min, but ValueError: Length mismatch: Expected axis has 0 elements, new values have 6 elements plz help? (sorry about my english)
@Algovibes
2 жыл бұрын
No worries! You have to amend the interval parameter.
@kclandyhs
2 жыл бұрын
@@Algovibes plz make a video or copy line of cord as a comment, that wahere we need to change the corde to change the time frame? thank lot i'm with very poor cording and English knowlage
@umayangaphone4296
2 жыл бұрын
@@Algovibes thanks for ur clue, but i couldn't correct my self plz can u paste the corrected line of cord or make a short video , plz, plz, thank u lot
@trevidia
2 жыл бұрын
Do you lose sometimes from your algo
@Algovibes
2 жыл бұрын
Of course! There is no magic formula and there are no consistent profits.
@davidxiangaspar9126
2 жыл бұрын
Hello can i give strategy and show to code it?? Im new into coding I don't understand clearly
@Algovibes
2 жыл бұрын
Could you elaborate?
@pckcentral
2 жыл бұрын
can you give website to get file?
@ivanarasic2896
3 жыл бұрын
Can u make a trading bot that makes the order will always be the first in buy order list, and also the same in sell order list? I dont know coding.
@Algovibes
3 жыл бұрын
Could you elaborate on the strategy? Maybe with an example?
@turalquluzade2704
2 жыл бұрын
Thanks for the video. I have a different strategy myself, and I want to do it as a bot, but I use different indicators. I'm using a SMİ Ergodic indicator. How do I add this indicator to code?
@Algovibes
2 жыл бұрын
Welcome! Well pretty similar to what I did with the other indicators. Calculate it as a column and add it to the conditions.
@turalquluzade2704
2 жыл бұрын
@@Algovibes Thank you
@TGTJournal
2 жыл бұрын
How to get, the close one or two bar ago and volumen ?
@Algovibes
2 жыл бұрын
Can you define "bar ago"? You mean the values in the previous row or did I got you wrong?
@fernandoparra5846
2 жыл бұрын
Hello, thanks for your answer, yes, exactly in the previous row, I have a strategy that needs to capture the close of the previous bars and analyze that information.
@shaileshraj2791
2 жыл бұрын
Hello sir can you make a tutorial bot to buy and sell a newly listed coin in binance
@Algovibes
2 жыл бұрын
Pretty interesting idea. Not quite sure about the API call for that tho. But I have noted your suggestion. Thanks a lot!
@shaneorourke110
2 жыл бұрын
I was testing this using the BNBBTC pair, all the conditions are met for the buy to initiate but it doesn't actually trigger. There's no errors or anything. The trigger is always 0
@Algovibes
2 жыл бұрын
How many lags did you use? That's critical for the strategy. And yes, it can happen that there are 0 signals. If you want you can exclude the first trigger but that wouldn't be the strategy.
@shaneorourke110
2 жыл бұрын
@@Algovibes I tried 3, 5 and 35 (with test orders). Perhaps I'm being impatient, maybe it needs more than a couple of hours sometimes
@igorcambur9723
2 жыл бұрын
How can I do this and in which program is this?
@Algovibes
2 жыл бұрын
That's not really a program but rather a programming language. It is Python and it is using the Python Binance API by using a python library which enables you to interact with the API. Does this make sense to you?
@igorcambur9723
2 жыл бұрын
@@Algovibes Lol, that’s pretty difficult to understand, but at least something)
@sasithaishara3690
2 жыл бұрын
How to add sell option to this bot for forex trading. How can contact you ?
@Algovibes
2 жыл бұрын
Can you elaborate?
@sasithaishara3690
2 жыл бұрын
@@Algovibes i upgrade your code.i find it.now it work perfectly. Thanks. Keep it up this video series
@Algovibes
2 жыл бұрын
@@sasithaishara3690 awesome. Thanks a lot for your kind words man
@omsingh06
2 жыл бұрын
Can you please make video on how to get views and comments on KZitem video via python or etc
@Algovibes
2 жыл бұрын
Pretty interesting topic! Thanks for the suggestion.
@omsingh06
2 жыл бұрын
@@Algovibes so when you are making a video on it
@meloveinflation
2 жыл бұрын
Hi love the video, but my kdj is not getting the correct values? Can you help. Sry to brother and thanks
@Algovibes
2 жыл бұрын
No worries man, but can you elaborate?
@meloveinflation
2 жыл бұрын
@@Algovibes the valeu of k os diferent from the One on the chart and the fluctuations are also diferent
@meloveinflation
2 жыл бұрын
@@Algovibes d and j are also diferent since those are calculated from K
Пікірлер: 368