TWAP

时间加权平均价交易。TWAP 自动把大单委托拆分为多笔分散成交,并在设置的算法时长内完成指定的委托数量,成交均价与该时间区段的成交均价相当。

位置:下单板 > Smart Order > TWAP

视频:2 分钟学会用 TWAP 做大单拆分 by 草莓同学

推文:无限易拆单秘籍:我方使用了多重分身术


Time-Weighted Average Price.

Choose Trader Window > Smart Order > TWAP

使用方法 Usage

USERGUIDE
效果示例
Demo


  1. 选择 Smart Order > TWAP,在弹窗中填写参数,点击 开始使用 按钮。

    点击 Smart Order 的 USERGUIDE 可修改参数。

    此时并不会立即执行,仅代表功能开启。

  2. 下单板 设置好 委托数量买卖方向 并下单。


  1. Choose Smart Order > TWAP, Enter related parameters, and click the Submit button.

    Click the USERGUIDE to modify the parameters.

    At this point, Smart Order will not immediately execute, only indicating that the switch is turned on.

  2. Fill in Qty in the Trader window and select the Buy/Sell button for Trading.

参数说明 Parameter Description

USERGUIDE


  • 算法总时长: 委托需要的总时间。

  • 单笔上限 / 单笔下限:算法中会把总委托量拆分成多笔,单笔委托数量的上限 / 下限。

    上下限可以设置为 相同数量,此时单笔委托数量固定。

  • 价格检查间隔: 算法会根据数量和总时长自动算出每一笔报单的 单位时间段,单位时间段内,先以排队价挂单,每隔『价格检查间隔』的时间,检查排队价是否变动,若变动则改为最新的排队价挂单,若单位时间段结束仍未成交,立即改以 对手价 追单。

  • 追单价格:可选择用对手价、市价、涨跌停价(买用跌停、卖用涨停)作为追单价格。

    部分交易所和合约不支持市价指令,选择后发生追单,将会错单导致算法终止,详见 交易术语解释 市价部分说明。

    v2024.1113 之后的版本才支持追单价格选择。


  • Total Time: The total time required for the order.

  • UpperLimit / LowerLimit Vol: This sets the upper / lower limit of the single order quantity when the algorithm splits the total number of orders into multiple ones.

    The upper limit and lower limit can be the same for a single order.

  • Interval: The algorithm will calculate the unit time period of each order based on the quantity and the total time. Within the unit time period, the order is placed at the bid(buy) / ask(sell) price first. Check whether the queue price has changed every 『Interval』. If it changes, immediately buy / sell with the latest bid / ask price; if the order is not filled within the unit time, it will be immediately changed to chase at the best price.

  • Chase Price: The current version is not supported, please ignore it.

案例说明 Case Description

USERGUIDE


  • 算法总时长 Total Time: 300s

  • 单笔上限 / 单笔下限 UpperLimit / LowerLimit Vol:20、10

  • 价格检查间隔 Interval : 5s

  • 委托数量 Total Qty :100

  • 买卖方向 B/S :买 Buy


按照以上参数设置,TWAP 将总共 100 手委托,拆分为 7 笔,每一笔委托数量在 10 ~ 20 之间,并自动生成单位时间 t,保证 t1 + t2 … + t7 ≤ 300s

第一笔 t1(09:00:00 ~ 09:00:42) 先用 买价 买 12 手,在此期间,每隔 5s (价格检查间隔)检查买价,若买价变动,则撤单改用新的买价委托。

09:00:42 仍未成交,立马按照当前的 卖价 追单,此时开始 t2 的委托 … 直到完成 t7,算法完成。


TWAP splits a 100-lot order into 7 transactions, each with a quantity between 10 and 20, and automatically generate a unit time t to ensure t1+t2...+t7 ≤ 300s.

During the first t1(09:00:00 ~ 09:00:42) period, the algorithm buys 12 lots with a bid price and checks it every 5s . If the bid price changes, the order is canceled, and the latest bid price is used to buy.

If the order is in working mode at 09:00:42, the algorithm immediately uses the ask price to chase it, starting from t2 until t7.

算法列表 Algos

下单后可在 算法列表 窗口中查看并管理委托。

位置:交易 > 算法列表 > Smart Order


The Algos window shows the status of the algorithmic orders.

Choose Trade > Algos > Smart Order


USERGUIDE


  • 网络断线,算法不会正常运行。

  • 算法单皆委托在 本地,软件关闭,算法不会运行和保存(下次打开时无记录)。

  • 手动(右键 - 储存为任务下单)或 自动『定时管家』窗口设置)储存执行中、已暂停的算法,下次导入文件继续执行,详见 任务下单说明

  • 执行过程中遇到 错单 (资金不足、不在交易时间等)、 手动撤单,算法自动终止。


  • Algos will not function properly when the network is disconnected.

  • All Algos are locally (on your PC), Close the software, Algos will not be saved.

  • Right-click and select Save As Designated Order to save the Algos in CSV format for the "Executing" and "Paused" states. Next time you open the software, select Trade>Designated Trader, click USERGUIDE to import the file, select the list, and click Active to place the order again.

  • If your order shows a "Fail" status or you cancel the order, the Algos will end.

注意事项 Tip

  • 如果时间参数与拆分数量无法适配,触发后,可能无法正常运行。

    例如:100 手委托,总时长设置 5 秒,单笔却只设置 1~2 手 ,此时总时长将被延长。

  • TWAP 执行中若有单笔部分成交,将会以 未成交数量 进行另外补单。


  • Please ensure that the parameters you have filled in are reasonable, if it is not possible to split all quantities within the Total Time, the Total Time will increase.
Copyright © Infinitrader 2025 All Right Reserved,Powered by GitBook该文件修订时间: 2024-11-27 18:24:07

results matching ""

    No results matching ""

    results matching ""

      No results matching ""