@pmfiorini, how did you confirm that your code did not generate any values? Also, did you remember to use TimeFrameExpand() after you call to TimeFrameRestore(), i.e. something like this:
You should try outputting your values using an Exploration, and of course verify that you really do have enough data in your database to calculate a 200-day MA.
You are correct - Stupid mistake on my part - Yes, you are correct. I did not have 200 bars worth of data - Thanks for your time...I tried it with the 20 MA and it works fine - I remember I only have 104 bars of data...