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

Hi everyone, what is the difference between order_percent and order_target_percent in terms of the end results?

Say, no matter which function I use, and no matter what how may APPL stocks I have already have (order_target_percent will adjust the difference between the percentages), after running order_percent(APPL, 0.30) or order_target_percent(APPL, 0.30), I will always have my 30 percent of my current position invested in APPL, right?

In this way, there is no difference between this two? I think I misunderstand something ...

1 response

I believe running order_target_percent(AAPL, 0.3) twice will still leave you with 30% of your portfolio in AAPL, running order_percent(AAPL, 0.3) twice will leave you with 60% of your portfolio in AAPL