Holomorphic potentials for graded D-branes