2outube
Plus Search Batch YouTube
Transcript

From ZERO To LIVE Trading Bot that WINS when Trader LOSE

All Moon Dev transcripts →

Tip: change youtube.com to 2outube.com on any video.

Summary

This video explains how to build a trading bot that profits from other traders being liquidated. It details the strategy of waiting for liquidation levels to enter a trade and provides insights into the bot's code, structure, and the overall process of developing automated trading strategies.

Key points
  • The trading bot is designed to profit by entering trades when other traders are liquidated, essentially winning when others lose.
  • The bot's strategy involves identifying liquidation levels and placing limit buy orders slightly below these points.
  • Patience is a key trait for this bot, as it waits for specific liquidation percentages to be met before executing a trade.
  • The video provides an overview of the bot's code structure, including modules for liquidation ladders, supply zones, and order management.
  • Developing trading bots involves a process of researching ideas, backtesting them, and then automating the viable strategies.
  • The presenter emphasizes the importance of error handling, order cancellation, and checking existing positions to prevent trading errors.
Chapters
Notable quotes (4)

“And this essentially buys when other people get liquidated.”

“And the one gift we do not have is patience.”

“this guy gets liquidated, loses all of their money.”

“So that's why this is going to be very very good for me.”

0:00I'm going to show you how to go from zero to live trading bot that actually wins when other people get liquidated. As you can see here, this is a liquidation cascade bot. My name is Mundv. I've helped thousands of people go from absolute beginner to fully automated trader. You can see the bot is running in the bottom right along with this other scanner that I can see everybody's positions. And I'm using this in order to see everybody's positions for this bot so it can trade when other people lose money. If you stick around for this short video, I will show you exactly all of the code.
0:33I'll show you how the bot works. I'll give you the big idea. You just need to stick around for a few minutes. And like I said, I've helped thousands of people just like yourself go from beginner to fully automated trader. And this essentially buys when other people get liquidated. You can see it just sits here and waits until like one of these guys get liquidated. You can see I can open this up here and see exactly where people get liquidated at, see their positions, etc. This guy's not a very good trader. this guy's actually a pretty good trader, but I'm going to go ahead and wait till they get liquidated.
1:03And that's the whole premise. It just sits there, waits till they get liquidated. It knows exactly when they will get liquidated. And essentially, it just waits. It's patient. And that's the thing about trading by hand is we're humans and we're not just going to all of a sudden not be human, right? And the one gift we do not have is patience. I mean, think about it. You get all jammed up in the store, you're all pissed off, road rage, all this. Patience is a gift.
1:29Patience is a gift, but Hyperliquid gave us a gift where we can actually see everybody's position. So instead of just sitting there like a human saying, "I'm going to buy or sell." I'm going to have a bot that sits there and waits till this guy gets liquidated, loses all of their money. So when he loses, I win.
1:46You can see that it's just going to sit. We already did the study on this. I'm I'm doing this with Kashkai. It's a little little silly meme coin, but essentially it is traded on Hyperlid. And like I said, I'm going to show you all the code on Hyperlquid. All of your money sits in your main wallet and you're able to trade whether that's spot or derivatives. So derivatives are essentially using leverage and a lot of my bots use a small amount of leverage, but you have to be very careful because when you do use leverage, you can see here on the right, I can see everybody's
2:20positions on leverage. You can see here that it will just sit there and long on a ladder. You can see there's a bunch of different positions here in the top right. And just the same with Cash Cat, which I built this bot for, it's going to sit there and just wait at their liquidation level. So when they have to give up their position, the thesis is if I want to be long something, I would I would rather buy it be long once they give it up.
2:50Every long has a price where it dies. If you're using leverage, if you're borrowing money, there's a point that it dies. Essentially, you get liquidated. And that's what the liquidation ladder bot that I'm showing you here right now, and I'll show you all the code for it does. Essentially, I pick a percentage of the book that I want to see get liquidated. So, for example, if there's $5 million of liquidations long and I want to be long, I'm waiting until there's like 83% of those liquidations are liquidated. So, there's 5 million.
3:22I'm taking I'm waiting till 83% until it puts in the order. And you can see that big red button right here. That's when it puts the order in. It puts the order and sits and waits because we already see the positions there. But that's the whole premise here. And there's a little code sample, but I will give you the full code here in a second. So essentially all you have to do is change the percentage of the book you want liquidated. So if you're trading BTC, you want to wait till 90% of people get liquidated. It's going to be a lower price than if you were to pick like 20%.
3:51Essentially, it just sits right there. It's one limit buy. So the bot just sits patiently and waits. Okay, let's wait till 83% is gone. Boom. 83% 83%. So this is going to be a big liquidation cascade. That means that 83% of the people that want were in the position you want to be in, they get erased. So that's why this is going to be very very good for me. It's just one limit buy and I place it half a percent under that anchor. So you can see that anchor is where everybody gets liquidated and a half a percent under is where I actually enter because as we know the price will
4:25continue to go if there is a big liquidation. So, what I'll do on the exit is simply, okay, I bought this absolute banger of a deal because I waited till everybody lost all of their money, right? And then I'm going to sell at the supply zone. So, the demand zone is usually like under the the support levels and then the supply zone is a little bit over the resistance. But since I bought such a deal down here, selling up here is going to be a nice profit. So it really comes down to come up with ideas like this and then automating them to see if they work.
5:00That's the whole process of building trading bots. Starts with research of ideas whether you find them in books, papers, YouTube videos, just your trading in general. You come up with the idea, back test it if you can to see if it's trash. If it's trash, throw it away and move on to the next idea. But I've been testing these liquidations for a long time. I've done a lot of back testing. So I'm building that bot out and I'm about to show you all the code as well.
5:29You can see that it just rests. It just rests the order on the book. And when we're ready, when it's ready to enter, when it hits that point, it just enters. I mean, it's a limit order that's sitting there. It go it goes ahead and cancels the orders every time it puts in a new order. And that's one big thing I want to mention here is I see a lot of people go ahead and start building bots and they forget to cancel the order before they put another order in or they forget to look at their position before they actually enter a position because what
6:00happens a lot of times is okay they enter a position then they forgot to look have the function call to see if they're in position so they just keep entering and they blow up that way. So, be careful. Make sure to cancel orders and make sure to check your positions. You can see there's multiple states of this bot. Flat means, hey, we're hunting. I'm looking for an entry here.
6:23So, with this specific symbol, I'm looking for an entry right now. I've already done all the math and it's sitting there. It's flat. It's not in position. It's waiting until that 83% gets liquidated. Once it does get liquidated, okay, the bot's going to know, like I said, okay, it's going to know, hey, now we're in a position. We're not looking for a position anymore. We're actually looking to exit. So, this is a continuous loop that's always checking that. And then, of course, this is actually very big, and a lot of people don't do this.
6:52You're going to have errors in your bot, whether you're like me where I lose power all the time. Well, it needs to rebuild the connection. Okay? it fails, back off and then rebuild cuz you're going to go to sleep. You're going to go enjoy your time with your friends and family. That's the whole point of being an automated trader is leaving your computer. Most people are going to trade by hand and look at the 9:30 open for the open range breakout and then stare at the charts all day hoping the price is going to go their way. But no, us algorithmic traders, we come up with
7:22ideas so we can automate them, go live our lives and come back and see the data. You see how this iteration is much better than trading by hand? Because trading by hand, you're gambling your whole net worth every single day. And you're not really compounding. This bot that I'm about to show you, it's taken me years to build, but it's compounding.
7:44So, I use something from last year. I use something from the year before that. I use this function from last week. And you see every single time I launch a new bike, it becomes easier and easier and easier. That's why I'm trying to make this a little more presentable for you. So, let's get into part two with the with the actual code. There's a bunch of functions. We're going to go through here. This is the bot that I just explained to you, the one that's running in the bottom right. And this can be for any token on Hyperlid. You can see all of the different modules I'm going to go
8:12through. We've got unified equity, we've got the liquidation ladder, we've got the supply zone, that's the exit, the loops, and the main. So, let's start with this. This is just describing the idea. I already described it here. So, I'll go through this fast. pause, screenshot, whatever you need to do. This is not a plug-and-play, make a million dollars overnight. This is something that I'm testing, but if I built the infrastructure already, I might as well give it to you. You can see this is the price get grid. Uh on Hyperlid, you have to watch out for the decimals. So, I wanted to go ahead and
8:43give you all of the functions, the entire bot, so you can go ahead and build out your own ideas. None of this is financial advice. Nobody's going to give you a profitable plug-and-play bot, including myself. But if I build bots that I'm testing, I might as well show you because hey, maybe you'll join the next Zoom call or join the community and bring some of your good ideas this way.
9:04You can see here that this is the liquidation ladder. So, it's looking at all of the different liquidation prices. Kind of like this up here in the top right. I can see everybody's positions near liquidation. Here's that next part of the function. You can see these are building the rungs. These are essentially the places we're putting the orders in based off of the liquidations. And like I said, if I want 83% of the book to be deleted, meaning they all get liquidated, that means I'm getting a way better price. So if you have a bias long or short, you might as well have a bot wait and just
9:42buy or sell at a price that others give it up. And that's what I always thought about Michael Sailor and them. Like you could have just sat here the whole time and at least bought demand zones or wait till somebody gets liquidated and just buy then have a bot for that. You can see this is the function to build the supply zone. Now this would be on the exit, right? Because this means that I purchased when everybody else lost all their money. So I win when they lose and then the price goes back up or maybe in your case down whichever way you are trading. Well, this would be the supply
10:14zone. If you wanted the opposite, that would be called the demand zone. You can see here the next part of the supply zone function here. This is the price that I would exit at. Here's the next function here. I'm showing you all of the code. I'm trying to be quick with this as I do respect your time. This took me six hours to build and I am trying to give it to you here in just a few minutes. So, this is getting the equity on Hyperlquid. They use something called unified equity. So you can use that as collateral against any any trades whether it's derivatives
10:49or spot. You can see I'm grabbing the supply zone here. I'm making sure to cancel the orders. Here is the next part of that function. We're going to loop and hunt if we are flat. Flat means that I'm not in position. So I'm looking to enter a position. I'm getting my margin. I'm saying how much of the equity I want to use for this bot. I'm using 95% of my account equity. You can see here, this is the main bot part that is running.
11:18Print out some banners. Of course, I'm using a sub account setup. And I found this to be the best way if you're trading on Hyperlid because then you can have unlimited sub accounts that you can test different ideas on. The process that I follow, I'll show you here at the very end. I'll show you the road map, but this is all of the code here. The process that I follow is the RBI system.
11:39So, this is actually a road map that the people in the Zoom already have, but let me give you a sneak peek because I think this will bring it all together. If you're really starting from zero, don't do what I did. I learned how to code and I built a bot thinking that just because I know how to code, I'll make a million dollars. I lost a bunch of money because I just built a bot based off idea that I didn't know actually worked. The process that I now follow and the framework that I've teached thousands of people how to do this with is the RBI system. That's
12:07what I've named it. The process of automating your trading starts with the research of trading strategies. So find a bunch of ideas that you think might work. Then back test to see if they're trash. If they're trash, get them out of here and move on. If they look good on the back test, if the stats line up, then build them into a bot to incubate them. And that's exactly what I'm doing here in the bottom right. And that's exactly what I just showed you. So, I gave you all of the code. I I showed you the bot that I'm using to incubate the idea that I explained at the start of
12:34this. This road map is for everybody in the Zoom. They also get the API key. Uh feel free to join the Zooms. They are $5. It's just a gate to make sure that I'm only talking to people that are actually interested in this. We have a Zoom every day and you get three bonuses, which is the API key, Mundev AI, the Mundev app, and that road map I just showed you. But here in this short video, I just showed you all of the code for this liquidation bot where I just sit patiently and win when others lose.
Works on any YouTube video. Swap youtube.com for 2outube.com in the address bar — or paste a link.
Read another video
From ZERO To LIVE Trading Bot that WINS when Trader LOSE

Email this transcript

The full transcript as Markdown, straight to your inbox. Nothing else — no list, no follow-ups.

Keyboard shortcuts

Search the transcript/
Copy plain textc
Slow down / speed up[ ]
Show this help?
Close / clear searchesc