YouTube2Text

Machine learning for algorithmic trading w/ Bert Mouler — Transcript

by Chat With Traders · 11,571 words · 1,561 segments · language en · Watch on YouTube

Full transcript

  1. 0:00chat with Traders episode 42 the biggest
  2. 0:03secret of the best traders in the world
  3. 0:05is that they're just like everyone else
  4. 0:07however they've worked hard to learn the
  5. 0:09markets and discover what works and what
  6. 0:11doesn't but how can you hear about these
  7. 0:13Journeys and get in on the strategies
  8. 0:15and tactics they use you can do it by
  9. 0:18listening to chat with Traders here's
  10. 0:20your host Aaron
  11. 0:22[Music]
  12. 0:27ffield hi there what's up I'm your Aron
  13. 0:30ffield and thanks so much for listening
  14. 0:32in to this week's episode number 42 what
  15. 0:35you're about to hear is an interview
  16. 0:37with Bert Mueller he's a Trader of
  17. 0:39Futures and equities and has been
  18. 0:41involved with markets since around 2007
  19. 0:44but he does things a little different to
  20. 0:46most he's an algorithmic Trader who
  21. 0:49harnesses the power of machine learning
  22. 0:51to discover and develop profitable
  23. 0:53trading strategies this is an area that
  24. 0:56hasn't really been covered in previous
  25. 0:58episodes except for the mantion here and
  26. 1:01there so it was really great to have BD
  27. 1:02on the show to share some insight on
  28. 1:05machine learning and how it works in the
  29. 1:07realm of trading Beyond this you'll also
  30. 1:10hear Bert's views on diversification and
  31. 1:13how he thinks about risk management plus
  32. 1:15one of the things I really respect about
  33. 1:17Bert and that is his drive for continual
  34. 1:19progression his attitude towards further
  35. 1:22education and the way he approaches goal
  36. 1:24setting now just before we roll into the
  37. 1:27interview I'd like to ask you for a very
  38. 1:29small favor could you please leave a
  39. 1:32very brief review on the podcast in
  40. 1:34iTunes it's a massive help uh reviews
  41. 1:38have a huge effect on how well this
  42. 1:41podcast ranks in iTunes so obviously the
  43. 1:44better we rank the more listeners we can
  44. 1:45reach so if you'd like a quick and easy
  45. 1:48way to support this podcast please go to
  46. 1:50chat withth traders.com
  47. 1:53iTunes and leave a brief review it will
  48. 1:56take you no more than 2 minutes and like
  49. 1:58I mentioned in the past you'll support
  50. 2:00is really appreciated so please do this
  51. 2:02just while you're listening that would
  52. 2:04be really cool okay time for this week's
  53. 2:06interview I'm your host Aon farfield and
  54. 2:09here is my guest for episode number 42
  55. 2:11Bert
  56. 2:14Mueller Bert what's up man how you going
  57. 2:17I'm good how are you man not too bad at
  58. 2:19all so we spoke yesterday and you were
  59. 2:22pretty much running off next to no sleep
  60. 2:24I hope you've had a chance to catch
  61. 2:26up yeah a little bit a little bit okay
  62. 2:30I'm not first snow today in Moscow so
  63. 2:34out the window the entire city is white
  64. 2:37real nice it's white so it's snowing is
  65. 2:40it yeah yeah all right very cool yeah
  66. 2:43we're just heading into summer here so
  67. 2:44it's much the opposite but um yeah well
  68. 2:47anyway bird it's it's really great to
  69. 2:49have you on for an interview today so
  70. 2:51first of all thank you and secondly I'm
  71. 2:54really intrigued by some of the topics
  72. 2:56we're going to cover and I think most of
  73. 2:58those topics are probably going to stem
  74. 2:59from machine learning so that in itself
  75. 3:02is something that hasn't really been
  76. 3:04spoken about in any of the previous
  77. 3:07episodes so some listeners may already
  78. 3:08be familiar with the concept of machine
  79. 3:11learning but I'm sure you're going to
  80. 3:13open the minds for many listeners as
  81. 3:15well and Expos them to something
  82. 3:17completely new so I think it's going to
  83. 3:19be really good I'm excited man all right
  84. 3:22cool well let's do it so let's start
  85. 3:24right from the very start like we always
  86. 3:26do so share with us when did you first
  87. 3:29discover the market Mark and what was
  88. 3:30your your real introduction to
  89. 3:33trading um so I came in with some money
  90. 3:37around 2007 2008 and um yeah I uh I had
  91. 3:43a friend who's a financial adviser and I
  92. 3:47uh I talked to him and I was like you
  93. 3:48know what should I be doing you know
  94. 3:51what's uh what's the good way to go
  95. 3:52about this and he is you know the
  96. 3:54classical American you know registered
  97. 3:56investment adviser and he's like look
  98. 3:57you need like some stocks you need some
  99. 3:59bonds you know that classic stuff they
  100. 4:01teach you in in school and uh so I I I
  101. 4:05went ahead and I I bought some some
  102. 4:07stock and I I think uh Ford was the
  103. 4:09first company that I bought because you
  104. 4:10know well Ford's a good company they
  105. 4:13have a solid had a solid balance sheet
  106. 4:16whatnot um actually I think it was uh it
  107. 4:20happened to be one of the companies that
  108. 4:22didn't get bailed out after all that so
  109. 4:24I guess maybe the initial analysis on a
  110. 4:26fundamental level might have even been
  111. 4:28correct but uh I bought it and it went
  112. 4:31down and I I bought it bought some more
  113. 4:34and it went down some more and then it
  114. 4:35just it kept on going down because that
  115. 4:37was the the time you know we were in a
  116. 4:39bare market and everything was kind of
  117. 4:40going down and uh you know I thought
  118. 4:43this is kind of lame you know um I I'm
  119. 4:47I'm a smart guy or you know I thought I
  120. 4:49was a smart guy back then and I uh you
  121. 4:53know I have this you know I have I have
  122. 4:55a buddy that that helped me with my
  123. 4:57analysis or analysis coincided they're
  124. 5:00they they're in agreement and the market
  125. 5:04uh the market obviously wasn't so what's
  126. 5:05up and so I kind of just started reading
  127. 5:07and reading and I I uh I had a more
  128. 5:10technical background I was studing
  129. 5:12studying biochemistry at the
  130. 5:14time and uh um you know technical
  131. 5:18analysis appealed to me uh you know it
  132. 5:21seemed really easy to uh to look at the
  133. 5:23stochastics or whatever they had the RSI
  134. 5:26back then and then you know to buy the
  135. 5:27bottoms and sell the tops
  136. 5:30um obviously in practice it didn't turn
  137. 5:33out to be that easy but um I kept
  138. 5:36reading and reading and reading and uh I
  139. 5:38actually uh ended up trading options
  140. 5:41because I was you know young and and
  141. 5:42dumb and wanted to make a million bucks
  142. 5:45overnight
  143. 5:46obviously oh I lost um I even took some
  144. 5:50money because there are some other
  145. 5:52people that thought I was smart yeah
  146. 5:54that was and and uh that turned out
  147. 5:57really really really bad I lost all
  148. 5:59money uh really fast actually um
  149. 6:04and uh yeah I was I was devastated
  150. 6:07because it's wasn't my money and uh you
  151. 6:09know I had never made that much money in
  152. 6:11my life and just oh man so bad but you
  153. 6:15know I don't know I I I realized that
  154. 6:18someone on the other side of that had
  155. 6:20made that money you know and so I
  156. 6:23realized that you you you could be the
  157. 6:25guy making that money and so basically I
  158. 6:28I set out to uh to do that to be that
  159. 6:31guy and uh I read basically uh
  160. 6:35everything I could get my hands
  161. 6:37on um you know obviously we you're
  162. 6:40talking about uh this yesterday the
  163. 6:41market Wizards book were uh books were
  164. 6:44amazing that's why it's it's awesome
  165. 6:45that you're doing this podcast but uh
  166. 6:49yeah I realized kind of uh that uh
  167. 6:52there's a very many different approaches
  168. 6:55uh to trading and um I realized that uh
  169. 6:59the guys that the approach that I was
  170. 7:01most comfortable with was this like more
  171. 7:03technical mathematical whatever computer
  172. 7:05based approach um yeah so that's kind of
  173. 7:08how I got started okay yeah now that's
  174. 7:11really good so I mean let's just take it
  175. 7:13right back to the very start there and
  176. 7:16you came into some money around 2007 I
  177. 7:19mean why did you come with that money to
  178. 7:22the stock market I mean you could have
  179. 7:24um you know gone and started a business
  180. 7:26with it you could have you know done a
  181. 7:28bunch of other things with that money
  182. 7:30but something appealed to you about the
  183. 7:33stock market what was
  184. 7:35that um I don't know I'm not going to
  185. 7:38lie to you man I I think uh just making
  186. 7:40money while doing nothing
  187. 7:43uh you know that's what I thought it was
  188. 7:45going to be like you know you put your
  189. 7:46money in the market and then just you
  190. 7:48know and a year later you look and
  191. 7:49there's more money but uh obviously it
  192. 7:52doesn't work like that so so let's talk
  193. 7:55more about your first kind of first year
  194. 7:58or first two years you were trading so
  195. 8:00you told us about the the Ford example
  196. 8:02there where you just kept buying and it
  197. 8:04kept going down and you brought again
  198. 8:06after that happened and you started to
  199. 8:08read up on technical analysis what did
  200. 8:10the next like year or two look like for
  201. 8:12you how' you how'd you
  202. 8:15go um I did have some good trades uh
  203. 8:19using like just you know Silly technical
  204. 8:21analysis like RSI and you know whatever
  205. 8:24stastics that kind of stuff and that was
  206. 8:26actually super bad um actually I I a lot
  207. 8:29of Traders on your podcast and a lot of
  208. 8:31Traders I I know as well uh that that
  209. 8:34hand trade they kind of say like the
  210. 8:36worst the worst kind of Trades are the
  211. 8:37ones that are like wrong in principle
  212. 8:40but they turn out well and then you
  213. 8:42think you did them right and you get
  214. 8:43that overconfidence in the wrong kind of
  215. 8:46technique and uh yeah um so I did end up
  216. 8:49making some money trading this stuff and
  217. 8:51then I was like huh I want to make more
  218. 8:53money basically I just wanted to get
  219. 8:54more lovered so uh I did the long
  220. 8:57options
  221. 8:59okay so so if we had to summarize those
  222. 9:02first few years what were probably the
  223. 9:04the greatest challenges and frustrations
  224. 9:07like maybe perhaps that was you know uh
  225. 9:10just taking on too much leverage like
  226. 9:12you mentioned there but was there
  227. 9:13anything
  228. 9:14else uh it's too much risk and being
  229. 9:18undereducated and I think uh being
  230. 9:21overconfident um I was you know really
  231. 9:23young back then and not you know not
  232. 9:25much older or not much younger than I am
  233. 9:28now but still uh in terms of trading
  234. 9:30experience just I mean night and day
  235. 9:33um yeah I think it's just you know
  236. 9:36undereducated uh
  237. 9:38overleveraged and I mean you really have
  238. 9:40to understand that like making let's say
  239. 9:4320% a year consistently I mean you're
  240. 9:46going to be you're going to make as much
  241. 9:47money as you want basically I mean
  242. 9:49making 15% a year you can make as much
  243. 9:52money as you want you know if you start
  244. 9:53young enough sure okay so you also
  245. 9:57mentioned uh right at the beginning
  246. 9:59there how you read a bunch of books um
  247. 10:02you know Market Wizards was obviously
  248. 10:04the Highlight but you also read a ton of
  249. 10:05other trading books um so you did a lot
  250. 10:10of reading what did you discover from
  251. 10:12this and was it a helpful
  252. 10:15exercise so uh yeah it was definitely a
  253. 10:19helpful exercise I would say you know
  254. 10:21the
  255. 10:2299% of the stuff out there is total BS
  256. 10:25in the sense that it's not going to help
  257. 10:27you I mean um even the stuff that's good
  258. 10:31you know uh for example uh you know
  259. 10:34maybe like out of the hand trading stuff
  260. 10:37uh the stuff I've seen work personally
  261. 10:39you know kind of maybe let's say is
  262. 10:41support and resistance right but even
  263. 10:43the people that uh talk about just
  264. 10:44straight up horizontal support and
  265. 10:46resistance in their books they're going
  266. 10:48to use the examples that are only the
  267. 10:51ones like the best examples and so again
  268. 10:55um it's kind of detrimental to the to
  269. 10:58the learning process proc you need to
  270. 11:00really understand you need to see the
  271. 11:02the times that your Technique fails uh
  272. 11:04you need to really understand those I
  273. 11:06think a lot more than uh the times that
  274. 11:08it works because when it works well it
  275. 11:10works you don't have to do
  276. 11:11anything um and uh but but it's you know
  277. 11:15it's still worth it to read uh like a
  278. 11:18let's say a bad book or you know there's
  279. 11:20no such thing as a bad book but a book
  280. 11:22that doesn't help you in the in the
  281. 11:24classical sense it doesn't give you
  282. 11:25useful information because you can see
  283. 11:27what other people are doing and you get
  284. 11:29IDE maybe oh maybe I should do the
  285. 11:31opposite of that or maybe I should
  286. 11:33that's a that's a thing I just never
  287. 11:34thought about like you know this guy
  288. 11:36trades you know let's say commodity
  289. 11:38spreads using like the lunar cycle I'm
  290. 11:41like wow that sounds ridiculous but I've
  291. 11:42never thought of trading commodity
  292. 11:44spreads you know okay yeah now that's a
  293. 11:47really good point you bring up there
  294. 11:50so I mean what you're kind of referring
  295. 11:53to there is um what's sort of known as
  296. 11:55the will chosen example is is that seen
  297. 11:59those examples and then also seen them
  298. 12:01actually fail and not work out so well
  299. 12:04as how they did in the books and in the
  300. 12:06examples is that what led you into more
  301. 12:09of a quantitative Direction like what
  302. 12:11what made you move on that
  303. 12:14path yeah there's just no uh there was
  304. 12:16no framework you know um I mean maybe
  305. 12:20maybe there's there would have been a
  306. 12:21framework if I had like written down
  307. 12:23like six patterns right and then you
  308. 12:26know went through all the price charts
  309. 12:27by hand and looked at them but which
  310. 12:29patterns would I have picked you know I
  311. 12:31what if I picked the wrong six patterns
  312. 12:34and uh just I I realized it's like it's
  313. 12:37like in business I came uh to it uh from
  314. 12:39kind of a business approach know you
  315. 12:41want something where there are higher
  316. 12:43barriers to entry because there's less
  317. 12:44people in the Market at that point for
  318. 12:46example the the reason I choose to trade
  319. 12:49uh uh in day but not hft is because I
  320. 12:53can take advantage of hft liquidity but
  321. 12:56not compete with hft players so it's
  322. 12:59kind of the same over there if I had
  323. 13:01more math skills less people um are kind
  324. 13:04of doing that because you know I guess
  325. 13:06it's a little harder but it's not so
  326. 13:08they're just tricking you with the
  327. 13:11symbols sure okay so that's probably
  328. 13:14actually um something we should cover
  329. 13:16before we go too much further um what is
  330. 13:18your background like educational wise
  331. 13:20could you just run us through that
  332. 13:22briefly uh okay so uh in undergrad I uh
  333. 13:26triple majored in uh bio chemistry
  334. 13:29molecular biology business economics and
  335. 13:31Global Studies um then I went on to do a
  336. 13:36masters in
  337. 13:38bioinformatics and now I'm doing a MERS
  338. 13:41in computer science uh with the
  339. 13:44specialization in artificial
  340. 13:45intelligence and machine learning but uh
  341. 13:47I really like to study so for anyone out
  342. 13:50there you know corsera you know edex all
  343. 13:54those websites they're super awesome and
  344. 13:56I actually took my first machine
  345. 13:57learning class uh on corsera because I
  346. 14:00didn't think you know it's kind of a low
  347. 14:02risk you know you can just drop the
  348. 14:04class wherever you want and it's free
  349. 14:05and you know it actually ended up being
  350. 14:08like you know probably 50 times easier
  351. 14:11than I thought it would be sure so that
  352. 14:14was actually going to be my next
  353. 14:15question ask you like where did you even
  354. 14:17get started once you sort of started to
  355. 14:19move in that quantitative Direction um
  356. 14:22was machine learning the first thing you
  357. 14:24kind of stumbled across cuz I mean
  358. 14:25there's probably um easier things you
  359. 14:28could have picked up still on the Quant
  360. 14:30side of things before you got into
  361. 14:32machine learning I think machine
  362. 14:34learning I think computer science in
  363. 14:36general um it's a little bit easier than
  364. 14:38like straight you know um straight math
  365. 14:41like you know uh it's uh there's this if
  366. 14:46there's this example you know there
  367. 14:47there's a this thing called I mean I
  368. 14:48don't know if you know integration
  369. 14:50there's differentiation and integration
  370. 14:52in calculus right and so integration
  371. 14:54let's say is you find the area under
  372. 14:57line you know between the x-axis and
  373. 14:59some some line for example or if you
  374. 15:01have a circle you find the area of the
  375. 15:02circle and um you know to derive that
  376. 15:05equation to find the area of a circle uh
  377. 15:08you know it's uh it's pretty complicated
  378. 15:11I would say but then I stumbled upon
  379. 15:13this thing called Monte Carlo
  380. 15:14integration basically you just kind of
  381. 15:17uh put the circle in a box and you
  382. 15:18already know the area of the box and you
  383. 15:20throw darts at the box and you see the
  384. 15:22proportion of darts that land in the
  385. 15:24circle versus the the Box you know and
  386. 15:28you can figure out the area that way and
  387. 15:29I thought that was so beautiful and easy
  388. 15:32and kind of stupid and wow why would you
  389. 15:34ever do so much math to get to this
  390. 15:36simple solution because you know you
  391. 15:38don't need in trading you know pre
  392. 15:40Precision to the you know 50th uh
  393. 15:42decimal place you just need you know a
  394. 15:44proximate Precision which means you
  395. 15:46don't really need closed form Solutions
  396. 15:49uh you know if they're even available uh
  397. 15:51like the ones provided by you know
  398. 15:53classic math or whatnot yeah okay all
  399. 15:56right now that's really interesting so
  400. 15:58let's drill down now into more of the
  401. 16:01specifics about how you trade and how
  402. 16:03you've been trading in the you know the
  403. 16:05past couple years so run us through your
  404. 16:08actual style of trading and how you
  405. 16:09approach the market okay so uh uh I use
  406. 16:13machine learning uh I try to use kind of
  407. 16:16evolutionary computation stuff like
  408. 16:18genetic programming grammatical
  409. 16:19Evolution because I like to uh read the
  410. 16:22system uh after it's generated to make
  411. 16:25sure it's not doing anything crazy I'm a
  412. 16:27little bit uncomfortable with stuff like
  413. 16:28you networking regression uh techniques
  414. 16:31cuz you kind of you're you're ending up
  415. 16:33with a set of coefficients uh which
  416. 16:35don't really tell you that
  417. 16:37much um I try to be in the market I
  418. 16:40trade intraday uh I'm out of the I'm in
  419. 16:43cash by Friday and I would say 90% of my
  420. 16:46portfolio is in cash by uh close of each
  421. 16:49day um trade only limit orders I try to
  422. 16:52be in the market uh the least amount of
  423. 16:54time uh you know to avoid those uh those
  424. 16:59Six Sigma those Black Swan
  425. 17:02events
  426. 17:03um uh yeah I trade Futures uh and
  427. 17:07equities um try to keep my risk balanced
  428. 17:10and you know risk is the most important
  429. 17:12thing so for example you know trade you
  430. 17:14know short only the the index Futures
  431. 17:16and long only Apple it's not a pairs
  432. 17:19trade right they're not trading at the
  433. 17:20same time but on average the the risk is
  434. 17:24uh reduced okay okay and that's a good
  435. 17:26summary so I'm really ke to go deeper
  436. 17:29into what you just mentioned there so
  437. 17:33let's let's start with um for someone
  438. 17:36who may be totally unfamiliar with
  439. 17:38machine learning how would you even
  440. 17:40describe this to them so let's take it
  441. 17:42right back to the
  442. 17:44basics so um so I guess machine learning
  443. 17:48is symbolic regression right and so
  444. 17:50regression I think you know people are
  445. 17:51more or less familiar with you have you
  446. 17:53know some points and you fit a line to
  447. 17:55them right what line best describes this
  448. 17:57set of points right so you can call that
  449. 18:00like you know baby machine
  450. 18:02learning uh it's it's what I do is the
  451. 18:06same thing except you instead of using
  452. 18:07you know coefficients uh in a line uh
  453. 18:11you use uh you kind of start with the
  454. 18:12zero point origin you have nothing and
  455. 18:14you use uh you know functions and you
  456. 18:16you have a you have a whole kind of a
  457. 18:19program written out so it's a program
  458. 18:20that writes programs
  459. 18:22basically that's the machine the type of
  460. 18:24machine learning that I use specifically
  461. 18:27okay and I I don't know if this is going
  462. 18:29to be relevant or whether or not it
  463. 18:31might be helpful but are you able to
  464. 18:33perhaps give us an example of machine
  465. 18:35learning and other technology that we
  466. 18:38might use in our everyday
  467. 18:40lives uh sure I mean yeah it's a little
  468. 18:44different but uh yeah all the time
  469. 18:46obviously Google uh they use machine
  470. 18:48learning and like for or seror or
  471. 18:51whatnot um so uh uh when you do the
  472. 18:55search uh they use machine learning to
  473. 18:58kind of uh uh depending on let's say
  474. 19:02your geography and uh the language
  475. 19:05you're speaking uh to start searching in
  476. 19:08in the places that are most likely to
  477. 19:11give you the right an like uh the answer
  478. 19:13closest to what you're looking for like
  479. 19:15or pay drink and whatnot
  480. 19:18um uh yeah or obviously self-driving
  481. 19:22cars right they they uh they're they use
  482. 19:25machine learning to uh uh to disting
  483. 19:28distinguish between the you know objects
  484. 19:30and the people and the road and
  485. 19:32whatnot okay okay so let's let's bring
  486. 19:36this back to trading now how do you
  487. 19:38actually use machine learning to
  488. 19:41discover and create effective trading
  489. 19:44strategies um okay so uh you know first
  490. 19:49of all something that uh not a lot of
  491. 19:51people know but or I believe I don't
  492. 19:53know but there are edges that persist
  493. 19:55you know for 30 years you know I don't
  494. 19:58reoptimize any of my trading systems I
  495. 20:00just pick the you know n best out of you
  496. 20:03know a ton and uh trade
  497. 20:05them uh so I I have systems like I won't
  498. 20:10trade anything that hasn't worked you
  499. 20:12know for all the data that I have
  500. 20:14basically unless there's some serious
  501. 20:16structural issues with the data you know
  502. 20:19um like be before some point like some
  503. 20:22people recommend don't trade uh you know
  504. 20:24before or don't use data before 2003 for
  505. 20:27in because forget is it the the before
  506. 20:31it was like quarters and now it's
  507. 20:32decimals or what not but you know I
  508. 20:34don't do that so what's your what's your
  509. 20:37actual process like like let's say you
  510. 20:40wanted to create a new strategy tomorrow
  511. 20:42where would be your starting point and
  512. 20:45then what would be the
  513. 20:47steps before you go to live trading yeah
  514. 20:51so I I look at my uh I look at my
  515. 20:54portfolio right um and I see see you
  516. 20:59know what I'm trading and um let's say
  517. 21:03I'm trading you know already I'm trading
  518. 21:05The e- Minis right so I already have
  519. 21:08exposure uh whether also you check if
  520. 21:11it's long or short I'd say I'm I'm long
  521. 21:12short already the the eunis right so I
  522. 21:16would then say that I'm probably I
  523. 21:18should probably pick a market outside of
  524. 21:20the US Index market in fact outside of
  525. 21:22the equities market so uh I would then
  526. 21:25go to the next most liquid Market cuz
  527. 21:28that's very important to me that would
  528. 21:29be the you know FX Market um so I would
  529. 21:33probably pick the euro in that case um I
  530. 21:35would download the data for the Euro you
  531. 21:38know and put it in machine learning
  532. 21:41software uh and yeah and run the machine
  533. 21:45learning uh that will output a set of
  534. 21:47systems based on my objective function
  535. 21:49you know predefined
  536. 21:51criteria and uh I uh validate those
  537. 21:55systems using you know cross validation
  538. 21:57at a samp
  539. 21:59for example I like uh you know uh I
  540. 22:02check the currency systems on all the
  541. 22:04other currencies they don't have to work
  542. 22:06but it's a lot better for them to work
  543. 22:09and uh there's stuff that works uh
  544. 22:12definitely on the intraday time frame
  545. 22:15with Sharps above 1.5 on every single
  546. 22:17currency with like less than five
  547. 22:20parameters um so that that's definitely
  548. 22:23possible and I think uh once I once you
  549. 22:26really figure out you have to understand
  550. 22:27what first of all what is the maximum
  551. 22:30profit a market could give you and
  552. 22:32second of all uh you know what is what
  553. 22:36are the systems that you can build
  554. 22:37around that um if that makes sense yeah
  555. 22:41so just to zoom in a little bit on what
  556. 22:43you said there you you download the data
  557. 22:46right and then you put it into your um I
  558. 22:49don't know if it's the right word but
  559. 22:50your software that um you know operates
  560. 22:54does the machine learning aspect of
  561. 22:57things
  562. 22:58what's actually going on there like
  563. 23:00what's what's it doing when it's reading
  564. 23:02through this data what's what's the
  565. 23:04purpose of that so basically it does
  566. 23:07something like uh let's randomly
  567. 23:09generate 10,000 systems right no
  568. 23:12assumptions at all just randomly
  569. 23:13generate 10,000 systems maybe it'll say
  570. 23:16you know when the moving average of the
  571. 23:18volume of yesterday is is above uh you
  572. 23:21know I actually I don't really use
  573. 23:22indicators I I mostly focus on uh price
  574. 23:26pattern seasonality type stuff um but
  575. 23:30basically generates 10,000 let's say of
  576. 23:33these systems uh picks the uh the top
  577. 23:35you know let's say thousand they uh they
  578. 23:38mate you know which is their their their
  579. 23:41characteristics get kind of mixed their
  580. 23:43rules get kind of intermixed and they
  581. 23:45create 10,000 more that goes on for a
  582. 23:48while and then you have some sort of Set
  583. 23:50uh optimal set of uh uh of trading
  584. 23:54systems at the end and they get rated
  585. 23:56based on a a objective function that I
  586. 23:59set which is like the goal so maybe
  587. 24:00sharp Ratio or Draw down or number of
  588. 24:03Trades and and I'm a lot more worried
  589. 24:06about robustness than performance
  590. 24:08because uh
  591. 24:10um uh you know like you can take 10 10
  592. 24:14uh kind of decently performing you know
  593. 24:18uh systems and you put them together and
  594. 24:19you have an amazing one as long as
  595. 24:21they're not trying to capture the exact
  596. 24:22same effect right okay so for the the
  597. 24:27program to compute the you know as you
  598. 24:30use an example there 10,000 different uh
  599. 24:32systems or
  600. 24:34strategies how does it come up with
  601. 24:36those 10,000 are they if you put like
  602. 24:39five different rules in there or five
  603. 24:41different parameters and then it's just
  604. 24:43kind of throwing out every variation of
  605. 24:46that or how does how does that work it
  606. 24:49has a set of like indicators let's call
  607. 24:51them um you know could be like the high
  608. 24:54of yesterday or you know a moving
  609. 24:57average it has the price it has a volume
  610. 25:00it has you know you have to understand
  611. 25:02also the like the the content of the
  612. 25:04stuff you're giving it right if you know
  613. 25:06price can definitely predict future
  614. 25:08price but like for example if you can
  615. 25:11predict weather better than everybody
  616. 25:12else you can really trade uh you can
  617. 25:14trade uh the a Futures really well you
  618. 25:17know if so there's like information
  619. 25:20that's outside of price that it's it's
  620. 25:22nice to incorporate for example uh you
  621. 25:24know Twitter sentiment if you're trading
  622. 25:26stocks um you know uh spreads if uh uh
  623. 25:31you know if you're trading Commodities I
  624. 25:33mean in uh in uh like calendar spreads
  625. 25:36the different uh different
  626. 25:38months um yeah uh there's a lot of stuff
  627. 25:42again a lot of seasonality out there and
  628. 25:45uh a lot of uh highs and lows between
  629. 25:48various uh time points in the day are
  630. 25:51important okay okay so let's talk about
  631. 25:54the benefits of using machine learning
  632. 25:57instead of a more L use technique such
  633. 25:59as actually writing a strategy back
  634. 26:01testing it and then optimizing it like
  635. 26:04what's the benefits of going down the
  636. 26:06machine learning
  637. 26:08path okay so well let's start with I'm
  638. 26:11I'm GNA make a comment about the fact
  639. 26:13that a lot of people say like machine
  640. 26:15learning doesn't work or whatnot and I
  641. 26:17just have a very simple you know kind a
  642. 26:20couple sentences that I think uh I think
  643. 26:22I know mathematically
  644. 26:24proves proves them uh wrong um let's say
  645. 26:28and if you do it the right way that is
  646. 26:31so this assumes you're starting with a
  647. 26:33zero point origin so um theoretically
  648. 26:36basically let's say we have a function
  649. 26:38space right and this this or this this
  650. 26:40space includes all viable trading
  651. 26:43strategies in the world right everything
  652. 26:45possible it's infinite in size right now
  653. 26:50obviously some people are trading and
  654. 26:52some people are trading money uh making
  655. 26:54money unless you believe basically it's
  656. 26:56all random and some people just make
  657. 26:58money sometimes and then lose it and
  658. 26:59then it's all you know but obviously uh
  659. 27:02that's not true I I don't you know I'm
  660. 27:04not really sure how seeing some people's
  661. 27:05results you can believe that but anyway
  662. 27:09um so there are viable strategies in
  663. 27:12this space now uh like let's say
  664. 27:15grammatical Evolution from a zero point
  665. 27:17origin you can uh if giving it operators
  666. 27:21like plus minus uh divide and multiply
  667. 27:25there's actually mathematical proof
  668. 27:27saying that you know you can create any
  669. 27:29function using just those for uh you
  670. 27:31know those four operators uh so
  671. 27:35basically if you search long enough you
  672. 27:38will be able to create any and every
  673. 27:40single possible trade uh function or you
  674. 27:42know trading program uh that there is
  675. 27:45and those automatically include some
  676. 27:47that work because you know there are
  677. 27:50people that are doing this so um I think
  678. 27:54that's a that's really important uh
  679. 27:57that's uh and it doesn't apply to all
  680. 27:59types of machine learning uh you know it
  681. 28:02applies to ones where you have enough
  682. 28:04operators and you're working for a Zer
  683. 28:06Point origin and yeah you do it it could
  684. 28:08take you know forever to find a viable
  685. 28:10trading system um because for example I
  686. 28:13don't use just plus minus divide and and
  687. 28:16and multiply because that would you know
  688. 28:17takes too long and I do have a 40 core
  689. 28:19you know uh zon server uh to process all
  690. 28:23this stuff okay so so what are the key
  691. 28:26differences then between you know
  692. 28:29finding a strategy using machine
  693. 28:31learning and then actually defining the
  694. 28:34the the opposite to that would be
  695. 28:37defining a strategy so writing some
  696. 28:39parameters and then back testing that on
  697. 28:41data and then optimizing it from there
  698. 28:43so how does machine learning differ from
  699. 28:46from that that approach so so there's uh
  700. 28:51there's something called like the D data
  701. 28:52driven model of uh development and the
  702. 28:54software or sorry the model driven uh uh
  703. 28:58development right and uh when you come
  704. 29:01in for example let's say you're doing
  705. 29:02Trend falling and you want to use you
  706. 29:04know maybe just want to use one moving
  707. 29:06average and that's your model you have
  708. 29:07the moving average model you say when
  709. 29:08it's above this moving average you go
  710. 29:10long when it's below you go short maybe
  711. 29:12you want to use a crossover you say when
  712. 29:13the fast one's above the slow one then
  713. 29:15you go long and vice versa um you make a
  714. 29:18ton of assumptions uh like maybe that
  715. 29:22market is mean reverting maybe that
  716. 29:24market on that time frame is mean
  717. 29:26reverting maybe you know maybe the
  718. 29:29indicators that you're using uh you know
  719. 29:33outside of the uh of the moving average
  720. 29:36uh allow for you to only find mean
  721. 29:39reverting systems uh in the market I
  722. 29:41mean there's there's just a ton of uh
  723. 29:43stuff you don't know and a ton of bias
  724. 29:44you introduce by uh by coming in with a
  725. 29:47model uh that you have uh uh you know
  726. 29:51that that that you know of versus for
  727. 29:53example maybe you know I mean I've seen
  728. 29:56some of my systems do stuff that I human
  729. 29:58could just never you know never never
  730. 30:01figure out because you have to be
  731. 30:02looking at different times in different
  732. 30:04time series at the same time so like uh
  733. 30:08for example uh let's say the Yen was up
  734. 30:11three days in a row and you have uh a
  735. 30:14low today and the e- mini that I uh you
  736. 30:18know that is the lowest low in two
  737. 30:20months uh let's say buy tick above that
  738. 30:23low and sell at the end of the day or
  739. 30:25something like that um it would be very
  740. 30:27hard for you know for a human to kind of
  741. 30:32you have to you have to look at the yen
  742. 30:34in the past three days and at the same
  743. 30:36time uh you have to look at uh the uh
  744. 30:40the e- mini today but you're looking at
  745. 30:4310minute bars and no computer can even
  746. 30:45show you three days you know of
  747. 30:4610-minute bars let's say uh uh you know
  748. 30:50in terms because the price years is too
  749. 30:51long so you're not even going to be able
  750. 30:52to you know visualize the pattern unless
  751. 30:54you got like three or four
  752. 30:56monitors and even then
  753. 30:59okay so this is probably a good point to
  754. 31:02ask um this question here so once you
  755. 31:05discover a strategy that has an edge
  756. 31:07kind of like what you were just
  757. 31:08explaining there and it's you know to
  758. 31:10you it's worth trading a strategy like
  759. 31:13what you've just described it might not
  760. 31:15necessarily make sense to you logically
  761. 31:18like in your head you might not
  762. 31:20understand the reasons why that would
  763. 31:22work but it does so are you just purely
  764. 31:26looking for statistical edges only and
  765. 31:28you don't really matter about why it
  766. 31:31works well I mean yeah right I uh like I
  767. 31:34obviously it it gives me more confidence
  768. 31:37when I can make sense of it or what not
  769. 31:39you know I'm probably not going to
  770. 31:40somewh one of my friends just sent me a
  771. 31:42a funny that he works at a big bank and
  772. 31:44they were just like oh you see this
  773. 31:46dragon pattern and they drew a whole
  774. 31:48dragon on the chart you know I'm like
  775. 31:49okay if it breaks the dragon jaw then
  776. 31:51you know we're we're going down and uh
  777. 31:54so that that kind of stuff sounds a
  778. 31:56little bit ridiculous to me probably uh
  779. 31:58you know not going to not going to trade
  780. 32:00that kind of stuff but look man there's
  781. 32:02so much stuff we don't know like we're
  782. 32:05pretty dumb you know as as a as a whole
  783. 32:07general population and like for example
  784. 32:10the first caveman they didn't know where
  785. 32:12fire came from right but like that would
  786. 32:14be really dumb not to use fire because
  787. 32:17you know you could do a lot with that uh
  788. 32:19just because you don't know why
  789. 32:20something happens doesn't mean it's not
  790. 32:22viable A and B um there's you know a
  791. 32:26famous example that uh when you know
  792. 32:29people try to tell me they're like well
  793. 32:30what about this you know there there was
  794. 32:32this correlation or some something like
  795. 32:34the Bangladeshi butter prices it's a
  796. 32:36famous One um could explain with like a
  797. 32:39couple or like one or two other factors
  798. 32:40like all the all the variance in the S&P
  799. 32:44between like certain years but it was a
  800. 32:46pretty long period of time and they're
  801. 32:48like well that's obviously you know
  802. 32:50spurious and and it's BS and why would
  803. 32:52you ever trade that and my thing is hey
  804. 32:55man if you traded that for 10 years that
  805. 32:5720% and you just turned it off at a 20%
  806. 33:00draw down or whatever your your way to
  807. 33:01turn it off was who cares you could have
  808. 33:04made so much money and we're in this
  809. 33:06business to make money not to be correct
  810. 33:08and not to explain how or why the market
  811. 33:11works if you want to do that go be an
  812. 33:12economist you know I mean it's uh it's
  813. 33:16just that's it we're in this business to
  814. 33:18make money yeah that's a that's a really
  815. 33:20great point a lot Cas sum that up so
  816. 33:23while you're using machine learning to
  817. 33:25find strategies once these algorithms
  818. 33:27they're actually live trading do they
  819. 33:30continue to evolve with machine learning
  820. 33:33also no so that's the thing my output uh
  821. 33:37which is another another uh you know
  822. 33:39specific uh you know that's a specific I
  823. 33:43would say to the way I do machine
  824. 33:45learning uh my systems are actually like
  825. 33:48relatively simple like that system that
  826. 33:49I told you is actually not that
  827. 33:51complicated it has maybe one or two free
  828. 33:53variables you know and when you say free
  829. 33:56variables what's what's that referred to
  830. 33:58like things you're optimizing you know I
  831. 34:00mean I wouldn't call like uh you know
  832. 34:03like a day high is just a day high
  833. 34:05there's no number you can optimize there
  834. 34:07you know what I'm saying like it's just
  835. 34:08the the high of the day you can't you
  836. 34:10know but in a moving average it could be
  837. 34:12you know 21 bars 22 bars 23 bars 19 bars
  838. 34:15what's the difference between all that
  839. 34:16stuff you know so I try to stay away
  840. 34:19from that kind of stuff and more kind of
  841. 34:21discret you know you have the you know
  842. 34:23the day high is always the day high
  843. 34:25there's no way to kind of you know optim
  844. 34:28around it do that okay yeah yeah so what
  845. 34:31level of interaction do you have with
  846. 34:33your algorithms once they're actually
  847. 34:35operating and live trading like is there
  848. 34:37any discretion when you decide to either
  849. 34:41run them and then don't run them like
  850. 34:43could you shine some light on this for
  851. 34:44us so um I try to I try to start running
  852. 34:49them maybe when they're in a draw down
  853. 34:51uh that doesn't always work obviously I
  854. 34:53have the luxury of doing that when
  855. 34:55you're like already running many
  856. 34:56algorithms you know
  857. 34:58um I uh I uh I've been doing this thing
  858. 35:02recently that's been uh amazing actually
  859. 35:06uh and it's it's kind of uh so I make I
  860. 35:09make slight you know economic bets on on
  861. 35:13uh you know from from my knowledge of
  862. 35:15fundamentals or what not or my guess on
  863. 35:18fundamentals but for for example um from
  864. 35:21from Trading by hand before I I saw the
  865. 35:23Divergence you know between like the
  866. 35:26advanced uh line line and the or sorry
  867. 35:29the um yeah and the and the S&P and I
  868. 35:34was like and also I know that you know
  869. 35:36we've been easing and easing and easing
  870. 35:38and you can't go any lower and it's kind
  871. 35:40of like you know 30% a year in the
  872. 35:42market that's kind of unreal that's not
  873. 35:44like that doesn't happen especially for
  874. 35:47you know for this long so um I kind of
  875. 35:51turned off uh a little bit not turned
  876. 35:53off but uh lowered the uh the allocation
  877. 35:57uh lower L the risk uh to my uh to my uh
  878. 36:02long only systems and left my short only
  879. 36:06uh systems you know the way that they
  880. 36:08are um on the on the indices only and
  881. 36:11that's you know been really awesome but
  882. 36:13then if you look back uh I would just be
  883. 36:16let's let's say so my results were like
  884. 36:18a you know a four sharp over the past
  885. 36:21you know six months and if I hadn't done
  886. 36:23that it would be like you know uh uh 3.2
  887. 36:27so it's it's not a big difference but uh
  888. 36:31you know I just it's boring when you
  889. 36:32when you have you know when you have
  890. 36:34your systems and you have your framework
  891. 36:36it's you know you just kind of run it
  892. 36:37and you're like what are you going to do
  893. 36:39sit all day you just you try to Tinker I
  894. 36:41mean you shouldn't Tinker right and I
  895. 36:43don't Tinker in a way where uh where it
  896. 36:46can affect me because for example if I
  897. 36:48make a bet and I'm wrong right I have a
  898. 36:51system that's worked for 30 years right
  899. 36:53so it's going to be still working more
  900. 36:55or less in the same way it's work before
  901. 36:58if I'm right I get a little bit Alpha in
  902. 37:00the near term you know basically it's
  903. 37:03like a lot easier to predict the equity
  904. 37:06curves you know out of 10,000 systems
  905. 37:08that have been working amazingly over
  906. 37:10the past 30 years than it is from 10,000
  907. 37:13stocks
  908. 37:14so there you go so what type of Trader
  909. 37:18is machine learning probably best suited
  910. 37:21to like for someone who currently isn't
  911. 37:23exploring this angle of
  912. 37:26trading is there anyone who should maybe
  913. 37:28consider this um someone who you think
  914. 37:31would be a good fit like a certain type
  915. 37:33of Trader it would be relevant
  916. 37:35to uh humans you know I think uh I think
  917. 37:40like the people that I know that trade
  918. 37:42by hand well they're like super
  919. 37:43self-aware and they spend a lot of time
  920. 37:45on like themselves to make sure that
  921. 37:48like you know like they are the machine
  922. 37:50and they're you know well oil and
  923. 37:51working well and that's that's not the
  924. 37:54way that like humans are it's uh that's
  925. 37:56why trading is so hard
  926. 37:58so I think it's it's suitable for
  927. 37:59everybody and the Beautiful Thing is um
  928. 38:02I didn't know to be honest look when I
  929. 38:04started doing this this is the way I
  930. 38:06looked at it I was like I'm going to
  931. 38:07learn all this machine Lear learning
  932. 38:09stuff right and if I completely fail at
  933. 38:11trading which is possible because you
  934. 38:13know I mean it's hard uh I can go and
  935. 38:16work at like Google or something so I
  936. 38:18think it's a really good uh you know
  937. 38:20there's a lot of good you could do in
  938. 38:21general in the world with uh with
  939. 38:23machine learning Technologies and
  940. 38:25artificial intelligence and you know
  941. 38:27there there's never going to be a lack
  942. 38:28of jobs and you're always doing cool
  943. 38:30projects so if you ever you know give up
  944. 38:32on trading you could always do that
  945. 38:34although you know again if just just
  946. 38:37work a little bit longer it's it's just
  947. 38:40right there you know uh it's definitely
  948. 38:42possible um you know um yeah so you you
  949. 38:47mentioned just their um artificial
  950. 38:49intelligence and I don't want to go into
  951. 38:50this too much more but
  952. 38:53um is artificial intelligence uh
  953. 38:56essentially the same thing as machine
  954. 38:57learning or is there um are there
  955. 39:00differences between the two so I mean
  956. 39:03they're different like in Academia
  957. 39:05they're different you can you know you
  958. 39:07can call machine learning kind of a
  959. 39:09subset of you know General artificial
  960. 39:11intelligence um um machine learning is
  961. 39:15is a bit more about you know having a
  962. 39:17lot of data and you know kind of
  963. 39:19learning from that like massive uh
  964. 39:21amount of data versus artificial
  965. 39:23intelligence has a little bit more you
  966. 39:26know kind of IC stuff for example
  967. 39:29or um non non uh you know not solutions
  968. 39:33that aren't based on Randomness in
  969. 39:35anyway for example so it's a bit more
  970. 39:37General Okay Okay cool so share with us
  971. 39:42your thoughts on
  972. 39:43diversification um because I think that
  973. 39:47from from when we've spoken in the past
  974. 39:48you've spoken about how you can
  975. 39:50diversify in various ways and how you'd
  976. 39:52like to do this and the various ways
  977. 39:54being that you can either do it for
  978. 39:56greater returns um and then on the other
  979. 39:58hand you can also do it for protecting
  980. 40:00risk so could you just speak on this a
  981. 40:02little bit and and your thoughts on
  982. 40:05diversification okay yeah uh first of
  983. 40:08all yeah obviously you should always
  984. 40:09diversify to protect risk that should be
  985. 40:11your number one goal all the time um but
  986. 40:15you know I I I'm Diversified for example
  987. 40:17across asset classes across the side of
  988. 40:20the market right long or short or I'm
  989. 40:22starting to do some pairs trading stuff
  990. 40:24even um I diversify across time frames
  991. 40:29and uh uh basically every time I have
  992. 40:32extra Capital whatever that is let's say
  993. 40:3350,000 bucks per contract I mean it
  994. 40:36depends on your contract size um I'd
  995. 40:38like to pick up a new market i' and I
  996. 40:42would much much much rather add a new
  997. 40:44market than allocate more to an existing
  998. 40:46Market um I don't allocate more
  999. 40:50uh um because you
  1000. 40:53know again we still you don't know
  1001. 40:56what's going to what's going to happen
  1002. 40:57happen right uh in the future regardless
  1003. 41:00of how smart you are and and you know
  1004. 41:02how good your systems are U you know you
  1005. 41:04can still have like we had the flash
  1006. 41:06crash or like last year we had that was
  1007. 41:09already last year right the the Frank
  1008. 41:11just poof 30% inad day like that's
  1009. 41:15ridiculous you know that that's a that's
  1010. 41:17like a world currency they're not
  1011. 41:19supposed to have 30% moves I mean when I
  1012. 41:22uh when I was reading uh some I read a
  1013. 41:24lot of the trend falling books and they
  1014. 41:26recommend for example Le you know
  1015. 41:28volatility based pos position sizing and
  1016. 41:30they're just like yeah well you know if
  1017. 41:32if the bonds move more than 2% in a day
  1018. 41:35like you're not worried about your
  1019. 41:36portfolio you're worried about like the
  1020. 41:38world ending and you know is that true I
  1021. 41:41mean you go the Frank moved 30% in like
  1022. 41:43a second I mean it was you know like
  1023. 41:45five minutes but still that's a lot you
  1024. 41:47know that's a world economy um so you
  1025. 41:51know diversification uh across uh as
  1026. 41:55many as many uh aspects of of of the
  1027. 41:58market of the of the kind of trading
  1028. 42:01space as possible you know I use uh some
  1029. 42:04you know a little bit more advanced math
  1030. 42:06techniques like PCA uh on My Equity
  1031. 42:09curves you have to uh so a lot of people
  1032. 42:12try to diversify on assets but you know
  1033. 42:15a a trading system is essentially
  1034. 42:17something it's a filter that transforms
  1035. 42:19your price Series right into the return
  1036. 42:22series for your system so you're not
  1037. 42:24actually now invest your you're trading
  1038. 42:28the the original time series the
  1039. 42:30original asset but really you're
  1040. 42:33investing in the equity curve of the
  1041. 42:35your system which is not the same thing
  1042. 42:38as the asset anymore you know it's
  1043. 42:40transformed and you have to understand
  1044. 42:42that okay and while we're on the subject
  1045. 42:44of risk just to add to that a little bit
  1046. 42:47uh when we were speaking the other day
  1047. 42:49uh you mentioned Global risk metric so
  1048. 42:52would you be able to maybe shed a little
  1049. 42:54bit of light on that like what what are
  1050. 42:56you referring to when you talk about
  1051. 42:58global risk
  1052. 42:59metrics uh yeah like uh thing I was
  1053. 43:02talking about the the 80 line Divergence
  1054. 43:05uh vixs uh making new highs uh the
  1055. 43:09spread between the front and the uh the
  1056. 43:12two uh front month uh vix uh uh
  1057. 43:17contracts um that kind of stuff you know
  1058. 43:20the spreads in between different uh in
  1059. 43:22different uh expirations of different uh
  1060. 43:26uh Futures kind contracts the volatility
  1061. 43:28surfaces of various uh um you know
  1062. 43:33options and stuff there's there's
  1063. 43:35there's a lot of you predictive you know
  1064. 43:37there's a lot of predictive uh stuff out
  1065. 43:39there um in terms of uh risk you know
  1066. 43:42when when when people are I mean for
  1067. 43:44example volume drying up you know if you
  1068. 43:46have that's it's makes you know you can
  1069. 43:49see that that's not good you can see
  1070. 43:51that something you know bad is going to
  1071. 43:53happen Okay so say volatility is
  1072. 43:56increased on the vix how does
  1073. 43:59that uh tie back into your individual uh
  1074. 44:03strategies like let's say you're you're
  1075. 44:05training in a equities Market well if if
  1076. 44:08you're if you're if you're really
  1077. 44:10creative and you can make it work you
  1078. 44:11can create a position siing function
  1079. 44:13that for example you know scales the
  1080. 44:16inverse of the volatility or the inverse
  1081. 44:18of the vix so like the higher the vix
  1082. 44:20the lower you you
  1083. 44:21invest um for example or you could be
  1084. 44:24simple like before when I was just doing
  1085. 44:26let's say you know kind of long-term
  1086. 44:28index trading you can
  1087. 44:30say um I don't know let's say the vix
  1088. 44:33closes above 35 two days in a row or
  1089. 44:36something like that then you you exit um
  1090. 44:39but you know when you're doing that kind
  1091. 44:40of stuff you're a little bit more prone
  1092. 44:41to overfitting but um you just have to
  1093. 44:45be you just have to be aware um and and
  1094. 44:49because there's a lot of stuff for
  1095. 44:50example the vix also it defines market
  1096. 44:52regimes right so there's clearly you
  1097. 44:55have to examine your performance the
  1098. 44:57performance of your systems or your own
  1099. 44:58Performance Based on you know the market
  1100. 45:01characteristics uh you know I believe
  1101. 45:03there's many many many different Market
  1102. 45:04regimes you know could be like you know
  1103. 45:07vix is above 30 uh and uh it was an
  1104. 45:11update on the S&P or vix is between 15
  1105. 45:14and 20 and you know that it was a down
  1106. 45:17day in the Yen or something like that I
  1107. 45:20mean basically there's infinite
  1108. 45:21variations of those but um I like to
  1109. 45:24have my systems like there's not that
  1110. 45:26much in efficiency uh or there's a lot
  1111. 45:29of inefficiency in the market but it's
  1112. 45:30not as consistent as you would think uh
  1113. 45:33like you can't get like you know 10
  1114. 45:35trades a day on one inefficiency unless
  1115. 45:38you're I mean you can but it's more
  1116. 45:40you're getting in the realm of uh kind
  1117. 45:42of hft stuff but I like to trade for one
  1118. 45:46system let's say once or uh maybe once
  1119. 45:50per a week or once per two weeks and you
  1120. 45:53get that over 30 years you combine that
  1121. 45:55with 20 other systems that have
  1122. 45:57different edges um and that's uh that's
  1123. 46:00a lot more robust because if one of the
  1124. 46:02edges kind of goes away you can always
  1125. 46:04turn that system on absolutely okay so
  1126. 46:07stepping away from your own trading a
  1127. 46:09little bit and just kind of talking
  1128. 46:11about the broader Market as machines
  1129. 46:14become more and more prominent in
  1130. 46:15trading the way you said is there any
  1131. 46:17downside to this or do you maybe see
  1132. 46:19this as a positive
  1133. 46:21thing I think it's a positive thing
  1134. 46:23because we're incorporating more
  1135. 46:25information more predictions uh
  1136. 46:26predictors I mean if you're doing it
  1137. 46:28right again I said it's very important
  1138. 46:30to understand you know you have to you
  1139. 46:33have to add stuff that really predicts I
  1140. 46:35mean not predicts but helps helps uh you
  1141. 46:38know price by itself it can you can make
  1142. 46:40a system using just price but uh you
  1143. 46:43know again if you had some weather or
  1144. 46:45some sentiment or you know some some
  1145. 46:48other or some intermarket stuff it
  1146. 46:49always helps you're making markets more
  1147. 46:51efficient um and uh you know I think
  1148. 46:55also humans will always have their place
  1149. 46:57kind of regardless of uh the amount of
  1150. 47:00uh computer trading because uh computers
  1151. 47:03are still dumb uh and and uh yeah they
  1152. 47:08can find the good patterns but you know
  1153. 47:10humans rely too much on computers I
  1154. 47:12think uh in that sense uh you saw it for
  1155. 47:15example and stuff happens like I think
  1156. 47:16was when was it in the past couple years
  1157. 47:19night Capital group they just you know
  1158. 47:20they they they opened the market opened
  1159. 47:23and they just sent a bunch of like not
  1160. 47:25correct orders into the market and they
  1161. 47:28you know what is it like an 80% drop in
  1162. 47:30their market cap in one day and it's
  1163. 47:32like a you know wow it's a good company
  1164. 47:35but uh yeah relied too much on the
  1165. 47:38computers didn't do their their checks
  1166. 47:40didn't do their risk management their
  1167. 47:42verification on their testing and and
  1168. 47:44lost a lot of money yeah that that's
  1169. 47:47pretty Savage so for someone who is so
  1170. 47:50deeply involved in the programmatic side
  1171. 47:51of trading how important is this going
  1172. 47:54to become over the next 10 to 20 years
  1173. 47:57for all Traders like do you think that
  1174. 47:59those without any programming knowledge
  1175. 48:01will be disadvantaged or anyway or does
  1176. 48:03it not
  1177. 48:05matter um definitely not look um I mean
  1178. 48:09if you're trying to if you're doing
  1179. 48:11scalping yeah 100% you will definitely
  1180. 48:14be disadvantaged uh because there you're
  1181. 48:15relying on speed and whatnot but there
  1182. 48:17will always be time frames generally a
  1183. 48:19little bit higher than the ones that are
  1184. 48:22uh you know worked on by the robots
  1185. 48:24where humans will excel um
  1186. 48:28there's uh you know because we have
  1187. 48:31pretty complex uh neural networks in our
  1188. 48:34heads and complex in the sense that they
  1189. 48:37could fit a lot of nonlinear patterns uh
  1190. 48:39there's a lot of stuff that uh we
  1191. 48:41process and goes on in in the background
  1192. 48:43of our minds that you know uh we can't
  1193. 48:48uh formulate and we can't put on
  1194. 48:50paper Okay cool so I understand that um
  1195. 48:55you keep in close contact with a number
  1196. 48:57of Traders um just moving on to a
  1197. 48:59slightly different topic here but you
  1198. 49:01keep in close contact with a number of
  1199. 49:02Traders could you share with us how this
  1200. 49:05has been beneficial to your trading by
  1201. 49:07just having other traders in your circle
  1202. 49:09that you can I don't know like maybe
  1203. 49:11bounce ideas off in that type of
  1204. 49:13thing yeah it's awesome um I mean I've
  1205. 49:17been super fortunate I actually and
  1206. 49:19quite randomly met a group of people
  1207. 49:22about like you know a year and a half
  1208. 49:24ago and my performance is like tripled
  1209. 49:27since then and purely because uh some of
  1210. 49:29these guys do hft and um they were like
  1211. 49:33this is the performance that we can get
  1212. 49:35and you can kind of extrapolate you know
  1213. 49:38if like if this is the kind of
  1214. 49:40performance you can get intraday and
  1215. 49:41this is the kind of performance you
  1216. 49:43could get hft right then basically in
  1217. 49:46between is what you can get uh you know
  1218. 49:49uh trading intraday but not
  1219. 49:51hft and uh I mean that's just an example
  1220. 49:54and and so I started Building Systems
  1221. 49:56kind of uh with the hope of finding
  1222. 49:58these these kind of uh uh this kind of
  1223. 50:01results and it's it's been very fruitful
  1224. 50:03and in general again it's like reading
  1225. 50:05the books uh actually this group of
  1226. 50:07people most of them trade by hand uh so
  1227. 50:11we don't you know we don't really
  1228. 50:13discuss so much I mean they know about
  1229. 50:14systems and they know how it works but a
  1230. 50:16lot of the time they'll say oh we we do
  1231. 50:18this and this and I'm like huh using
  1232. 50:20this indicator like I can't I can't use
  1233. 50:22your method but this indicator that you
  1234. 50:24use to help in your trading that's the
  1235. 50:26source of information that's a source of
  1236. 50:28extra information not Contra contained
  1237. 50:30in the price or the volume uh you know
  1238. 50:32of the market I should try to
  1239. 50:34incorporate that and I I throw it in the
  1240. 50:35machine learning algo and boom wow there
  1241. 50:38you
  1242. 50:38go and obviously I share with them hey
  1243. 50:41guys these are sources of info that I
  1244. 50:43use uh you know
  1245. 50:46um that that could add a little bit more
  1246. 50:49uh predictability to the market and in
  1247. 50:52general you know just just you know
  1248. 50:54having having people to talk to because
  1249. 50:56this is a pretty solitary business you
  1250. 50:58know it's uh you know sitting in front
  1251. 50:59of your computer programming the pric is
  1252. 51:01going up and down emotions all that
  1253. 51:03you're kind of just inside yourself and
  1254. 51:06you know I'm actually super okay with
  1255. 51:08doing that I think that uh it would be
  1256. 51:10very hard for to be a Trader like for
  1257. 51:12anybody uh unless you have a certain
  1258. 51:14level of uh comfort with uh with
  1259. 51:17yourself and with being alone but um
  1260. 51:20it's it's very useful a lot more useful
  1261. 51:23than I thought it would be to uh to uh
  1262. 51:25you know talk to other people
  1263. 51:27yeah that's really well said I like I
  1264. 51:29like how you summed that up um so we we
  1265. 51:32briefly touched on this a little bit
  1266. 51:34earlier we we kind of talked about your
  1267. 51:36learning and that type of thing but I
  1268. 51:38really want to get your your attitude
  1269. 51:41and your views on constant learning cuz
  1270. 51:43this is something that's that's very
  1271. 51:45important to you so could you share with
  1272. 51:46us like how you view that type of um
  1273. 51:51that type of need to continually
  1274. 51:53progress yeah I mean I love school um
  1275. 51:57both because it's super interesting you
  1276. 51:59know look for example you know you can
  1277. 52:01go on a date and if you you know you
  1278. 52:03could go on another date and if you're
  1279. 52:04in the end if you're good at it uh you
  1280. 52:07know you pretty much I mean it's sad but
  1281. 52:09you develop this template and you're
  1282. 52:10saying the same over and over again
  1283. 52:12and the then you're bored okay you go on
  1284. 52:14a date you you know you get to the end
  1285. 52:17of the night you know you do your thing
  1286. 52:18and it all repeats but there is so much
  1287. 52:22new and interesting stuff in the world I
  1288. 52:24mean like H they they just made an
  1289. 52:26artificial heart out of foam you know uh
  1290. 52:29they you know figured out how to you
  1291. 52:31know control mice by implanting a uh
  1292. 52:34optical fiber into their brains uh you
  1293. 52:37know they're doing they uh they just
  1294. 52:39found the higs bow on in physics and
  1295. 52:41they're doing stuff in space I mean
  1296. 52:43literally there's Infinity super cool
  1297. 52:46new stuff out there and um not only that
  1298. 52:50it really like I run several other
  1299. 52:52businesses outside of trading um and uh
  1300. 52:56like to read a book about how to do
  1301. 52:59something go out and do it in the world
  1302. 53:02and get reward for that I mean that is
  1303. 53:04just beautiful like you're turning
  1304. 53:06knowledge into you know into you know
  1305. 53:09money into you know into your enjoyment
  1306. 53:12into Freedom basically um the more
  1307. 53:15knowledge you have you know the more
  1308. 53:16freedom you have uh it's it's a really
  1309. 53:19beautiful thing in my mind yeah man
  1310. 53:21absolutely 100% so I get the feeling
  1311. 53:24that a lot of what you actually learn
  1312. 53:26and what you read about is not
  1313. 53:27necessarily directly trading related I
  1314. 53:30mean is that often the case and if it is
  1315. 53:33could you perhaps give us an example of
  1316. 53:35something you've been studying or
  1317. 53:36learning about
  1318. 53:37recently absolutely because there's uh
  1319. 53:40there's patterns that exist in the world
  1320. 53:42that are just they transcend any single
  1321. 53:45discipline you know I mean maybe like
  1322. 53:48think about okay so think about like the
  1323. 53:50tree structure right the structure of a
  1324. 53:51tree right we have the actual tree right
  1325. 53:54there's different versions of the tree
  1326. 53:55as in you know there's a little flower
  1327. 53:57there's a big tree there's a whole
  1328. 53:58different you know there's a whole
  1329. 54:00different whole nice array of of that
  1330. 54:02structure but wait then we have the
  1331. 54:04veins in our body and in fact the veins
  1332. 54:06in anybody then we have the neural
  1333. 54:08system it's also a tree likee structure
  1334. 54:10uh you know there's these structures
  1335. 54:12that exist in the cracks uh in the earth
  1336. 54:15like in the um seismology and geology
  1337. 54:19you know there's the structure also
  1338. 54:21exists in an organizational sense you
  1339. 54:23know and in a computer science sense as
  1340. 54:25well there's a tree structure
  1341. 54:27um that are efficient for doing C uh
  1342. 54:29certain operations there's like you know
  1343. 54:32the you know kind of centralized
  1344. 54:33structure like our universe our solar
  1345. 54:35system you know uh a communist country
  1346. 54:39um you know a variety of things we have
  1347. 54:41the uh you know the more distributed uh
  1348. 54:44structure like the the way the the ants
  1349. 54:48uh you know live and find food and and
  1350. 54:52operate uh that's a distributed
  1351. 54:54commuting structure which is similar to
  1352. 54:56that I mean and you realize that like
  1353. 54:58there's there's like kind of you know
  1354. 55:00people always ask is Trend fing always
  1355. 55:01going to work yeah of course Trend like
  1356. 55:03Trends are always going to exist are you
  1357. 55:05saying is this system always going to
  1358. 55:06work probably not but is are Trends
  1359. 55:09always going to happen absolutely and
  1360. 55:11and you realize kind of uh you know
  1361. 55:13there are underlying patterns to to it
  1362. 55:16all uh you know even human development
  1363. 55:19has a certain certain pattern you know
  1364. 55:21um for for whatever reason and I mean
  1365. 55:25it's uh
  1366. 55:26it's just interesting to to see the
  1367. 55:28stuff and to to realize and to know that
  1368. 55:30it exists and and and if you can
  1369. 55:32capitalize on it I mean it's it's uh
  1370. 55:36it's awesome it's even
  1371. 55:38better yeah so let's um I don't want to
  1372. 55:41put you on the spot here too much but
  1373. 55:43what are your goals or your plans for
  1374. 55:45the next like 5 to 10 years moving
  1375. 55:48forward what are what type of things are
  1376. 55:50you going to be focusing more on like
  1377. 55:52you're going to be introducing new alos
  1378. 55:54and strategies to your portfolio uh
  1379. 55:56raising capital for your fund like what
  1380. 55:58what's your what's your outlook for the
  1381. 56:00next five 10 years what are you what are
  1382. 56:01you focusing on well my goal uh my goal
  1383. 56:05is to make a billion dollars actually
  1384. 56:08and uh that's so I could sort a fund for
  1385. 56:10kids from you know all over the world so
  1386. 56:12they could go to school for free in the
  1387. 56:13states in the UK you know to to get
  1388. 56:15these kids from let's say Emerging
  1389. 56:17Markets into uh into good Western
  1390. 56:20schools because uh the only way you're
  1391. 56:21going to be able to solve kind of you
  1392. 56:23know whatever problem there there is you
  1393. 56:25know from poty to uh to you know uh some
  1394. 56:30sort of like religious wars going on and
  1395. 56:32you know like this this Isis stuff for
  1396. 56:33example going on is to educate kids at
  1397. 56:36you know at a young age uh appropriately
  1398. 56:39and not to not to not in your Doctrine
  1399. 56:42but just I mean with like math and
  1400. 56:44science like you know so because like
  1401. 56:46someone that's a mathematician or a
  1402. 56:48scientist they're going to be exposed to
  1403. 56:50some of these patterns automatically
  1404. 56:51that I'm talking about and you kind of
  1405. 56:53like it's very it's much harder to
  1406. 56:55believe in some of the BS that people
  1407. 56:57tell you when you're like look this is
  1408. 56:59something provable repeatable and I know
  1409. 57:01the system and the system works and this
  1410. 57:03is just you're telling me that you know
  1411. 57:05you know if I you know if I kill this
  1412. 57:07person then you know then the community
  1413. 57:09will love me because then you know I'm
  1414. 57:11going to go to heaven and you know and
  1415. 57:14you know be you know a God or something
  1416. 57:16like that that's that's crazy you know
  1417. 57:18and it's better to just you know when
  1418. 57:20everyone is happy and nice and everybody
  1419. 57:22is prosperous that's better for
  1420. 57:23everybody you know yeah for sure there
  1421. 57:26are some those are some big goals man so
  1422. 57:28so Props to you for for thinking big I
  1423. 57:30like
  1424. 57:31it yeah you got to set you got to set
  1425. 57:33the big goals you know I every you know
  1426. 57:36there was every time in my uh in
  1427. 57:40actually every year up until uh and even
  1428. 57:44even
  1429. 57:45today um I always set goals that I think
  1430. 57:48are you know just Out Of Reach just
  1431. 57:50impossible you know when I first came to
  1432. 57:52school I was like I'm going to do a
  1433. 57:53double major in you know in chemistry
  1434. 57:55and business and people were like you're
  1435. 57:57insane a double major with a hard
  1436. 57:59science and I was like you know I ended
  1437. 58:00up doing obviously much more than that
  1438. 58:03um like you know right now I'm running
  1439. 58:05you know six businesses getting a
  1440. 58:07masters and I'm actually doing an IBO
  1441. 58:09right now so it's just you know it's
  1442. 58:12possible everything is possible you
  1443. 58:14could always do more you could always
  1444. 58:16push yourself harder and like you know
  1445. 58:19yeah it's stressful and it's hard but
  1446. 58:22like dude be thankful you're not like an
  1447. 58:24African kid that was born addicted to
  1448. 58:25heroin and has to like shoot their
  1449. 58:27brother in a war you know like and it
  1450. 58:30just it's just have fun with it yeah and
  1451. 58:33I mean that's that's the key thing I
  1452. 58:34mean like you're you're obviously really
  1453. 58:36busy you're doing you got a lot going on
  1454. 58:38but you are clearly passionate about it
  1455. 58:40you enjoy what you're doing so it's
  1456. 58:43almost not like it's like you're not
  1457. 58:45even working because you're enjoying it
  1458. 58:47so I mean absolutely yeah so but let's
  1459. 58:52bring this to a close I just want to ask
  1460. 58:54you one last thing and that's um for
  1461. 58:56anyone listening if they're interested
  1462. 58:58in getting into you know this machine
  1463. 59:01learning side of things and you know
  1464. 59:03going deeper into algo trading what are
  1465. 59:06some great resources that they could
  1466. 59:08begin
  1467. 59:09with um I would say you know you need a
  1468. 59:11you need a base of just general um
  1469. 59:14General um like knowledge General Matha
  1470. 59:17uh math and and stats knowledge and
  1471. 59:20actually out of all the stuff I've read
  1472. 59:22other than the market Wizards book like
  1473. 59:24General like a class on statistics it's
  1474. 59:27much more useful than like stats for
  1475. 59:29trading you know or whatever you know
  1476. 59:30some books like that um so I would
  1477. 59:33really recommend these like moo things
  1478. 59:36like corsera or edex they have such a
  1479. 59:38wealth of super high quality information
  1480. 59:41from awesome professors that do this for
  1481. 59:43free so they're sitting like they spent
  1482. 59:45their time you know to to to create this
  1483. 59:49awesome material so that people could uh
  1484. 59:51could learn for free and and I'm sure
  1485. 59:54you know everyone's had professors that
  1486. 59:55are just like like you know in college
  1487. 59:57for example they're there because they
  1488. 59:58want to do the research they're not
  1489. 59:59there to teach these guys are you know
  1490. 1:00:01they're there to teach they love it they
  1491. 1:00:03love to teach and you can see that comes
  1492. 1:00:05through uh the uh the materials it's
  1493. 1:00:08very nice absolutely yeah I mean I've
  1494. 1:00:10done one course on the corsera website
  1495. 1:00:14and um yeah very keen to dig into a few
  1496. 1:00:16more as well um really cool site so yeah
  1497. 1:00:20guys definitely check it out what is it
  1498. 1:00:21it's course era.org isn't it yeah yeah
  1499. 1:00:25okay so that's c r s r a.org but I'll
  1500. 1:00:29link to it in the show notes anyway so
  1501. 1:00:31guys a full recap on this episode um
  1502. 1:00:35including any of the resources that bird
  1503. 1:00:37has mentioned um as well as a bunch more
  1504. 1:00:40can be found at chat with traders.com
  1505. 1:00:43sl42 so but just before you go do you
  1506. 1:00:46want to share with listeners where they
  1507. 1:00:47can go to connect with
  1508. 1:00:50you
  1509. 1:00:51um I I can give you my email and then
  1510. 1:00:54you can post it out there they they can
  1511. 1:00:56email me or I'm on LinkedIn you know um
  1512. 1:00:59you can find me okay and you're also on
  1513. 1:01:02Twitter yeah I'm on Twitter yeah yeah
  1514. 1:01:04I'm on Twitter I don't really post any
  1515. 1:01:07original info because I don't have uh
  1516. 1:01:09too much time but I repost stuff I like
  1517. 1:01:11uh half I started doing it so I could
  1518. 1:01:13actually go back and read articles that
  1519. 1:01:15I liked but it turned into uh it's a
  1520. 1:01:18it's a I think I post some cool stuff I
  1521. 1:01:20mean I post obviously I only repost
  1522. 1:01:23stuff that I think is cool so it makes
  1523. 1:01:24sense that I think uh
  1524. 1:01:26that's interesting that's a that's a
  1525. 1:01:27good idea actually I mean I end up just
  1526. 1:01:30um saving everything to My Bookmarks uh
  1527. 1:01:32bar at the top of my browser and it's an
  1528. 1:01:35absolute mess but um yeah I like that
  1529. 1:01:37that's a good idea so what is your
  1530. 1:01:38Twitter handle just in case someone
  1531. 1:01:40wants to check out some of
  1532. 1:01:42these I think it's uh b m o u l e r okay
  1533. 1:01:47like my last name very cool all right
  1534. 1:01:49and of course that'll be in the show
  1535. 1:01:50notes so but thank you very much for
  1536. 1:01:52doing this man I really appreciate it
  1537. 1:01:54it's been um very interesting and you
  1538. 1:01:56know exposed us to something we haven't
  1539. 1:01:58had the chance to speak about on the
  1540. 1:02:00podcast before so yeah thanks a lot man
  1541. 1:02:02I really appreciate it thank you man
  1542. 1:02:05thanks for having an awesome podcast you
  1543. 1:02:07know this is a very uh you know I would
  1544. 1:02:10say right next to the mark Wizards book
  1545. 1:02:13uh books uh in terms of uh actually
  1546. 1:02:16helping people to trade you know yeah
  1547. 1:02:19yeah that's that's really cool to hear
  1548. 1:02:20man thank you very much so take care
  1549. 1:02:22Bert and uh let's talk very soon
  1550. 1:02:29you've come to the end of this episode
  1551. 1:02:30of chat with Traders but don't worry
  1552. 1:02:32more great episodes are on the way to
  1553. 1:02:34stay updated with each great new episode
  1554. 1:02:37be sure to subscribe to the podcast in
  1555. 1:02:39iTunes and we'd love it if you leave us
  1556. 1:02:41a rating and review we'll see you next
  1557. 1:02:43time on chat with Traders
  1558. 1:02:45[Music]
  1559. 1:02:59I
  1560. 1:03:04[Applause]
  1561. 1:03:06[Music]

About this transcript

This page contains the full transcript of Machine learning for algorithmic trading w/ Bert Mouler by Chat With Traders, generated from the public captions YouTube serves with the video. The transcript has 11,571 words across 1,561 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 choose a caption track available on the video.

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, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.