Hi all,

My apologies as I am rather unfamiliar with the documentation and it is a bit confusing. 

First, I should explain what the attached code is attempting to do. I am trying to get a 9 day EMA and when it crosses the current price, buy the stock. Otherwise, we should short it until they cross over. However, the information about the EMA that is in the console and the results being so significantly high is concerning.

I have a few questions that will hopefully lead to the problem. 

1. When we set the resolution of the EMA, is that how often the EMA is updated or how long the EMA is? (Ticks, days etc)

2.  How does the EMA update in QC?

3. Is the EMA based on days or what 'period'?

Thanks so much all.