YouTube2Text

My Python strategy with 100% win-rate (+ live results) — Transcript

by Algo-trading with Saleh · 4,415 words · 606 segments · language en · Watch on YouTube

Full transcript

  1. 0:00Today's strategy has a 100% win rate.
  2. 0:02Now, I know what you're thinking. That
  3. 0:04sounds crazy, right? Well, stick with me
  4. 0:06because first I'm going to explain to
  5. 0:08you how the basic math behind it works.
  6. 0:10Then I will write the code in Python so
  7. 0:12we can run some back test on it. And
  8. 0:13then I will even show you some of my
  9. 0:15real trading results with this strategy
  10. 0:17from years ago. And we will discuss
  11. 0:18whether or not you should trade the
  12. 0:20strategy in the first place. So, if that
  13. 0:22all sounds good, let's get right into
  14. 0:23it. Now, this strategy is called Marting
  15. 0:26Gale and it was originally a gambling
  16. 0:28technique. So needless to say it is
  17. 0:30extremely risky but if implemented
  18. 0:33correctly it works at least in theory.
  19. 0:35So let me explain the math behind it
  20. 0:37with a very simple example. So let's
  21. 0:39imagine that the cost of one BTC is $100
  22. 0:42and we decide to open a long position at
  23. 0:45this price. That means the size of our
  24. 0:46position is going to be one BTC and the
  25. 0:48amount that we have spent so far is also
  26. 0:51100 bucks. Nothing complicated. If the
  27. 0:53price goes in our favor, let's say it
  28. 0:55reaches
  29. 0:56$110, then we're going to make $10 per
  30. 0:59each BTC, which in this point we only
  31. 1:01have one, that means we've made $10 in
  32. 1:04total profit. Now, of course, this is
  33. 1:05assuming that we sell the position here.
  34. 1:07But what if the price actually goes
  35. 1:09against us, for example, it reaches $80.
  36. 1:12So, this means at this point, we are 20
  37. 1:14bucks in a loss if we close the
  38. 1:15position, of course. But what if we
  39. 1:17decide to actually double the size of
  40. 1:19our position? So, not only we don't
  41. 1:20sell, we even double down. literally. So
  42. 1:23now the new entry price is going to be
  43. 1:25100 + 80 divided by two which means 90
  44. 1:28bucks. So again the price is here but
  45. 1:31our entry is no longer at 100 bucks. It
  46. 1:34is now at 90. Now what could happen at
  47. 1:36this point is the price could continue
  48. 1:38to go down or it may go up. For example,
  49. 1:40if it reaches 90 bucks, we're going to
  50. 1:42break even. Now of course we also need
  51. 1:44to consider trading fees. But as a
  52. 1:46matter of fact, years ago when I was
  53. 1:47trading the strategy, I was using this
  54. 1:49exchange called BitMX, which isn't as
  55. 1:51popular these days. Now, back then, they
  56. 1:53were offering trading fee rebates for
  57. 1:56market makers. And because this strategy
  58. 1:58uses limit orders, that means I was
  59. 2:00getting trading fee rebates. So, not
  60. 2:02only I wasn't paying the exchange for
  61. 2:04trading, I was getting paid for it. That
  62. 2:06means even if I close my position at the
  63. 2:08same price that I opened it, I would
  64. 2:10have still made money. All right? But
  65. 2:12let's imagine that the price continues
  66. 2:13to go up and it reaches $100 again.
  67. 2:16Well, at this point, we're going to be
  68. 2:18in profit. Exactly how much? Well, it's
  69. 2:21going to be $10 per BTC, but because we
  70. 2:24have two of them, it's going to be 20
  71. 2:26bucks in total profit. So, you see, even
  72. 2:28though we reached the current price that
  73. 2:29we opened this trade in the first place,
  74. 2:31we are now in a profit. Again, that's
  75. 2:33because our entry price is now at 90
  76. 2:35bucks. But let's talk about what if the
  77. 2:37price continued to go down. So instead
  78. 2:39of 80 bucks, it was now at 60. And we
  79. 2:42decided to double down again. So now we
  80. 2:44have two BTC, but we purchase again at
  81. 2:46the new price of 60. Again, the same
  82. 2:49size of the position that we had. So we
  83. 2:50had two BTC, but to double down, we're
  84. 2:53going to purchase two more. That so that
  85. 2:55means now we're going to have four BTC.
  86. 2:57And the total amount of money that we've
  87. 2:59spent on this trade so far is going to
  88. 3:01be $300. And the new entry price is
  89. 3:03going to be 300 divided by 4, which
  90. 3:05equals 75. So this is our new entry
  91. 3:09price. So now if the price goes up,
  92. 3:11let's say it reaches 85, we're going to
  93. 3:13be at 40 bucks in total profit. Again,
  94. 3:16$10 per BTC, but because we have four
  95. 3:18BTC, now we are sitting in this price.
  96. 3:21So you see, even though we started this
  97. 3:22trade at the price of $100, because it
  98. 3:25had some price fluctuation, now even if
  99. 3:27the price reaches $85, we're going to be
  100. 3:30in a profit. So we didn't even have to
  101. 3:33wait for the price to go above 100. So
  102. 3:36that's really the beauty of this
  103. 3:37strategy. You don't even need the price
  104. 3:39to go in your favor. In fact, the more
  105. 3:41it goes against you, the more money
  106. 3:43you're going to make. Now, of course,
  107. 3:45this assumes that it does go in your
  108. 3:47favor, at least a little bit at one
  109. 3:49point, but I'll get to that in a minute.
  110. 3:50So, now let's open Jess's dashboard and
  111. 3:53create a new strategy. I'm going to call
  112. 3:55this Martin
  113. 3:58girl. Open my editor and look it up. All
  114. 4:01right. So, first we need to define our
  115. 4:03interview rule. And for that I'm going
  116. 4:04to make it super simple. I will simply
  117. 4:06return true. That means as soon as I run
  118. 4:09the strategy I'm going to try to open
  119. 4:11the long position. And it is
  120. 4:12significantly easier to write the long
  121. 4:14version of the strategy. So I'm going to
  122. 4:16remove the short functions
  123. 4:18entirely. So I only have these two now.
  124. 4:22Now to do the position sizing and submit
  125. 4:24the actual order. First we need our
  126. 4:26entry price. Now I'm going to say entry
  127. 4:28equals I want the current Ballinger band
  128. 4:31value. So let's define a new
  129. 4:35property and I'm going to call it BB
  130. 4:38short for Ballinger
  131. 4:40bands and in it we will simply return
  132. 4:43TA. Ballinger bands and then I will pass
  133. 4:47the current candles. Now in case you're
  134. 4:48not familiar with Ballinger bands, let's
  135. 4:50look it up on Trading
  136. 4:53View. It's basically very simple
  137. 4:56indicator and it has one moving average
  138. 4:58which is this blue line. And then we
  139. 4:59have the lower band and the higher band
  140. 5:02which are simply two times of the
  141. 5:03current SD or the standard deviation.
  142. 5:06Now this indicator is great for ranging
  143. 5:08markets. You could simply buy when the
  144. 5:10price reaches the lower band and sell
  145. 5:13when it reaches the mean which in this
  146. 5:15case is this moving average, this blue
  147. 5:17line. You can also open a short position
  148. 5:18when the price reaches the upper band
  149. 5:20and then again sell it when it reaches
  150. 5:22the mid. But in reality it's not that
  151. 5:25easy to write a profitable strategy with
  152. 5:27it. Now all I care about is the lower
  153. 5:29band because let's say at this point I
  154. 5:31decide to open a long position. I want
  155. 5:34my entry order to be a limit buy order
  156. 5:36at the lower band. So again for example
  157. 5:39let's say we decide here then the buy
  158. 5:42order is going to be here. So let's go
  159. 5:44here. I'm going to say
  160. 5:46selfb lower band is going to be our
  161. 5:49entry price. All right. Next I need my
  162. 5:51quantity and I'm going to use utils size
  163. 5:55to quantity. first parameter I will pass
  164. 5:57the current available margin but I don't
  165. 6:00want the entire amount for my first
  166. 6:02order because remember we're going to
  167. 6:03submit multiple orders whenever the
  168. 6:05price goes against us right so I'm going
  169. 6:08to begin with 10% of that next I will
  170. 6:11pass the current entry order and as fee
  171. 6:14rate I will pass the current fee of the
  172. 6:16exchange that I'm trading next I will
  173. 6:18simply submit my buy order by saying
  174. 6:21self buy equals quantity and then the
  175. 6:24entry And that's it. All right. So now
  176. 6:27we have the entry of the strategy. But
  177. 6:29what about exiting it? But for that
  178. 6:31first I'm going to have to define the
  179. 6:33unopen position which will get executed
  180. 6:37when the position is open which is the
  181. 6:39moment we want to submit our take profit
  182. 6:41order. Right? So let's scroll this down
  183. 6:43a bit. All right. So I'm going to say
  184. 6:47the TP price standing for take profit
  185. 6:51price
  186. 6:52equals the current positions entry price
  187. 6:57plus some kind of value. Now again
  188. 7:00remember this diagram I showed you. So
  189. 7:02if this is our entry price, we want our
  190. 7:04exiting price with a profit to be
  191. 7:06slightly above it like for example in
  192. 7:08here. But what should we use for that
  193. 7:10number? Like in this example, we simply
  194. 7:12use the number 10. But in an actual
  195. 7:14strategy, we need a dynamic value. And I
  196. 7:17think one of the best ways to do that is
  197. 7:19to use either the ATR indicator or the
  198. 7:22standard deviation. So I'm going to say
  199. 7:23self std multiplied by two. But we
  200. 7:27haven't defined this std yet. So let's
  201. 7:30go up, come down, and define a new
  202. 7:34property. In it, we simply return TA.
  203. 7:39STDEV, which is stands for standard
  204. 7:41deviation. And then we pass the current
  205. 7:43candles and this should give us the
  206. 7:46current SD value. Now, by the way, in
  207. 7:48Python, you don't have to specify the
  208. 7:50return type of the function, but if you
  209. 7:52do, it would be nice and help your
  210. 7:54editor a little bit. But anyways, let's
  211. 7:56go back. So now this value actually
  212. 7:59works. Next, I need to submit the actual
  213. 8:01takeprofit order. For that, I'm going to
  214. 8:03say
  215. 8:04self.takerprofit equals. And as the
  216. 8:06quantity of this order, we will simply
  217. 8:08use the quantity of our current
  218. 8:10position. So I will say self position
  219. 8:13dotquantity and as the price I will pass
  220. 8:15TP price and that's it. Now we have our
  221. 8:17take profit. But if you remember this
  222. 8:19example once we open the position we
  223. 8:22also need to submit our next entry order
  224. 8:24or in other words the order which if the
  225. 8:27price reaches it is going to double the
  226. 8:29size of our current position. So let's
  227. 8:31actually add a comment here saying take
  228. 8:35profit and next I will submit our next
  229. 8:40entry. All right. So I'm going to say
  230. 8:42next
  231. 8:43entry price is going to be the current
  232. 8:48price
  233. 8:50minus again the current
  234. 8:53SD multiplied by two. And the next
  235. 8:58entries quantity is going to be the size
  236. 9:01of our current position because again
  237. 9:03that order is supposed to double the
  238. 9:05size of our position. So if we buy as
  239. 9:07much as we already had that's going to
  240. 9:08double the size. So that's going to be
  241. 9:10simply the current position's quantity.
  242. 9:13All right. Now to submit the next entry
  243. 9:15order. Remember initially we use self
  244. 9:18buy to also add to the size of it. It's
  245. 9:21going to be another buy order, right?
  246. 9:23And it is an entry order. So it's not
  247. 9:25the current takeprofit order or the
  248. 9:27current stop loss. So I will simply
  249. 9:30say self buy equals next entry quantity
  250. 9:36and then next entry price and that's it.
  251. 9:39Now remember that at the point where we
  252. 9:42are executing this code, we already have
  253. 9:45an open position. So that means the
  254. 9:47previous self.Y variable that we filled
  255. 9:50in here is no longer needed. it has
  256. 9:53already been executed and emptied behind
  257. 9:55the scenes for us. So don't worry about
  258. 9:57it. All right. So now we are submitting
  259. 9:59the take profit order and our next entry
  260. 10:02order as soon as the position is open.
  261. 10:05But if you remember our simple example,
  262. 10:06we may have to enter the position or
  263. 10:09let's say add to the size of our
  264. 10:10position multiple times and not just
  265. 10:12once. So doing this just once when we
  266. 10:16open the position is not enough. So we
  267. 10:18need to tell Jesse to submit the next
  268. 10:20entry order and also update our
  269. 10:23takeprofit order whenever we increase
  270. 10:25the size of the position. So for that
  271. 10:26I'm going to use this function called on
  272. 10:29increase position. Now in here we will
  273. 10:32simply do what we did in here or in
  274. 10:35other words let's refactor this. So I'm
  275. 10:37going to write another function and I
  276. 10:39will simply call it something like
  277. 10:42submit exits
  278. 10:45orders and paste this
  279. 10:48here. And in here I will remove this and
  280. 10:53simply
  281. 10:57call this. And one more time I will do
  282. 11:00it in here. So now not only we submit
  283. 11:04our take profit order and the next entry
  284. 11:07order when the position is opened, we
  285. 11:10also do the same thing when the position
  286. 11:11size is increased. All right, there's
  287. 11:13one more thing left because we are using
  288. 11:16a limit order to enter the position. I
  289. 11:18want to make sure that we keep updating
  290. 11:20that order. So let's say we decide to
  291. 11:22enter the position here and we submit
  292. 11:24the entry order which again is a buy
  293. 11:26limit order. We submitted at this price,
  294. 11:29but the price doesn't reach it. In the
  295. 11:31next candle, let's say the price still
  296. 11:33didn't reach it. But if you notice, the
  297. 11:36lower band is going down. So, I want to
  298. 11:38make sure the entry order is getting
  299. 11:39updated. So, when the price hits it, it
  300. 11:42is sitting exactly at the current
  301. 11:44Ballinger band price. To do that, we
  302. 11:46need to tell Jesse that if this order
  303. 11:48here wasn't executed yet and another
  304. 11:51candle has already closed, I need you to
  305. 11:54cancel the previous order and submit
  306. 11:57another one. Now to do that, we should
  307. 11:59simply say def should cancel in tree
  308. 12:02order and in it I will simply return
  309. 12:05true because I want to cancel all the
  310. 12:07time. Like if it hasn't already been
  311. 12:09executed, I want to cancel it because I
  312. 12:11know if it gets cancelled, it will come
  313. 12:13here because by doing so, it will
  314. 12:15re-execute this block of code. It will
  315. 12:17recalculate everything and submit the
  316. 12:19next order with the new price. All
  317. 12:21right, that's it. But there's just one
  318. 12:23more change I want to make in the std
  319. 12:26here. Let's rename this to make it a
  320. 12:30little bit simpler. So I'm going to call
  321. 12:32it margin because it's that distance
  322. 12:35between the current price and the next
  323. 12:37price or in other word the margin the
  324. 12:40difference. So I will call it this
  325. 12:42because I don't want it to just be the
  326. 12:44current standard deviation. I want it to
  327. 12:46be that multiplied by two. Now you could
  328. 12:48also play around with this code. You
  329. 12:50could increase it or lower it or even
  330. 12:52use something else such as the current
  331. 12:53ATR. Now remember that when I renamed
  332. 12:56this, it also changed it wherever we
  333. 12:58were using it, such as this and this.
  334. 13:00All right, now that we have everything,
  335. 13:02we're ready to actually back test this.
  336. 13:04All right, so let's go to Jess's
  337. 13:05dashboard and look up the word marketing
  338. 13:08gap, which is the strategy we just
  339. 13:09wrote. The exchange is Binance Perpetual
  340. 13:11Futures. The symbol is soul UCT. The
  341. 13:15time frame is hourly and the duration of
  342. 13:18it is the first four months of 2025. Now
  343. 13:22I have also turned on the interactive
  344. 13:25chart. Let's turn off the debug mode. I
  345. 13:28don't need it right now. The fast mode
  346. 13:30is on and so is the benchmark feature.
  347. 13:33Now one important thing about the
  348. 13:35strategy is that we're going to need a
  349. 13:37lot of capital. Like the more the
  350. 13:39better. And the maximum leverage on most
  351. 13:42exchanges is 100. So because of that I
  352. 13:44have made sure that my leverage number
  353. 13:46is also 100. Now let's run it.
  354. 13:52And here's the result. So the net profit
  355. 13:56is
  356. 13:58186%. We paid this much in trading fees.
  357. 14:01The draw down is minus
  358. 14:0443%. The win rate is at 100%. And the
  359. 14:09sharp ratio is at 2.66. All right. So
  360. 14:13let's also take a look at the
  361. 14:14interactive charts. So here you can see
  362. 14:17the trades that it executed. So we
  363. 14:20bought here and we sold here in a
  364. 14:21profit. We bought here, we sold in a
  365. 14:23profit. We bought, we added again, added
  366. 14:26again, added again, added again, and
  367. 14:28then again. And then again two more
  368. 14:30times and then sold everything here for
  369. 14:34a nice juicy profit. So by the way, you
  370. 14:36can see the quantity of the trades also
  371. 14:39in here. Then again we bought
  372. 14:42here and
  373. 14:44here and here
  374. 14:46again until we close the position in
  375. 14:50here for a nice juicy profit. And if I
  376. 14:52browse here you can see that all of them
  377. 14:54are wins. And if I click on one of them
  378. 14:56you can also see the details of it. So
  379. 14:58for example the entry price the exit
  380. 15:00price the entire quantity of the trade
  381. 15:03the P&L how many percentage it was and
  382. 15:06things like that. And notice that all
  383. 15:09the trades are limit orders. All right,
  384. 15:11so let's close this one
  385. 15:14and do it again with the two hours time
  386. 15:17frame. So while that's going, I want to
  387. 15:19quickly remind you guys about Apex Omni,
  388. 15:21which is my favorite decks made by the
  389. 15:23team behind Bybit. It has low trading
  390. 15:26fees, instant order execution, and of
  391. 15:28course, no KYC whatsoever. If you're
  392. 15:30going to check them out, please consider
  393. 15:32using our link, which not only will give
  394. 15:34you trading fee discounts, but it will
  395. 15:35also support me in order to make more
  396. 15:37videos like this. Again, we are in a
  397. 15:40profit. The draw down is now lower. The
  398. 15:44M rate is still at 100%. The sharp is
  399. 15:47now at
  400. 15:492.54. Let's do it one more time for the
  401. 15:525 minutes time frame. Let's look up that
  402. 15:56strategy.
  403. 15:57But notice that I have changed the
  404. 15:59duration now. So if I run it with the
  405. 16:02five minutes time frame, here's the
  406. 16:05result. We executed 19 trades over 9
  407. 16:09days. We made more than 5% in profit.
  408. 16:13The win rate is again at 100%. The sharp
  409. 16:16is at 7.74, which is absolutely
  410. 16:21crazy. Now, like I said, you can run
  411. 16:24this strategy on any other symbol. So
  412. 16:26let's try it on
  413. 16:29ETH on the hourly time
  414. 16:33frame over the duration of 1 month. Here
  415. 16:36is the result. We made 90% in
  416. 16:40profit. The draw down is minus 10%, the
  417. 16:43M rate is again at 100%. And we can also
  418. 16:47look at the trades. So in a range it
  419. 16:49absolutely crushed it.
  420. 16:52And in a downtrend, you might think this
  421. 16:56was a bad trade, but because the size of
  422. 16:58it increased, when we closed it
  423. 17:00eventually here, it actually made the
  424. 17:03most amount of money. So, this is the
  425. 17:07trade. It made us this much in profit.
  426. 17:10All right. So, the strategy seems
  427. 17:12perfect, right? So, at this point,
  428. 17:14you're probably thinking to yourself, if
  429. 17:16the strategy is literally perfect, like
  430. 17:19why is he even making this video, right?
  431. 17:21like why isn't he a billionaire by now?
  432. 17:23Well, let me show you my actual trading
  433. 17:25results with this strategy. So, this is
  434. 17:28for years ago for 2018 on the exchange
  435. 17:32BitMX as I explained earlier and you can
  436. 17:35see the sizes of the trade. So, for
  437. 17:37example, I shorted here then I closed
  438. 17:40the position here. I shorted, shorted
  439. 17:42and then closed it. Went long and then
  440. 17:45closed it. Shorted, shorted and then
  441. 17:47closed it. So again every time we start
  442. 17:49with some number then we keep doubling
  443. 17:52the size of the position which means our
  444. 17:54closing order is also the size of the
  445. 17:56entire position. Now again shorted
  446. 17:58shorted shorted shorted and I kept
  447. 18:00doubling and then I closed it. And the
  448. 18:02more I did this actually the profit was
  449. 18:05bigger. You can also see the trading fee
  450. 18:07we base that I was talking about. It was
  451. 18:10this number. You see it's negative. It
  452. 18:12means the exchange is actually paying
  453. 18:14us. We are not paying the exchange. And
  454. 18:16you can also see that these orders were
  455. 18:18submitted via the API. And the asset I
  456. 18:21was trading was called XBT, which is the
  457. 18:23name of BTC on
  458. 18:25BitMX. This again is some other trades.
  459. 18:28So it wasn't just one or two lucky
  460. 18:31trades. This went on for 48 hours. Yes,
  461. 18:34you heard that right. 48 hours. Because
  462. 18:36after 48 hours, what happened was this.
  463. 18:41Look at the last trade. It is
  464. 18:44liquidation. And yes, I got liquidated
  465. 18:46and the whole account was gone. And
  466. 18:48that's really the issue with this
  467. 18:50strategy. And it's a big one because
  468. 18:52you're going to win all the time until
  469. 18:55you don't. And when you don't, you don't
  470. 18:58just lose a little bit of money. You get
  471. 19:00liquidated. Game over. Now, let me
  472. 19:02explain why this is happening. So,
  473. 19:04imagine we have 500 bucks for our
  474. 19:07trading capital. If we have 100
  475. 19:09leverage, that means in total we have
  476. 19:11$50,000. Then assuming we have 100x
  477. 19:14leverage, we're going to have $50,000
  478. 19:16purchasing power. Now, here's why this
  479. 19:18is important. Because let's say the
  480. 19:20price of one BTC is 500 bucks and we buy
  481. 19:23one BTC and for that we're going to
  482. 19:26spend $500, right? And the size of our
  483. 19:29position is going to be one BTC. In the
  484. 19:31next step, when the price goes against
  485. 19:33us, and to keep this example easy, I'm
  486. 19:35going to assume that the price keeps
  487. 19:37going 20 bucks against us. All right? So
  488. 19:40the next step, we're going to have to
  489. 19:42submit another order again with the size
  490. 19:45of one BTC to double the size of our
  491. 19:47position. And the value of this new
  492. 19:49order is going to be 480 bucks because
  493. 19:52now that is the current price. The
  494. 19:54entire amount that we have spent so far
  495. 19:56is going to be 980 bucks and the size of
  496. 20:00the position is going to be 2 BTC. The
  497. 20:02next step, let's say the price is now at
  498. 20:04460. The size of the order is going to
  499. 20:07be two and the value of it will be this
  500. 20:09much. And now the entire capital we have
  501. 20:12spent so far is going to be
  502. 20:15$1,900. And again the size of the
  503. 20:17position is at four. So we will keep
  504. 20:20doing this. And notice that the entire
  505. 20:22amount of capital that we need is keep
  506. 20:24getting almost doubled. And it's not
  507. 20:26like we have infinite amount of money,
  508. 20:28right? So how much can we take this?
  509. 20:30Well, according to my calculation, we
  510. 20:32are only able to keep doing this until
  511. 20:35seven steps because at the seventh step,
  512. 20:38the amount of capital we have spent so
  513. 20:40far is
  514. 20:43$48,620. And again, this assumes our
  515. 20:46purchasing power was $50,000. So that
  516. 20:48means we are not able to make this 8
  517. 20:51accept which requires us to have
  518. 20:54$92,000 in capital. If we did, we would
  519. 20:57have been able to continue of course. So
  520. 20:59that's really the issue with this
  521. 21:00strategy. Yes, it seems perfect, but
  522. 21:03only if you have infinite amount of
  523. 21:05money, which we obviously don't. So now
  524. 21:07let me show you this. So let's say for
  525. 21:09the one with the time frame of 5
  526. 21:10minutes, what would have happened if I
  527. 21:13increase the ending date to the next
  528. 21:17month, we're going to get an error like
  529. 21:19this. It's telling me you cannot submit
  530. 21:21an order with a value of this amount
  531. 21:24when your available margin is this much.
  532. 21:26Now it's telling me consider increasing
  533. 21:27the leverage which I already have. I set
  534. 21:30it to 100, right? So I cannot do that
  535. 21:32anymore. Basically what's happening is
  536. 21:35that it's trying to submit the next
  537. 21:37order but it's running out of capital
  538. 21:39because this is a bit different than
  539. 21:41getting liquidated because it's trying
  540. 21:42to submit that last entry order but it's
  541. 21:45running out of capital. Which means if
  542. 21:47in reality in live trading you weren't
  543. 21:49able to submit this order, which would
  544. 21:51have been the case, you would have had
  545. 21:53to hold the position and the price would
  546. 21:55have gone against you until the point
  547. 21:57where you would have gotten liquidated.
  548. 22:00There you go. That's the issue with the
  549. 22:02strategy. Now, you might be thinking,
  550. 22:04what if we used a stop loss? What if we
  551. 22:06didn't keep the position or kept adding
  552. 22:08to it until this point, right? What if
  553. 22:10we accepted our losses, exited the
  554. 22:13trade, and started another one? Well,
  555. 22:16that is an option. You're welcome to try
  556. 22:18it, but I highly discourage you to do
  557. 22:21that because if you want to be a
  558. 22:22successful trader in the long term, you
  559. 22:25need to have a solid risk management in
  560. 22:27place. And for that, you want to exit
  561. 22:29the trade as soon as it is going against
  562. 22:31you. You want to keep your losses short
  563. 22:33and let your wins to be big. But in a
  564. 22:36strategy like this, you actually make
  565. 22:38the most amount of money when it is
  566. 22:40going against you. So if we had exited
  567. 22:43the trade early, we would not have made
  568. 22:45these numbers. So we had to let it to go
  569. 22:47against us. And that's really against
  570. 22:50all the values that I have for risk
  571. 22:51management in trading. So if you don't
  572. 22:53use a Starbucks like this example,
  573. 22:55definitely don't do it because in live
  574. 22:57trading, you're going to face all sorts
  575. 22:58of issues. Your internet connection
  576. 23:00might go down, the exchange might go
  577. 23:02down, or even maybe the software you are
  578. 23:04trading it with might have some bugs.
  579. 23:06All these things could and will happen
  580. 23:08at some point. And you want to make sure
  581. 23:10that if something went wrong, you only
  582. 23:12lose one trade, not your entire trading
  583. 23:15account. So because of that, you
  584. 23:16absolutely shouldn't trade this strategy
  585. 23:18without a stop. And if you do use a
  586. 23:20subplus, you're not going to get good
  587. 23:22numbers. But nonetheless, I think this
  588. 23:24was a good type of a mean diversion
  589. 23:26strategy. And there are some good ideas
  590. 23:29about it. And we might be able to take
  591. 23:31this concept, work on it to develop a
  592. 23:33good means strategy in the future. So, I
  593. 23:36hope you guys enjoyed this video and
  594. 23:37maybe learned at least one or two things
  595. 23:39from it. Now, we're going to have a
  596. 23:40giveaway. A random person who likes this
  597. 23:42video, post a comment, and subscribes to
  598. 23:43the channel, it's going to win 1 million
  599. 23:45buck token. All right, let's pick the
  600. 23:47winner from the previous
  601. 23:49video. And the winner is, "Thanks for
  602. 23:52your invaluable help and education. Best
  603. 23:54wishes. Thank you so much for your nice
  604. 23:56comment. Please reach out to me so that
  605. 23:57I can send you your bunk tokens.
  606. 24:03[Music]

About this transcript

This page contains the full transcript of My Python strategy with 100% win-rate (+ live results) by Algo-trading with Saleh, generated from the public captions YouTube serves with the video. The transcript has 4,415 words across 606 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.

What you can do with it

Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to translate the transcript into 100+ languages.

Free YouTube transcript tool

YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.