Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
BadBinaryOperator: Can't compute BoundColumn / AverageDollarVolume

I'm trying to create a simple algorithm that goes long breakouts (defined as daily price change greater than 20% on big volume) and shorts breakdowns (price drop greater than 20% on big volume).

I modified the template I had from a Udemy course, but I keep getting the same error:

BadBinaryOperator: Can't compute BoundColumn / AverageDollarVolume

Any help would be greatly appreciated.

2 responses

change this line:

percent_change = USEquityPricing.volume / avg_dollar_volume

to

percent_change = USEquityPricing.volume.latest / avg_dollar_volume

Thanks! Now it works