title: R TTR package EMA function Ratio field
body: <p>TTR package EMA function. What does ratio do?</p>
  
  <p>Exmple code:</p>
  
  <pre><code>library("TTR")
  a &lt;- 1:5
  EMA(a,n=1)
  </code></pre>
  
  <p>Result
  1 2 3 4 5</p>
  
  <pre><code>EMA(a,n=1,ratio=1/3)
  </code></pre>
  
  <p>Result
  1.000 1.3333 1.8888 2.5926 3.3951</p>
  
  <p>I've looked at EMA function calculation on google and nowehere can I find a ratio field.</p>
  
  <p>I have seen the monster function for EMA and it's overkill. So how does this calc work using ratio in understandable language?</p>
  
  <p>Thanks.</p>