سلام
"rafte boodam" is Past Perfect and "rafte-am" is Present Perfect.
گذشته ی دور and گذشته ی نَقلی are equivalent of Past Perfect and Present Perfect respectively.
من رفتم=I went
من رفته بودم=I had gone
من رفته ام=I have gone
من می رفته ام=I have been going
من می رفته بودم=I had been going
I wrote من می رفته ام and من می رفته بودم as you had written so, but present perfect continuous and past perfect continuous are not applied so in Persian. Please visit these links: