Tunable correlated Chern insulator and ferromagnetism in a moiré superlattice