I got the same situation and don't understand, why we can use MA and MA-shift on chart, but when we put it in indicator or EA, they are returning zero!