Is this sentence correct?
He had been living in Rome since he
had moved there
Welcome to the forum.
Is there some reason why you put "He had been living in Rome since he" on one line and then "had moved there" on a separate line? Also, your sentence lacks a closing punctuation mark.
Remember - if you don't use correct capitalisation, punctuation and spacing, anything you write will be incorrect.