Use the Stop loss percent field to dynamically calculate a stop price for your stop loss using a relative percentage. For example, if you configured your Stop loss percent to be 10% and we enter at $100, the stop price would be $90.
You can also control this from the webhook as well. Any stop loss you send in your webhook will be used instead of the one configured in the strategy settings.
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 100,
"stopLoss": {
"type": "stop",
"percent": 10
}
}
Or if you want to calculate your own stop loss stop price, you can do so as well by sending an explicit stopPrice in your webhook.
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 100,
"stopLoss": {
"type": "stop",
"stopPrice": 90
}
}