Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
question about order_target_percent

if A is $100 and i use order_target_percent(A,1.0)to buy 100 shares. if tomorrow A goes to 103 and I had 300 profits. If I do order_target_percent(A,1.0) again will the api code use my unrealized profits to buy more shares? If it did not do anything, how could i use my unrealized profits to buy more shares? Any ideas guys?

2 responses

You bought 100 shares worth $10000. Now your 100 shares are worth $10300. You cannot buy more shares with the unrealized profit, because the cost of buying new shares is equal the the price you would get for selling them. Anything else would be magical.

that's right