Use the Stop loss amount field to dynamically calculate a stop price for your stop loss using a relative dollar amount. For example, if you configured your Stop loss amount 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",
"amount": 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
}
}