Great! I wrote a similar script in Ruby for Bitfinex / Bitstamp DCA.
Beyond the standard DCA I implemented a simple algorithm to optimize the buy: it increase/lower the fiat value spent according to the average value in the previous days. So for example instead of always buy $5/day it will buy $6 as soon BTC lower and $4 if it increase. It could be a nice addon to your script, too :)