Available translations

Slippage

foundations.png
slippage.png
The slippage is an assumption on the difference between the simulated rate and the actual fill rate of a market order, most relevant in the context of backtesting and paper-trading sessions. The parameter is a tool to make simulations more realistic.
Content
In the context of forward testing and live trading sessions, slippage does not affect the actual transactions. However, the parameter is taken into account when creating the live trading simulation until the actual order fill values are obtained from the exchange.
Configuring
Slippage Configuration
Properties
  • positionRate is the slippage value applied to the rate of all market orders throughout the position, expressed as a percentage (for example, 0.1 means 0.1%).
  • stopLoss is the slippage value applied to the stop loss target defined by the formulas of each stop loss phase in the manage stage of the trading system, expressed as a percentage (for example, 0.2 means 0.2%). The slippage value is applied to the value resulting from the corresponding stop loss formula, and the actual stop loss target is the resulting number. For example, if the stop loss formula results in 1000 and the stopLoss slippage value is 0.2, then the resulting stop loss target is 1000 ± 1000 0.2 / 100. Read below for an explanation on when the slippage is added or subtracted.
  • takeProfit works similarly as the stopLoss setting, but affecting the take profit target instead of the stop loss target.
Initial Values
These are the Initial Values for Slippage configuration:
 {
    "marketOrderRate": 0.1,
    "stopLoss": 0.2,
    "takeProfit": 0.3
}
Examples
This is a list of properties featured by the Slippage configuration. Expanding a property shows sample values for the property extracted from the current Workspace.
Slippage Menu
The Slippage node has the following Node Menu items:
The Configure menu item has the following properties:
  • action: Configure
  • label: Configure
  • iconPathOn: configuration
  • iconPathOff: configuration
  • actionFunction: uiObject.configEditor.activate
The Delete menu item has the following properties:
  • action: Delete UI Object
  • actionProject: Visual-Scripting
  • askConfirmation: true
  • confirmationLabel: Confirm to Delete
  • label: Delete
  • iconPathOn: delete-entity
  • iconPathOff: delete-entity
  • actionFunction: payload.executeAction
Slippage Attaching Rules
The following are the Node Attaching Rules that govern the attachment of Slippage with other nodes:
Compatible Types: