Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trailing stop order of IBrokers in R #23

Open
eugenehsu9 opened this issue Feb 20, 2020 · 0 comments
Open

Trailing stop order of IBrokers in R #23

eugenehsu9 opened this issue Feb 20, 2020 · 0 comments

Comments

@eugenehsu9
Copy link

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

image

Minimal, reproducible example

twsOrder(action = "SELL", totalQuantity = 399, orderType = "TRAIL",trailingPercent = "2", tif = "GTC", transmit = FALSE, trailStopPrice = 43.41)

Session Info

[Insert your sessionInfo() output]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant