If you check the Use signal stop loss
checkbox, then the stopLoss
parameter in your webhook will be used if it exists. If the parameter does not exist in your webhook, then the stop loss configured in the strategy settings will be used.
You can control stop losses with a relative dollar amount or a relative percentage. In the following example, a stopLoss.stopPrice
of $90
is calculated from the stopLoss.amount
of $10
and the entry price of $100
.
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 100,
"stopLoss": {
"type": "stop",
"amount": 10
}
}
In this example, a stopLoss.stopPrice
of $90
is calculated from the stopLoss.percent
of 10%
and the entry price of $100
.
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 100,
"takeProfit": {
"percent": 10
}
}
Or if you want to control the stopLoss.stopPrice
directly, you can do so as well.
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 100,
"stopLoss": {
"stopPrice": 90
}
}