If you check the Use signal take profit
checkbox, then the takeProfit
parameter in your webhook will be used if it exists. If the parameter does not exist in your webhook, then the take profit configured in the strategy settings will be used.
You can control take profits with a relative dollar amount or a relative percentage. In the following example, a takeProfit.limitPrice
of $110
is calculated from the takeProfit.amount
of $10
and the entry price of $100
.
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 100,
"takeProfit": {
"amount": 10
}
}
In this example, a takeProfit.limitPrice
of $110
is calculated from the takeProfit.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 takeProfit.limitPrice
directly, you can do so as well.
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 100,
"takeProfit": {
"limitPrice": 110
}
}