@Jigpylab above looks beautiful . @dropdead84 you can first start with back-testing it and later consult with experts to have position sizing implemented for your strategy specifically. and then go for final automated solution. check once with tragetogather.com guys .