仓库源文站点原文


layout: post title: "ML4T笔记 | 02-02 Market Mechanics" date: "2019-02-11 02:11:11" categories: 计算机科学 auth: conge

tags: ML4T Machine_Learning Trading OMSCS

01 - Overview

What happens when you click buy?

Time: 00:00:14

02 - What is in an order

The components of an order that can go to a stock exchange:

Time: 00:02:44

03 - The order book

Each exchange keeps an order book for every stock that they buy or sell.

And here's how it works.

Time: 00:02:54

04 - quiz: Up or down

Look at how many shares we have for sale and how many shares people want to buy. is the price of this stock going to go up or down?

Solution: Down, because there's much more selling pressure.

Time: 00:00:52

05 - How orders affect the order book

a live order book

Time: 00:03:31

06 - How orders get to the exchange

How do the orders get to the exchange from you.

scenario 1:

Note: each of these exchanges tends to be pretty similar, the prices don't differ much.

scenario 2: order executed internally in a broker

However, by law, 1) both the seller and the buyer have to get prices that are at least as good as they would've gotten if they had gone to an exchange. 2) And this transaction has to be registered with one of the exchanges.

scenario 3: order filled using a Dark Pool.

The brokerages in the Dark Pools argue that both partners (seller and buyer) in this transaction are getting prices at least as good as they would get at the exchanges on the order books. And the brokers save money.

Time: 00:04:06

07 - How hedge funds exploit market mechanics

Order book exploit

Geographic arbitrage exploit.

Time: 00:04:09

08 - Additional order types

They don't execute those other types.

Well, you might wonder, okay, how do those other types of orders come into being?

Orders are implemented by brokers

  1. Stop loss: when the stock drops to a certain price, then sell it.
  2. Stop gain: when the stock reaches a certain higher price, then sell it.
  3. Trailing stop: stop loss is triggering price is changing with the current price. e.g. stop loss when the stock price drop $0.1 from the current price. So as the price goes up, the value at which you would want to sell the stock goes up along with the price.
  4. selling short: sell a stock short if you believe its price is going to go down.

Time: 00:01:51

09 - Mechanics of short selling: Entry

Example: You want to take a short position in IBM which is currently selling at $100.

  1. Joe holds 100 shares of IBM. Joe can lend you his shares to you. Lisa wants to buy IBM.
  2. You borrow Joe's share and sell it to Lisa.
  3. Now, the 100 share is in Lisa's hands, $10000 is in your account, but you owe Joe 100 shares.
  4. Joe may decide he wants his 100 shares back. then you'll have to buy the shares from someone and then give them back to Joe.

Time: 00:02:04

10 - quiz Short selling

.

if IBM goes down (as you predicted) to $90, and you decide to exit. Then you submit an order to your broker to buyout those 100 shares at $90. what's your net return?

Solution: $1000.

Time: 00:00:20

11 - Mechanics of short selling: Exit

  1. Joe holds 100 shares of IBM. Joe can lend you his shares to you. Lisa wants to buy IBM.
  2. You borrow Joe's share and sell it to Lisa.
  3. Now, the 100 share is in Lisa's hands, $10000 is in your account, but you owe Joe 100 shares.
  4. Joe may decide he wants his 100 shares back. then you'll have to buy the shares from someone and then give them back to Joe.
  5. if you want to exit the short position, you buy 100 shares IBM at the market price and return the shares to Joe. your obligation to Joe, is now completed.
  6. The broker is executing all the transactions.

Time: 00:01:44

12 - What can go wrong

What can go wrong?

Time: 00:01:17

Total Time: 00:26:48

2019-02-11 初稿