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

Can someone tell a newbie what is going wrong. The number of shares traded get extremely large and the gain and draw down impossible.

2 responses

order_target_percent(symbol, x) means you place an order for x times your portfolio value, in your case 100 * portfolio value (the backtester grants you an unlimited credit line). If you want to invest 100 % in a symbol use order_target_percent(symbol, 1).

Thank you