costCurves

Estimate market-impact cost of order execution

描述

example

cc=肋骨(k,交易,交易Quantity,tqRange,贸易涂,tsRange)returns the market-impact costs of order execution using:

  • Kissell Research Group (KRG) transaction cost analysis objectk

  • Trade data交易

  • Trade quantity交易Quantity有一系列值tqRange

  • Trade strategy贸易涂有一系列值tsRange

例子

全部收缩

Retrieve the market impact data from the KRG FTP site. Connect to the FTP site using theFTP.使用用户名和密码功能。导航到MI_Parametersfolder and retrieve the market impact data in theMI_Encrypted_Parameters.csv文件。miDatacontains the encrypted market impact date, code, and parameters.

f = ftp('ftp.kissellresearch.com','用户名','pwd'); mget(f,'MI_Encrypted_Parameters.csv'); miData = readtable('MI_Encrypted_Parameters.csv','delimiter',。。。',','ReadRowNames',假,'ReadVariableNames',true);

创建基位研究组交易成本分析对象k

k = krg(midata);

从文件加载示例数据krgexampledata.mat., which is included with the Trading Toolbox™.

loadkrgexampledata.

变量商标出现在matlab®workspace.

商标包含这些变量:

  • 股票标志

  • 股票价格

  • 平均每日体积

  • Volatility

有关示例数据的描述,请参阅Kissell研究组数据集

估计市场 - 影响成本与贸易数量'Size'和战略'POV'。Specify the trade quantity range with increments of 0.01 by starting from 0.01 and ending at one. Specify the trade strategy range with increments of 0.05 by starting from 0.05 and ending at 0.5.

cc = costCurves(k,TradeData,'Size',(0.01:0.01:1),'POV',(0.05:0.05:0.5));

显示前三行的市场影响成本数据。

CC(1:3,:)
ans = Symbol Size Shares Dollars POV TradeTime Cost_BP Cost_DollarsPerShare Cost_Dollars ______ ____ _________ __________ ____ _________ _______ ____________________ ____________ 'AAL' 0.01 114764.24 6251208.50 0.05 0.19 11.42 0.06 7139.93 'AAL' 0.01 114764.24 6251208.50 0.10 0.09 17.93 0.10 11210.76 'AAL' 0.01 114764.24 6251208.50 0.15 0.06 23.42 0.13 14637.37

市场影响成本数据包含:

  • 股票标志

  • Size

  • 交易中的股份数量

  • Dollar amount of the transaction

  • 完成交易的卷百分比

  • Trade time to complete the transaction in percentage of the day

  • Market-impact cost in basis points

  • 市场影响成本为每股美元

  • 市场影响成本为美元

为本百分比的体积率显示成本曲线:5%,15%,25%和35%。

figure subplot(2,2,1) plot(cc.Size(1:10:1000)*100,cc.Cost_BP(1:10:1000)) gridaxis([0 100 0 250]) xlabel({'Size','(%ADV)'}) ylabel({'Cost','(bps)'}) title('pov = 5%')a = gca;a.xaxis.ticklabelformat ='%G%%'; subplot(2,2,2) plot(cc.Size(3:10:1000)*100,cc.Cost_BP(3:10:1000)) gridaxis([0 100 0 250]) xlabel({'Size','(%ADV)'}) ylabel({'Cost','(bps)'}) title('POV = 15%'b = gca;B.xaxis.Ticklabelformat ='%G%%'; subplot(2,2,3) plot(cc.Size(5:10:1000)*100,cc.Cost_BP(5:10:1000)) gridaxis([0 100 0 250]) xlabel({'Size','(%ADV)'}) ylabel({'Cost','(bps)'}) title('POV = 25%') c = gca; c.XAxis.TickLabelFormat ='%G%%'; subplot(2,2,4) plot(cc.Size(7:10:1000)*100,cc.Cost_BP(7:10:1000)) gridaxis([0 100 0 250]) xlabel({'Size','(%ADV)'}) ylabel({'Cost','(bps)'}) title('POV = 35%') d = gca; d.XAxis.TickLabelFormat ='%G%%';

This figure demonstrates how fast to trade a specific order size within a price level.

Input Arguments

全部收缩

交易成本分析, specified as a KRG object created usingkrg.

Trade data that describes the stocks in the transaction, specified as a table or structure.交易must contain these variable or field names.

变量或字段名称 描述

符号

股票标志

价钱

股票价格

ADV

平均每日体积

Volatility

Volatility

例:贸易=表({'XYZ'},100.00,860000,0.27,'variablenames',{'符号''''''''''volatility'})

例:贸易=结构('符号','XYZ','价格',100.00,'ADV',860000,'波动性',0.27)

These examples do not represent real market data.

Data Types:struct|

贸易数量,指定为其中一个值。

Trade Quantity Description

'Size'

分享in the transaction, which is a percentage of average daily trading volume

'Shares'

交易中的股份数量

'美元'

交易总值

Trade quantity range, specified as a vector.costCurves使用这些值与贸易策略范围值,以估计不同数量和策略的市场影响成本。

例:'Size',(0.01:0.01:1)指定贸易数量范围,增量为0.01,从0.01开始,并以一个结尾

Data Types:

贸易策略,指定为其中一个值。

值s 贸易战略名称

'POV'

体积百分比

'tradetime'

Trade time in percentage of the day

Trade strategy range, specified as a vector.costCurvesuses these values with the trade quantity range values to estimate market-impact costs for different quantities and strategies.

例:'POV',(0.05:0.05:0.5)指定贸易策略范围,增量为0.05,从0.05开始,以0.5结束

Data Types:

Output Arguments

全部收缩

Cost curves, returned as a table or structure with these variable names or fields.

变量或字段名称 描述

符号

股票标志

Size

分享in a transaction in percentage of average daily trading volume

分享

交易中的股份数量

美元

Dollar amount of the transaction

POV

完成交易的卷百分比

TradeTime

Trade time to complete the transaction in percentage of the day

cost_bp.

以基点交易的市场影响成本

cost_dollars.PerShare

每股交易的市场影响成本

cost_dollars.

以美元交易的市场影响成本

提示

  • For details about the calculations, contact Kissell Research Group.

参考资料

[1] Kissell,Robert。“交易成本分析的实际框架。”Journal of Trading。Vol. 3, Number 2, Summer 2008, pp. 29–37.

[2] Kissell,Robert。“算法交易策略。”博士论文。福特汉姆大学,2006年5月。

[3] Kissell,Robert。“投资过程中的TCA:概述。”Journal of Index Investing。Vol. 2, Number 1, Summer 2011, pp. 60–64.

[4] Kissell,Robert。算法交易与投资组合管理科学。剑桥,马:elsevier /学术出版社,2013。

[5] Kissell,Robert和Morton Glantz。Optimal Trading Strategies。纽约,纽约:Amacom,Inc。,2003。

Introduced in R2016a