Thanks so much my friend ! BTW, I'd love to join binance and reference you in whatever way possible but the binance is way over-strict in their acceptance of new customers. I mean, I turned myself into a darn monkey in front of the web cam, nodding, smiling, opening my mouth, holding the IDs and still got rejected. I tried my passport, drivers license, id... No... I think I just have to put my xrays showing my bones (MRI scan results might do better idk) to prove I have no intention to rob them.
Just made my first dollar, time to hit the town! Love your vids man, especially how you update the simple stuff as you find different/better ways to do it. Learning a ton thanks to you and having fun building bigger scripts off your lessons. Stay beautiful!
Hi! great content as usual. For more views on your channel I would recommend a video on how to do backtesting in Python with the top indicator from tradingview (squeeze momentum ind from lazybear). Maybe even adding adx and ema200 to optimize the strat. Including leverage would be a plus! Keep up the great work. Cheers
dude, first of all Thank you for your time and effort and for sharing your knowledge.. Ive been learning python 3 for data analysis, ai, machine learning and obviously automated trading on API level.. As time progresses I would like to analyze vast amounts of data on crypto and other commodities to get a better understanding of the market psychology of any asset through data points gathered... and hopefully train my Ai to make more informative trades.. I am still a beginner in all of this.. But Ive subscribed to you, So I could learn more towards my medium term goals.. Thanks again for sharing, and please keep up!
I guess next step would be is to visualize active trades and keep record of PNL using database. Going to scour your channel for that. Btw, the way you clarify every line and show the output is more clear than most teaching coding for a living.
Great content !! Thanks for sharing such a great bot and for explaining in simple terms how it works. We need more traders and contributors like you ! I will look at the rest of the content in your channel, it looks fantastic.
Hi Algovibes , this framework is great , how can it be improved further , in a situation where the cloud service( I am using pythonanywhere) stops and restarts , the data held in the posframe is lost , so when they restart the bot after a few seconds, the bot forgets about the assets already held in the posframe, any solution to this? a situation where after a restart the bought checks the assets already in the posframe. Thanks for the great work
Hi Kipkosgei, thanks a lot mate. Just use an external file like a csv. I have done that in another video. An alternative would be a sqlite database but I am not quite sure if it is compatible with python anywhere.
Could a simpler trading bot be made where you enter in the first order and the bot goes off of that. Say the stock is at .0125 and you buy. Could you design the bot to simply sell if it goes to .0126? Then when it goes back down to 0.125 buy again? And if it doesn't reach that in an allocated amount of time, cancel the bot and wait for the user to initiate a trade again. And at a stop loss, the user has to re-initiate the trades. Rather than using indicatiors, databases, etc...
Cool! I like that. I know this is a proof of concept, but there is room for improvement. Let me point out the most obvious. You need run the trade function only once per candle. In this case as the bot is trading based on the hourly timeframe, the trade function should run only once per hour. If it simply runs in an endless loop without a break, it would open positions on the first iteration and then on the further iterations do nothing except logging until the next candle. I do this even more optimized by subscribing to the chart data via WebSocket. When the exchange pushes a new candle to my bot, the trade funtion is triggered.
Very good input. Thanks a lot! Yea, I am usually working with data streams from a websocket as well. Please check out some videos in the cryptobot playlist for that.
Thank you very much, but I would like to ask you if I am going to not open a simple one that if the % goes down that the first purchase action takes when it goes down 2% that I buy, for example, and if the price that I sell increases by 2%. And every few seconds or minutes thereafter you can execute the next buy order on that pair or other crypto pairs at the same time on Binance spot. So it takes time to go down or up, that process will be automatic, without indicators or anything, just adjusting the percentage of purchase and sales.
Hi Algo, thanks for the great video! Is the posframe updated automatically in its notebook while the trader function runs in a separate notebook? How do we make the posframe reflect changes in quantity and position automatically while the bot is running? Thanks a ton for your help!
Hi Jayditya, thanks alot for your comment! No it isn't. By taking an external source which is changed (csv, database). Hope that helps! I have actually videos where I am working with external sources. Be invited to check out my cryptobot playlist :-)
Amazing as usuall, i have some questions : 1. What if we use a stop loss and take profit instead? 2. Is it possible to trail the price after buying order with a profit presentage? 3. How to let the bot just buy one coin of the list then try again after the selling is done?
Where are my comments ?? Twice deleted :( Here are they... again: Great! I've only been a fan for a few weeks, and you changed my whole outlook! Your clear and precise explanations, your ideas, and the way you implement them so easily in Python have shed a lot of light in the long dark tunnel where I have been for so long :-))))) So just: THANK YOU !! 1. I keep all your buying strategies handy, and for selling I apply the following rule: SL at x% of my buy price, then a trailing stop at y%. 2. I am looking for an algorithm on the Volume: DeltaVolume for 1m gives peak values 10, 100 (and sometimes more) higher just before a nice climb (example GALA tonight on 03.13.2022 from 0:30 to 2:45) ... you may have already covered this topic? What do you think ? 3. Would it be possible to make a video with Binance Future? and adaptation of a lever for example when switching to BreakHeaven? 4. I saw that you have a private channel... what are the possibilities and advantages of being a member? 5. .... lots of things in your head with each new video ... so again THANK YOU THANK YOU THANK YOU ... and keep it up, you're on TOP :)
Thank you so much mate. Also thanks for the suggestions! Being a channel member would mean having access to the notebooks shown in the videos and enables me to provide upcoming content: ruclips.net/user/Algovibesjoin
Thank you for this great video Is it possible to use an already existing indicator as trigger for buy and sell orders ? Can you provide help if needed ?
Hi, you tend to use the top 50 market cap coins in your symbol list. I use the full symbols available to trade. I wonder if using the best 50 performers may work better than market cap. That way each time it runs, it get new symbols and the best preforming ones. Great video, have really enjoyed playing about with this.
How did you create the CSV file? I never seen that program before. What are you using? I just see Local Host and that is all. Thank you again for teaching me how powerful Python is.
Both is possible. But in this video I am not really using a csv but rather a dataframe which is continuously manipulated (please read the note in the description)
@@AlgovibesI checked, but there is a balance problem error code: 2010 so I changed the market sell quantity settings as quoteOrderQty because it write so in the binance api documents but not tested
Nice video! Please keep it up! I am currently learning on how to make a trading bot in python. Your video inspired me a lot! btw, I have difficulty on calculating the EMA. I want to use same EMA value as what binance shown. If I use the live data to calculate it, it takes really long time to let the bot's EMA converge to binance's EMA. Can you make a video on this? (calculating the indicator involving history and live data)
Nice video and like your work, thanks for sharing.. It would be also nice to write the sell balance per coin back to the csv, this way you can keep track of profit / loss , and or re use the funds on the next buy signal to compound returns ( or losses :) )
Sure a stupid question, but I've been running this code for 4 days and it's not selling. I find that a little strange. Can you help why it does not sell ;/
@@Algovibes the first for loop is not working, it should work as logic, i think the intake in the account is not visible because quantity and position are 0
@@Algovibes Please don't ask me what i changed but now is running. I saw that a lot of bots are mising from google drive folder. are you gonna update them? thanks a lot. you' re the best
I've tried doing this, but for a different strategy. Will run this overnight and see how it goes. Thank you for sharing this! I've just learned python just to create a bot lol. Question tho, I'm just wondering, since our trigger is FMA > SMA, what if when we ran the code, we're at an all-time-high, then the bot would execute a trade, right? but then it dips and trigger our sell condition, wouldn't that be instantly a loss? Should I be too concerned with that? What is the best way to go about that? Just wait until I recover that initial loss through the succeeding trades?
Hi Joshua, thx a lot for your comment. Sure, there are things which can and must be optimized. The exit e.g. could be improved as you rightly mentioned to avoid situations like that.
Hi, great work again! I assume you are in Germany, so on Binance you can not trade with futurs, right? Do you have plans to bulid a bot that can also trade futures to make profits when the price is falling? In Germany this is possible from bybit for example. I have testet freqtrade as a platform for pyhton bots, which is great, but it also only trades coins, without leverage and no futures. Would be interesting to see a bot using these features!
Yes, I do and you are right. The restrictions are limiting my possibilities but I am already looking for exchanges where I can implement a futures bot. Thanks a lot for you comment btw :-)
@@Algovibes plz recheck i think its still takes to the min page and there is only a subscribe option or maybe the update will take sometime to take affect
@@Algovibes sorry... its working now, but i have noticed something; that it is location dependent, when i use vpn it starts working with some countries options
I would likt to build a live trading simulation for Binance. So unlike backtesting i would like to use live data to test an algorithm without actually having to spend money. Do you know how i could use the Binance API for that? Would that maybe qualify as a Idea idea for you? Would love to see that. Great Videos, you really show that it's not that hard to build your own trading bots!
Hi mate, there are several possibilities to do that - yes. Making a paper trading bot, so instead of executing orders just store the current price somewhere (csv, DB). You could also take a look at the binance testnet.
@@Algovibes The problem with the Testnet is that is only uses data from other testnet users right? I would expect the market to behave very differently from the real one. But i think i already found a solution. I basically request the orderbook of a pair and calculate the price i would get based on that orderbook regarding sells or buys.
Hi, thanks for the amazing video. I love your work since it points to teach crypto strategies but also programming activities. A simple suggestion, on my code i added a line after each operation in order to update the csv file on the local disk. In this way, in case of external stuff (eg shutdown the machine), the posframe file is already updated. The line of course is: posframe.to_csv('positioncheck', index = False)
Covered here: ruclips.net/video/FlL1X17sw8o/видео.html And actually in my newest video I am showing how you could get data like this (ccxt video). Hope that helps!
hello Man, thank you for the great content and for making things way simple. i tried using the code but it doesnt run, actually the trader function doesnt enter the first for loop. dont know why? can you help me with that?
@@Algovibes hello and thanks for your care to reply :) Actually, the problem happens when there is an exception like the one you had on the video “ not enough funds” the for loop restarts from the beginning all over again till the coin that fired the exception.
Thank you, very much, you made my day, currently i tested bots with a MA slope, i made some profits. If you have a better winning rate to the bots, i will apreciate! Or a discussion grup to be created as a suggestion, if not yet created
Thank you very much for sharing your vast knowledge with everybody! I´m trying to do a similar script (using a CSV file) and I´d like to run it in the cloud 24/7, should I create a Windows VM in GPC? Thanks in advance!
Thanks a lot man ! I have a question: Do these two lines below serve the same purpose for reaching quantity value ? posframe.loc[posframe.Currency==curr, 'quantity'] /// posframe[posframe.Currency==coin].quantity.values[0]
Hey, that's a great video! I think it's possible to create some mock instead of real binance client and try this bot in "test mode", right ? Just run it for a month in some cloud and see the actual profit. Has anyone tried it ?
@@Algovibes it's about taking good habits...jupyter is better for analysing data....and for trading bots : IDE and OOP.This is a fact even for a presentation , it should be done in a level production that's why TESTNET exists on Binance ...Good luck
Thank you so much for the content. One question though. If we want to get a ticker for a certain coin, should we use a WebSocket or just (I'm trading in futures market) futures_klines(...) inside an infinite loop? I am asking cause a lot of times I have encountered a timeout exception that terminates my program and after a lot of research, I haven't found a clean solution around it so now I'm thinking to refactor most of my code (i'm using the second way).
Thank you very much for watching and your comment. Whenever possible you should use a websocket. I am usually just showing concepts with api calls to showcase concepts but all the scripts I am running contain a websocket stream. I have already covered using websockets with different approaches in the cryptobot playlist.
@@Algovibes Thank you again, your content is great and very informative. I'm still till today a little bit overwhelmed with this issue and I don't know when to use each practice websockets vs infinite loop. For instance, I made my first trading bot back then, before 7 months and I was fetching the data with the way of infinite loop containing future_klines (similar to what you do on an other video of yours. But later when you answered my comment you said I should use websockets whenever possible. Is this way of fetching kandlesticks (like you do on the video) bad practice or anything like that? (I'm doing intraday trading and basically im fetching data everysecond to see how the kandlestick goes thats why I'm asking)
Thanks so much my friend !
BTW, I'd love to join binance and reference you in whatever way possible but the binance is way over-strict in their acceptance of new customers. I mean, I turned myself into a darn monkey in front of the web cam, nodding, smiling, opening my mouth, holding the IDs and still got rejected. I tried my passport, drivers license, id... No... I think I just have to put my xrays showing my bones (MRI scan results might do better idk) to prove I have no intention to rob them.
😂
Just made my first dollar, time to hit the town! Love your vids man, especially how you update the simple stuff as you find different/better ways to do it. Learning a ton thanks to you and having fun building bigger scripts off your lessons. Stay beautiful!
Thank you very much Robert! Nice surname ;-)
Hello robert, can you please share the script with me to know why mine isnt working?
Hi! great content as usual. For more views on your channel I would recommend a video on how to do backtesting in Python with the top indicator from tradingview (squeeze momentum ind from lazybear). Maybe even adding adx and ema200 to optimize the strat. Including leverage would be a plus! Keep up the great work. Cheers
Thanks a lot man. Also thanks for your suggestion. Not sure if it's yielding more views tho :D But maybe worth to give it a shot.
Danke!
Danke für die monetäre Wertschätzung :-)
dude, first of all Thank you for your time and effort and for sharing your knowledge.. Ive been learning python 3 for data analysis, ai, machine learning and obviously automated trading on API level.. As time progresses I would like to analyze vast amounts of data on crypto and other commodities to get a better understanding of the market psychology of any asset through data points gathered... and hopefully train my Ai to make more informative trades.. I am still a beginner in all of this.. But Ive subscribed to you, So I could learn more towards my medium term goals.. Thanks again for sharing, and please keep up!
Thank you very much for your kind words mate :-) Really appreciate it!
I guess next step would be is to visualize active trades and keep record of PNL using database. Going to scour your channel for that. Btw, the way you clarify every line and show the output is more clear than most teaching coding for a living.
Thank you mate. That's great to read!
man i am glad i got here on your channel. It is exactly what i was looking for!! thanks!
Glad to have you on board. Thanks for watching!
Great content !! Thanks for sharing such a great bot and for explaining in simple terms how it works. We need more traders and contributors like you ! I will look at the rest of the content in your channel, it looks fantastic.
Thank you very much buddy. Happy to have you on board!
Hi Algovibes , this framework is great , how can it be improved further , in a situation where the cloud service( I am using pythonanywhere) stops and restarts , the data held in the posframe is lost , so when they restart the bot after a few seconds, the bot forgets about the assets already held in the posframe, any solution to this? a situation where after a restart the bought checks the assets already in the posframe. Thanks for the great work
Hi Kipkosgei, thanks a lot mate. Just use an external file like a csv. I have done that in another video. An alternative would be a sqlite database but I am not quite sure if it is compatible with python anywhere.
@@Algovibes thank you sir
Could a simpler trading bot be made where you enter in the first order and the bot goes off of that. Say the stock is at .0125 and you buy. Could you design the bot to simply sell if it goes to .0126? Then when it goes back down to 0.125 buy again? And if it doesn't reach that in an allocated amount of time, cancel the bot and wait for the user to initiate a trade again. And at a stop loss, the user has to re-initiate the trades. Rather than using indicatiors, databases, etc...
Actually a very cool idea. Thanks a lot for your suggestion!
@@Algovibes Did you make a video about it?
Cool! I like that. I know this is a proof of concept, but there is room for improvement. Let me point out the most obvious. You need run the trade function only once per candle. In this case as the bot is trading based on the hourly timeframe, the trade function should run only once per hour. If it simply runs in an endless loop without a break, it would open positions on the first iteration and then on the further iterations do nothing except logging until the next candle. I do this even more optimized by subscribing to the chart data via WebSocket. When the exchange pushes a new candle to my bot, the trade funtion is triggered.
Very good input. Thanks a lot! Yea, I am usually working with data streams from a websocket as well. Please check out some videos in the cryptobot playlist for that.
Thank you very much, but I would like to ask you if I am going to not open a simple one that if the % goes down that the first purchase action takes when it goes down 2% that I buy, for example, and if the price that I sell increases by 2%.
And every few seconds or minutes thereafter you can execute the next buy order on that pair or other crypto pairs at the same time on Binance spot.
So it takes time to go down or up, that process will be automatic, without indicators or anything, just adjusting the percentage of purchase and sales.
Thanks for watching man,
sorry but is this a question or a statement?
Danke.
Deine Videos sind immer interessant.
Ich lerne fleißig.
Ihre Studentin aus Deutschland
Vielen Dank! :-)
Great video mate. thanks
Thanks for watching mate :-)
Hello :D great vid! If im not in the us, do I still put in USDT as the symbol names? or AUD?
Thanks buddy :-) No, USDT is the common stable coin on binance to purchase the asset.
Hi Algo, thanks for the great video!
Is the posframe updated automatically in its notebook while the trader function runs in a separate notebook?
How do we make the posframe reflect changes in quantity and position automatically while the bot is running?
Thanks a ton for your help!
Hi Jayditya, thanks alot for your comment!
No it isn't. By taking an external source which is changed (csv, database). Hope that helps!
I have actually videos where I am working with external sources. Be invited to check out my cryptobot playlist :-)
Amazing as usuall, i have some questions :
1. What if we use a stop loss and take profit instead?
2. Is it possible to trail the price after buying order with a profit presentage?
3. How to let the bot just buy one coin of the list then try again after the selling is done?
Good points! Thanks a lot for your input.
Where are my comments ?? Twice deleted :(
Here are they... again:
Great!
I've only been a fan for a few weeks, and you changed my whole outlook! Your clear and precise explanations, your ideas, and the way you implement them so easily in Python have shed a lot of light in the long dark tunnel where I have been for so long :-))))) So just: THANK YOU !!
1. I keep all your buying strategies handy, and for selling I apply the following rule: SL at x% of my buy price, then a trailing stop at y%.
2. I am looking for an algorithm on the Volume: DeltaVolume for 1m gives peak values 10, 100 (and sometimes more) higher just before a nice climb (example GALA tonight on 03.13.2022 from 0:30 to 2:45) ... you may have already covered this topic? What do you think ?
3. Would it be possible to make a video with Binance Future? and adaptation of a lever for example when switching to BreakHeaven?
4. I saw that you have a private channel... what are the possibilities and advantages of being a member?
5. .... lots of things in your head with each new video ... so again THANK YOU THANK YOU THANK YOU ... and keep it up, you're on TOP :)
Thank you so much mate. Also thanks for the suggestions! Being a channel member would mean having access to the notebooks shown in the videos and enables me to provide upcoming content:
ruclips.net/user/Algovibesjoin
Thank you for this great video
Is it possible to use an already existing indicator as trigger for buy and sell orders ?
Can you provide help if needed ?
Thanks for watching mate. Be invited to explore the cryptobot playlist on my channel. I have some helpful videos on that.
Hi, you tend to use the top 50 market cap coins in your symbol list. I use the full symbols available to trade. I wonder if using the best 50 performers may work better than market cap. That way each time it runs, it get new symbols and the best preforming ones. Great video, have really enjoyed playing about with this.
Had a strange comment on this, linked to a fake WhatsApp number. Was dodgy and wanting me to join a get rich quick scam. The comment has now gone.
Hi Lance, appreciate your comment!
Yes I know, that's scamming bots. I am trying to moderate them as best as I can. Sorry for the inconveniences.
@@Algovibes no drama. I am trialing using the top coins over the last 24 hours to see how that compares. I ,may then trial the bottom ones as well.
How did you create the CSV file? I never seen that program before. What are you using? I just see Local Host and that is all. Thank you again for teaching me how powerful Python is.
Using Jupyter Notebook here.
@@Algovibes Thanks again.
Great video! But why use a csv and not a sqlite db to read and write from?
Both is possible. But in this video I am not really using a csv but rather a dataframe which is continuously manipulated (please read the note in the description)
bro, the first for loop is not working and thus not selling
did you check out the part with exception handling it?
@@AlgovibesI checked, but there is a balance problem error code: 2010 so I changed the market sell quantity settings as quoteOrderQty
because it write so in the binance api documents but not tested
Nice video! Please keep it up! I am currently learning on how to make a trading bot in python. Your video inspired me a lot!
btw, I have difficulty on calculating the EMA. I want to use same EMA value as what binance shown.
If I use the live data to calculate it, it takes really long time to let the bot's EMA converge to binance's EMA.
Can you make a video on this? (calculating the indicator involving history and live data)
Thanks a lot mate :-) Happy to read that.
Also thanks for the suggestion.
Great content.
How can I run the code only in the old data? (Backtesting)
Thanks man,
backtested SMAs e.g. here:
ruclips.net/video/vWVZxiaaTCs/видео.html
Amazing.
Good job
Thanks
Thx ♥️
Hello, I have a problem, the program takes only my last instrument and only checks it, how to fix it?
the loop doesnt save the updated data to csv, so the position and quantity doesnt change, but the rest works. any help?
Sure! Where did you deviate from the shown code?
Nice video and like your work, thanks for sharing.. It would be also nice to write the sell balance per coin back to the csv, this way you can keep track of profit / loss , and or re use the funds on the next buy signal to compound returns ( or losses :) )
hello can you please tell what if i put a limit order in the bot is this order will show up in order book in the basic platform
Yes, it will!
@@Algovibes is there any way to not show up the limit order or any type of limit orders in order book in basic exchange platform
Thanks Algo it is awesome like your others 💯
Thank you my friend!
after i build robot where you put robot vps where
Could you elaborate on your question?
Sure a stupid question, but I've been running this code for 4 days and it's not selling. I find that a little strange. Can you help why it does not sell ;/
Did you make sure the code is running? Do a print statement or csv write to make sure the loop is consistently running would be my suggestion.
@@Algovibes the first for loop is not working, it should work as logic, i think the intake in the account is not visible because quantity and position are 0
Great efforts. Thanks man
Thanks 🦒
Where is the websocket?
Sorry, can you elaborate?
Hello.I am not getting the print report after i run the loop. is that ok? thanks
Can you elaborate?
@@Algovibes Please don't ask me what i changed but now is running. I saw that a lot of bots are mising from google drive folder. are you gonna update them? thanks a lot. you' re the best
How to set up stop losses
Covered it e.g. here:
ruclips.net/video/rc_Y6rdBqXM/видео.html
But also in other videos in my cryptobot playlist. Be kindly invited to check them out.
I've tried doing this, but for a different strategy. Will run this overnight and see how it goes. Thank you for sharing this! I've just learned python just to create a bot lol. Question tho, I'm just wondering, since our trigger is FMA > SMA, what if when we ran the code, we're at an all-time-high, then the bot would execute a trade, right? but then it dips and trigger our sell condition, wouldn't that be instantly a loss? Should I be too concerned with that? What is the best way to go about that? Just wait until I recover that initial loss through the succeeding trades?
Hi Joshua,
thx a lot for your comment.
Sure, there are things which can and must be optimized. The exit e.g. could be improved as you rightly mentioned to avoid situations like that.
Hi and thank you very much,
but it is possible to short crypto on binance ?
Thanks for watching man!
It is:
Via Options, Futures and UP/DOWN coins.
Could you make a future trading bot, man?
On my list but future trading is currently restricted in my country on Binance. But I will find another platform. Might take some months tho.
@@Algovibes I see many intrested in futures... why ? sorry I am totally newbie. thanks
We can also make it
For wallet trading?
Good question. Didn't try yet.
Please write a trader bot base on kucoin websocket api
Kucoin api gave Too Many Request error
Hi, great work again! I assume you are in Germany, so on Binance you can not trade with futurs, right? Do you have plans to bulid a bot that can also trade futures to make profits when the price is falling? In Germany this is possible from bybit for example.
I have testet freqtrade as a platform for pyhton bots, which is great, but it also only trades coins, without leverage and no futures. Would be interesting to see a bot using these features!
Yes, I do and you are right. The restrictions are limiting my possibilities but I am already looking for exchanges where I can implement a futures bot. Thanks a lot for you comment btw :-)
thank you! very clearly explained!
Thanks for watching and your comment!
where can i get the code from
how to capture entry price of future trade after place market order? plz
Can i add technical indicators?
Sure, you can add technical indicators in the applytechnicals function. Just need to need the conditions later on as well.
BTW dat name =D
Can I contact you for a programming task?
Really depends. I am currently quite swamped but you can drop me a mail and I'll see what I can do.
Thank you !!!
Welcome :-) Thx a lot for watching.
the tier two link just takes to the main page
You are right! Thank you very much for this feedback. Don't know why that is, but I just fixed it.
@@Algovibes plz recheck i think its still takes to the min page and there is only a subscribe option or maybe the update will take sometime to take affect
@@Algovibes sorry... its working now, but i have noticed something; that it is location dependent, when i use vpn it starts working with some countries options
9:00 Sorting Data
Say again pls?
I would likt to build a live trading simulation for Binance. So unlike backtesting i would like to use live data to test an algorithm without actually having to spend money. Do you know how i could use the Binance API for that? Would that maybe qualify as a Idea idea for you? Would love to see that. Great Videos, you really show that it's not that hard to build your own trading bots!
Hi mate,
there are several possibilities to do that - yes.
Making a paper trading bot, so instead of executing orders just store the current price somewhere (csv, DB). You could also take a look at the binance testnet.
@@Algovibes The problem with the Testnet is that is only uses data from other testnet users right? I would expect the market to behave very differently from the real one. But i think i already found a solution. I basically request the orderbook of a pair and calculate the price i would get based on that orderbook regarding sells or buys.
great! thanks again!
Thanks a lot for watching mate :-)
how to get this source code?
Love your videos, I’ve learned so much and plan to contribute very soon. Can you make a similar trading bot using DYDX?
I agree 👍
Great video
Thanks mate :-)
Hi, thanks for the amazing video. I love your work since it points to teach crypto strategies but also programming activities. A simple suggestion, on my code i added a line after each operation in order to update the csv file on the local disk. In this way, in case of external stuff (eg shutdown the machine), the posframe file is already updated.
The line of course is: posframe.to_csv('positioncheck', index = False)
Thanks a lot mate. Did you check the description? 😛No worries if you didn't. I mentioned that there.
@@Algovibes ops Sorry, i was too much excited for the video 😛 waiting for your next One!
@@Algovibes ops Sorry, i was too much excited for the video 😛 waiting for your next One!
im getting this error APIError(code=-1013): Filter failure: MIN_NOTIONAL
Covered here:
ruclips.net/video/FlL1X17sw8o/видео.html
And actually in my newest video I am showing how you could get data like this (ccxt video).
Hope that helps!
hello Man,
thank you for the great content and for making things way simple.
i tried using the code but it doesnt run, actually the trader function doesnt enter the first for loop. dont know why? can you help me with that?
Thanks mate, well can you elaborate on where you deviate from my approach and where the error is happening?
i have the same problem
@@Algovibes hello and thanks for your care to reply :) Actually, the problem happens when there is an exception like the one you had on the video “ not enough funds” the for loop restarts from the beginning all over again till the coin that fired the exception.
Thank you, very much, you made my day, currently i tested bots with a MA slope, i made some profits. If you have a better winning rate to the bots, i will apreciate! Or a discussion grup to be created as a suggestion, if not yet created
Thank you very much for sharing your vast knowledge with everybody!
I´m trying to do a similar script (using a CSV file) and I´d like to run it in the cloud 24/7, should I create a Windows VM in GPC?
Thanks in advance!
Welcome mate! :-)
I have covered cloud deployment here, maybe something you can extract value from:
ruclips.net/video/mDNIAkEZChg/видео.html
Thanks a lot man ! I have a question: Do these two lines below serve the same purpose for reaching quantity value ? posframe.loc[posframe.Currency==curr, 'quantity'] /// posframe[posframe.Currency==coin].quantity.values[0]
Welcome mate. Can you pass me timestamps where you are referring to? Thx a lot!
@@Algovibes 19:17 first line is the first expression. Other one is near the bottom starts with " quantity = "
Great videos. Can you make one python code based on Helkin Ashi
Thank you :-)
Got in already on my list, not quite sure when I will cover it tho.
This is interesting.
Happy to read! Be invited to check out my other stuff and let me know if you are looking for something specific!
Hey man could you make a bot on future trading?
Currently restricted in my country. Maybe that changes or I will have to find a new exchange. Might take some time. Thx for your patience!
Hey, that's a great video! I think it's possible to create some mock instead of real binance client and try this bot in "test mode", right ? Just run it for a month in some cloud and see the actual profit. Has anyone tried it ?
Hey man, thanks a lot :-)
I was actually considering to do a tutorial on that as well. Probably somewhen in the upcoming months.
I didn't follow at all the video . I will have a look but You should have used OOP and and IDE for a trading bot...
Agreee on production level but for presentation reasons: Where do you see the advantages? I want to keep the code as understandable as possible.
@@Algovibes it's about taking good habits...jupyter is better for analysing data....and for trading bots : IDE and OOP.This is a fact even for a presentation , it should be done in a level production that's why TESTNET exists on Binance ...Good luck
Thank you so much for the content. One question though. If we want to get a ticker for a certain coin, should we use a WebSocket or just (I'm trading in futures market) futures_klines(...) inside an infinite loop? I am asking cause a lot of times I have encountered a timeout exception that terminates my program and after a lot of research, I haven't found a clean solution around it so now I'm thinking to refactor most of my code (i'm using the second way).
Thank you very much for watching and your comment. Whenever possible you should use a websocket. I am usually just showing concepts with api calls to showcase concepts but all the scripts I am running contain a websocket stream. I have already covered using websockets with different approaches in the cryptobot playlist.
@@Algovibes Thank you again, your content is great and very informative. I'm still till today a little bit overwhelmed with this issue and I don't know when to use each practice websockets vs infinite loop. For instance, I made my first trading bot back then, before 7 months and I was fetching the data with the way of infinite loop containing future_klines (similar to what you do on an other video of yours. But later when you answered my comment you said I should use websockets whenever possible. Is this way of fetching kandlesticks (like you do on the video) bad practice or anything like that?
(I'm doing intraday trading and basically im fetching data everysecond to see how the kandlestick goes thats why I'm asking)