The basics are there, if you want to add the 5 MA in there, feel free to do so. If you're having issues doing that, post your code and I'll point you in the right direction.