4.0 KiB
{% assign title = "Slippage" %} {% assign definition = site.data.trading_system.slippage %} {% assign preposition = "a" %} {% assign plural = "" %}
{% if include.more == "yes" and include.heading == "more" %}
Click to learn more about {{ title | downcase }}{{plural}}
{% endif %}{% if include.heading != "" and include.heading != "more" %} {{include.heading}} {{title}} {% endif %}
{% if include.icon != "no" %}
{% if include.table == "yes" and include.icon != "no" %}
{% if include.more == "yes" and include.content == "more" and include.heading != "more" %}
Click to learn more about {{ title | downcase }}{{plural}}
{% endif %}{% if include.content != "no" %}
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 simulation layers, which are also available during forward testing and live trading.
Slippage is factored both in the session reports and in the graphic representation of each trade provided by the simulation trades product of the trading bot.
{% endif %}
{% if include.more == "yes" and include.content != "more" and include.heading != "more" %}
Click to learn more about {{ title | downcase }}{{plural}}
{% endif %}{% if include.adding != "" %}
{{include.adding}} Adding {{preposition}} {{title}} Node
To add a parameter that may be missing, select Add Missing Params on the parameters node menu.
{% endif %}
{% if include.configuring != "" %}
{{include.configuring}} Configuring the {{title}}
Select Configure Slippage on the menu to access the configuration.
{
"positionRate": 0.1,
"stopLoss": 0.2,
"takeProfit": 0.3
}
-
positionRateis the slippage value to be applied to the rate of the take position order, expressed as a percentage (i.e.: 0.1 means 0.1%). -
stopLossis the slippage value to be applied to the rate of the stop order, expressed as a percentage (i.e.: 0.2 means 0.2%). -
takeProfitis the slippage value to be applied to the rate of the take profit order, expressed as a percentage (i.e.: 0.3 means 0.3%).
The number you enter is applied as a percentage of the price of the order and added or subtracted from the price depending on the circumstances, always working against you. For instance, "positionRate": 0.1 means the position will be set at a price 0.1% higher or lower depending on which of the assets in the pair is your base asset.
{% include note.html content="If the slippage parameter is left empty or detached both from your session and your trading system, slippage is not computed during simulations."%}
{% endif %}
{% if include.starting != "" %}
{{include.starting}} Starting {{preposition}} {{title}}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
{% endif %}
{% if include.more == "yes" %}