中文 | En

止盈止损

子母单概念,母单委托成交之后,为每一笔母单生成止盈子单和止损子单,随着行情变化,要么触发止盈的子单,要么触发止损的子单。

普通止盈止损功能,请通过实时持仓窗口或价格触发功能设置。

位置:下单板 - Smart Order - 止盈止损

视频:母子单新概念,不一样的止盈止损 by 王鼎

视频:无限易-到处都能止盈止损 by 草莓同学

视频:四分钟学会成交后跟随止盈止损 by 西瓜

⚠️ 风险提示:除服务器单之外,无限易的算法皆为本地算法单,依赖行情 / 成交来触发,若因网络延迟 / 断线 / 软件关闭等原因导致算法无法正常运行,无限易不为此担责。

功能介绍

手工委托一笔母单(普通委托)。

母单成交后,根据母单成交数量、成交价格,算法自动发送 两笔预埋性质的子单,一笔价格较高,另一笔价格较低。

当行情触发到其中一笔子单时,则以触发价 + 超价(多单加上超价,空单减去超价)进行报单,其中一笔触发或是终止,另一笔自动撤销。



USERGUIDE

止盈止损(价格触发)/ 止盈止损(大于小于)

委托母单时,不直接挂单,当 价格类型 ≥ 或 ≤ 委托价 时,用当时的触发价下单。

价格类型:支持对手价、最新价。

委托价:触发价格,即在下单板里填写的价格。

不等号:创建算法时算法的触发条件。

若选择『价格触发』,则算法根据 价格类型 VS 委托价 自动生成 ≥ 或 ≤ 的方向。

委托价 > 价格类型时,触发条件为 价格类型委托价

委托价 < 价格类型时,触发条件为 价格类型委托价

若选择『大于小于』,则根据界面选择的 ≥ 或 ≤ 等方向。

  • 价格类型中,由于开盘前没有对手价、最新价,以结算价替代,作为不等号方向的判断标准,因此盘前推荐使用 大于小于 算法,手动规定不等号方向。

使用方法

  1. 点击 Smart Order,下拉框中选择『止盈止损』,填写参数,点击开始使用。

  2. 在下单板设置好 母单委托价格、委托数量并下单。

USERGUIDE



案例说明

以上图多单为例。止盈止损功能开启后,手工委托一笔多单(母单),多单在 404.04 的价格成交。

成交后,在母单成交价 404.04 的基础上 + 5 个 tick,以 404.14 的价格预埋卖一笔止盈子单、同时 - 5 个 tick,以 403.94 的价格预埋卖一笔止损子单。

若行情上涨至 404.14,会触发止盈子单,则立即以 404.14 - 超价 2 个 tick,即 404.10 的价格发送卖出委,另一笔止损子单自动撤销。

若行情下跌至 403.94,会触发止损子单,则立即以403.94 - 超价 2 个 tick,即 403.90 的价格发送卖出委托,另一笔止盈子单自动撤销。

算法列表

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

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

  • 算法单皆委托在本地,软件关闭,算法不会继续运行和保存(下次打开时无记录)
  • 手动(右键 - 储存为任务下单)或 自动『定时管家』窗口设置)储存执行中、已暂停的算法,下次导入文件继续执行,详见 任务下单说明

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

注意事项

  • 止盈止损,仍有不成交的可能,可以透过超价增加成交的机率,也请留意参数设置的合理性。

  • 止盈止损是根据成交的母单触发,两笔子单的开平仓根据下单板选择的开平方式委托,请留意下单板的开平仓设置(如果下单版选择的是开仓,那么两笔子单委托都是开仓)。




中文 | En

Bracket

Bracket uses a parent-and-child order structure. After a parent order is filled, the algorithm creates a take-profit child order and a stop-loss child order for each fill of the parent order.

As market data changes, either the take-profit child order or the stop-loss child order is triggered. When one child order is triggered or terminated, the other child order is automatically canceled.

For regular take-profit / stop-loss settings, use the Position window or the Stop function.

Important: Except for Server Trader, all InfiniTrader algorithms are local algo orders. They rely on market data and fills to trigger. If network latency, disconnection, or closing the software prevents the algorithm from running normally, InfiniTrader is not liable for any resulting losses.

Path: Trade BoardSmart OrderBracket

How It Works

Manually place a parent order as a normal order.

After the parent order is filled, the algorithm automatically creates two pre-set child orders based on the filled quantity and fill price of the parent order:

Child Order Price Direction
Take-profit child order Set at a higher price
Stop-loss child order Set at a lower price

When market data triggers either child order, the order is submitted at the trigger price with Pay up applied:

  • For buy orders, add the configured Pay up ticks to the trigger price.
  • For sell orders, subtract the configured Pay up ticks from the trigger price.

When either child order is triggered or terminated, the other child order is automatically canceled.



USERGUIDE

Bracket Trigger Modes

Bracket (Stop)

When placing the parent order, the order is not submitted immediately. It is sent at the trigger price when the selected Price Type is greater than or equal to, or less than or equal to, Order-Px.

Field Description
Price Type Supports Aggressive and Last.
Order-Px The trigger price entered on the Trade Board.
Inequality sign The trigger condition generated when the algorithm is created.

If Stop is selected, the algorithm automatically determines whether to use >= or <= by comparing Price Type with Order-Px:

Condition Trigger Condition
Order-Px > Price Type Price Type >= Order-Px
Order-Px < Price Type Price Type <= Order-Px

Bracket (Above/Below)

If Above/Below is selected, the algorithm uses the >= or <= direction selected in the interface.

Before market open, Aggressive and Last are unavailable. The settlement price is used instead to determine the inequality direction. For this reason, use Above/Below before market open so you can manually set the inequality direction.

How to Use

  1. Click Smart Order, select Bracket from the drop-down list, enter the parameters, and click Submit.

  2. On the Trade Board, set the parent order price and volume, then place the order.

Example

In the long-order example above, after Bracket is enabled, a manually placed parent buy order is filled at 404.04.

Based on the fill price of 404.04, the algorithm creates two pre-set sell child orders:

Child Order Calculation Trigger Price
Take-profit child order 404.04 + 5 ticks 404.14
Stop-loss child order 404.04 - 5 ticks 403.94

If the market rises to 404.14, the take-profit child order is triggered. A sell order is sent immediately at 404.10, calculated as 404.14 - 2 ticks of Pay up. The stop-loss child order is automatically canceled.

If the market falls to 403.94, the stop-loss child order is triggered. A sell order is sent immediately at 403.90, calculated as 403.94 - 2 ticks of Pay up. The take-profit child order is automatically canceled.

Order Management

After placing the order, view and manage it in Algos.

Path: TradeAlgosSmart Order

USERGUIDE

Notes

  • Algo orders are stored locally. If the software is closed, the algorithm will not continue running or be saved. No record will be available the next time the software is opened.
  • Algorithms in Executing or Paused status can be saved manually by right-clicking and selecting Save As Designated Order, or automatically through settings in Time Master. The saved file can be imported next time to continue execution. See Designated Trader for details.
  • If a Fail order occurs during execution, such as insufficient funds or non-trading hours, or if the order is manually canceled, the algorithm is automatically terminated.
  • Bracket orders may still remain unfilled. Use Pay up to increase the chance of execution, and make sure the parameters are set reasonably.
  • The O/C setting for both child orders follows the O/C selection on the Trade Board. Check whether the parent order and child orders should be submitted as open or close orders before placing the order.
Copyright © InfiniTrader all right reserved,powered by Gitbook该文件修订时间: 2026-05-26 13:42:09

results matching ""

    No results matching ""

    results matching ""

      No results matching ""