An ultraflat self-oscillating optical frequency comb generator based on an optoelectronic oscillator employing cascaded modulators was proposed and experimentally demonstrated. By incorporating the optoelectronic oscillation loop with cascaded modulators into the optical frequency comb generator, 11 ultraflat comb lines would be generated, and the frequency spacing is equal to the oscillation frequency of the OEO. 10 and 12GHz optical frequency combs are demonstrated with the spectral power variation below 0.82dB and 0.93dB respectively. The corresponding spectral pure microwave source are also generated and evaluated. The corresponding single-sideband phase noise are as low as -122dBc/Hz and -115 dBc/Hz at 10 kHz offset frequency.