中文 | En

止盈止损方法合集

无限易的止盈止损方法分为两类:

  • 标准合约止盈止损

  • 自定义套利止盈止损

视频合集:无限易止盈止损

⚠️ 本地算法风险提示

除服务器单外,本文介绍的算法单均在本地运行。触发算法时,必须保持网络连接正常且软件持续运行。软件关闭后,算法将停止运行且通常不会保留;再次打开软件后需要重新设置。部分算法支持保存,可在下次使用时手动导入并执行。

一、止盈止损的基本原理

无论使用哪种止盈止损方法,其本质都是预先设置一笔条件单:

  1. 满足指定的价格条件后触发算法。

  2. 发出平仓委托。

因此,无限易中的多种算法均可配置为止盈止损条件单,不必局限于功能名称。

二、标准合约止盈止损

标准合约包括交易所单合约和标准套利合约,两者的下单方式相同。

点击表格中的功能名称,可查看详细说明。

2.1 直接根据持仓设置

该方式直接针对实时持仓设置止盈止损。当持仓变为无持仓时,止盈止损自动取消。

该方式不支持标准套利组合。

功能名称 使用场景 触发条件 平仓数量 平仓价格 算法保存
实时持仓止盈止损 直接为实时持仓设置止盈止损的触发价格和数量 最新价 满足条件 自定义数量 对手价(默认)、最新价排队价;支持设置超价 不支持

2.2 自动生成止盈止损

以下功能可根据持仓、成交或盈亏情况自动生成止盈止损单。

功能名称 使用场景 触发条件 平仓数量 平仓价格 算法保存
无限下单短线精灵 根据持仓均价或开仓均价,按 Tick 设置止损;止损价格可随盈亏变化 最新价 满足条件 净持仓量 对手价(默认)、最新价排队价;支持设置超价 不关闭 无限下单 窗口即可保留参数,下次需手动开启
无限下单持仓风控 价格模式:设置价格上限或下限;盈亏模式:设置持盈或浮盈金额 最新价 满足条件 净持仓量 对手价(默认)、最新价排队价;支持设置超价 不关闭 无限下单 窗口即可保留参数,下次需手动开启
Smart Order → 止盈止损 每笔母单成交后,根据成交数量和成交价,按 Tick 生成止盈价和止损价;任意一侧触发后,另一侧自动取消 最新价 满足条件 母单成交数量 母单成交价 ± Tick 可保存为 任务下单,之后手动导入

2.3 使用价格条件单灵活设置

以下功能本质上都是价格条件单。设置时,需要在下单窗口中正确选择 买卖方向,并将 开平仓 设置为能够平仓的选项。

持仓方向的反向交易即为平仓。

⚠️ 如果持仓在止盈止损触发前已经被平仓,请手动撤销此前设置且不再需要的止盈止损算法。

功能名称 使用场景 触发条件 平仓数量 平仓价格 算法保存
Smart Order → 价格触发 可灵活选择触发价格类型;需要自行选择 平仓买卖方向 最新价对手价满足条件 自定义数量 指定价对手价最新价排队价;支持设置超价 可保存为 任务下单,之后手动导入
画线下单 通过在线图上画线设置价格触发单,其触发逻辑与 价格触发 相同,仅下单方式不同 同上 同上 同上 同上
Smart Order → 大于小于 价格触发 类似,但需要手动指定 ≥ 或 ≤ 作为触发条件 同上 同上 同上 同上
Smart Order → 二择一 分别设置止盈价和止损价;任意一侧触发后,另一侧自动取消 最新价满足条件 自定义数量 指定价;支持设置超价 可保存为 任务下单,之后手动导入
服务器单(仅支持 CTP) 大于小于 类似,但不受软件关闭或网络中断影响;委托仅在当日有效 最新价对手价排队价满足条件 自定义数量 指定价 无需保存,当个交易日有效

2.4 止盈止损结合拆单算法

以下功能通过价格条件触发平仓,并在平仓时执行拆单算法。

设置时,需要在下单窗口中正确选择 买卖方向,并将 开平仓 设置为能够平仓的选项。

持仓方向的反向交易即为平仓。

⚠️ 如果持仓在止盈止损触发前已经被平仓,请手动撤销此前设置且不再需要的止盈止损算法。

功能名称 使用场景 触发条件 平仓数量 平仓价格 算法保存
价格触发(TWAP)大于小于(TWAP) 价格条件触发后,使用 TWAP 算法拆单 最新价对手价满足条件 自定义数量 时间加权平均价 可保存为 任务下单,之后手动导入
价格触发(随机冰山)大于小于(随机冰山) 价格条件触发后,使用随机冰山算法拆单 最新价对手价满足条件 自定义数量 指定价 可保存为 任务下单,之后手动导入

三、自定义套利止盈止损

自定义套利组合本身就是价格条件单。如果已有持仓,可在适当的价差直接委托,以实现止盈。

止盈与止损的主要区别在于 ≥ 和 ≤ 触发条件不同。设置止损时,通常需要改变默认的比较方向。此时可开启下单板中的 价格触发 功能后再下单。

功能名称 使用场景 触发条件 平仓数量 平仓委托价 算法保存
套利猎人止盈止损 在组合委托前设置止盈价差和止损价差。母单每次成交后,算法根据成交份数,在同一条算法内生成止盈和止损委托;开平仓方向跟随下单板设置。止盈支持循环触发;止损触发后,止盈自动取消 对手价差满足条件 母单成交份数 自定义价差 母单剩余份数大于 0 时,可开启自动保存或手动保存
套利猎人无限下单(自定义)价格触发 通常用于设置止损(买涨或卖跌)。下单后生成另一条独立算法,需要自行选择 平仓买卖方向;也可针对已有持仓设置 对手价差满足条件 自定义数量 自定义价差 可开启自动保存或手动保存
无限下单(自定义)网格策略 可用于按 Tick 止盈并循环执行 n 次。需要自行选择 开平仓买卖方向。开启后,该组合每次成交时,系统根据成交份数自动生成一条反向交易算法 对手价差满足条件 成交份数 成交组合的 成交价差(默认)或委托价差 ± Tick 可开启自动保存或手动保存

3.1 触发条件示例

假设以 1000 的价差 买组合,触发条件为:

对手价 ≤ 1000

止盈或止损时,需要 卖组合

使用套利猎人的止盈止损功能

如果使用 套利猎人 的止盈止损功能,只需提前设置止盈价差和止损价差。

无需手动判断 ≥ 或 ≤,无限易会自动处理触发条件。

针对已有持仓单独设置算法

如果需要针对已有持仓设置止盈或止损,应另外下单并生成一条独立算法:

目的 设置价格 触发条件 操作方法
止盈 1200 对手价 ≥ 1200 卖组合时默认使用该条件,可直接委托
止损 800 对手价 ≤ 800 开启下单板中的 价格触发 功能,使触发条件与卖组合的默认条件相反




中文 | En

Take-Profit and Stop-Loss Methods

InfiniTrader provides take-profit and stop-loss methods for two types of instruments:

  • Standard instruments

  • Custom spreads

⚠️ Local Algo Risk Notice

Except for Server Trader orders, all algo orders described in this guide run locally. InfiniTrader must remain open and connected to the network for these algos to trigger. Closing InfiniTrader stops these algos. Most algo settings are not retained and must be configured again when you restart the application. Some algos can be saved and manually imported for later use.

1. How Take-Profit and Stop-Loss Orders Work

All take-profit and stop-loss methods are essentially preconfigured conditional orders:

  1. The algo triggers when the specified price condition is met.

  2. The algo submits a closing order.

Many InfiniTrader algos can therefore be configured as take-profit and stop-loss orders, regardless of the feature name.

2. Take-Profit and Stop-Loss for Standard Instruments

Standard instruments include exchange-listed single instruments and standard spread instruments. The order entry process is the same for both types.

Click a feature name in the tables below to view its detailed instructions.

2.1 Configure Orders from a Position

Use this method to configure take-profit and stop-loss orders directly for a position. The settings are canceled automatically when the position is fully closed.

This method does not support standard spread instruments.

Feature Use Case Trigger Closing Quantity Closing Price Save Support
Take-Profit and Stop-Loss for Position Configure the trigger price and quantity directly for a position Last meets the condition Custom quantity Aggressive (default), Last, or Passive; supports Pay up Not supported

2.2 Generate Take-Profit and Stop-Loss Orders Automatically

The following features generate take-profit and stop-loss orders from positions, fills, or profit and loss.

Feature Use Case Trigger Closing Quantity Closing Price Save Support
InfiniTraderTrailing Set a stop loss in ticks from the average position price or average opening price. The stop price can move as profit and loss changes Last meets the condition Net position quantity Aggressive (default), Last, or Passive; supports Pay up Parameters remain available while the InfiniTrader window stays open. Restart the algo manually for the next use
InfiniTraderRisk Manager Price mode: Set an upper or lower price limit. P/L mode: Set a position-profit or unrealized-profit amount Last meets the condition Net position quantity Aggressive (default), Last, or Passive; supports Pay up Parameters remain available while the InfiniTrader window stays open. Restart the algo manually for the next use
Smart Order → Bracket After each parent-order fill, generate take-profit and stop-loss prices from the filled quantity and price using the specified number of ticks. When either side triggers, the other side is canceled automatically Last meets the condition Filled quantity of the parent order Parent-order fill price ± ticks Can be saved to Designated Trader and imported manually

2.3 Configure Flexible Price-Triggered Orders

The following features are price-triggered orders. On the Trade Board, select the correct Buy/Sell direction and an Open/Close option that closes the position.

A trade in the direction opposite to the position closes the position.

⚠️ If the position is closed before the take-profit or stop-loss algo triggers, manually cancel any previously configured algos that are no longer required.

Feature Use Case Trigger Closing Quantity Closing Price Save Support
Smart Order → Stop Select from multiple trigger price types. You must select the correct Close and Buy/Sell options Last or Aggressive meets the condition Custom quantity Limit, Aggressive, Last, or Passive; supports Pay up Can be saved to Designated Trader and imported manually
Line Trader Draw a line on a chart to create an order with the same trigger logic as Stop. Only the order entry method differs Same as above Same as above Same as above Same as above
Smart Order → Above/Below Similar to Stop, but you must specify ≥ or ≤ as the trigger condition Same as above Same as above Same as above Same as above
Smart Order → OCO Set separate take-profit and stop-loss prices. When either side triggers, the other side is canceled automatically Last meets the condition Custom quantity Limit; supports Pay up Can be saved to Designated Trader and imported manually
Server Trader (CTP only) Similar to Above/Below, but the order remains active if InfiniTrader closes or loses its network connection. The order is valid only for the current trading day Last, Aggressive, or Passive meets the condition Custom quantity Limit No save required; valid for the current trading day

2.4 Combine Take-Profit and Stop-Loss with Order-Slicing Algos

The following features trigger a closing order when a price condition is met and use an order-slicing algo to execute it.

On the Trade Board, select the correct Buy/Sell direction and an Open/Close option that closes the position.

A trade in the direction opposite to the position closes the position.

⚠️ If the position is closed before the take-profit or stop-loss algo triggers, manually cancel any previously configured algos that are no longer required.

Feature Use Case Trigger Closing Quantity Closing Price Save Support
Stop(TWAP); Above/Below(TWAP) Slice the order with TWAP after the price condition triggers Last or Aggressive meets the condition Custom quantity Time-weighted average price Can be saved to Designated Trader and imported manually
Stop(Iceberg Random); Above/Below(Iceberg Random) Slice the order with Iceberg Random after the price condition triggers Last or Aggressive meets the condition Custom quantity Limit Can be saved to Designated Trader and imported manually

3. Take-Profit and Stop-Loss for Custom Spreads

A custom spread is itself a price-triggered order. If you already hold a position, submit an order at the appropriate spread price to take profit.

The main difference between take-profit and stop-loss orders is the ≥ or ≤ trigger condition. A stop-loss order usually requires you to reverse the default comparison condition. To do this, enable Stop on the Trade Board before submitting the order.

Feature Use Case Trigger Closing Quantity Closing Order Price Save Support
Spread HunterBracket Before submitting the spread order, set the take-profit and stop-loss spreads. After each parent-order fill, the algo creates take-profit and stop-loss orders within the same algo based on the filled spread quantity. The Open/Close setting follows the Trade Board. Take profit can trigger repeatedly; when stop loss triggers, the take-profit order is canceled automatically The aggressive spread meets the condition Filled spread quantity of the parent order Custom spread Automatic or manual saving is available while the remaining parent-order quantity is greater than 0
Spread Hunter or InfiniTrader(Custom)Stop Typically used for a stop loss when buying on a rising spread or selling on a falling spread. The order creates a separate algo. Select the correct Close and Buy/Sell options on the Trade Board. You can also configure it for an existing position The aggressive spread meets the condition Custom quantity Custom spread Supports automatic or manual saving
InfiniTrader(Custom)Grid Take profit by a specified number of ticks and repeat for n cycles. Select the correct Open/Close and Buy/Sell options. After each fill, the system creates a separate algo that trades in the opposite direction for the filled quantity The aggressive spread meets the condition Filled quantity Filled spread (default) or order spread ± ticks Supports automatic or manual saving

3.1 Trigger Example

Assume you buy a spread at 1,000 when:

Aggressive spread ≤ 1,000

To take profit or stop loss, you must sell the spread.

Use Bracket in Spread Hunter

When you use Bracket in Spread Hunter, set the take-profit and stop-loss spreads before submitting the parent order.

You do not need to select ≥ or ≤. InfiniTrader configures the trigger conditions automatically.

Configure a Separate Algo for an Existing Position

To configure take profit or stop loss for an existing position, submit another order to create a separate algo:

Purpose Price Trigger Procedure
Take profit 1,200 Aggressive spread ≥ 1,200 The default sell-spread condition already matches this trigger. Submit the order directly
Stop loss 800 Aggressive spread ≤ 800 Enable Stop on the Trade Board to reverse the default sell-spread trigger condition
Copyright © InfiniTrader all right reserved,powered by Gitbook该文件修订时间: 2026-07-14 18:30:59

results matching ""

    No results matching ""

    results matching ""

      No results matching ""