Open eugenehsu9 opened 4 years ago
Here is a condition that I want place a TRAIL order with stop price is 43.41 and trailing Percent is 2%.
I use IBrokers.zip of joshuaulrich from github.
However, when I place TRAIL order with trailing Percent, the order is not contained with trailing Percent.
twsOrder(action = "SELL", totalQuantity = 399, orderType = "TRAIL",trailingPercent = "2", tif = "GTC", transmit = FALSE, trailStopPrice = 43.41)
[Insert your sessionInfo() output]
Description
Here is a condition that I want place a TRAIL order with stop price is 43.41 and trailing Percent is 2%.
I use IBrokers.zip of joshuaulrich from github.
However, when I place TRAIL order with trailing Percent, the order is not contained with trailing Percent.
Expected behavior
Minimal, reproducible example
Session Info