<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[EMA angles and curves]]></title><description><![CDATA[<p dir="auto">![alt text](<img src="/community/assets/uploads/files/1623102653657-944108f3-576b-4164-ab84-70e51c4472ca.jpeg" alt="944108F3-576B-4164-AB84-70E51C4472CA.jpeg" class="img-responsive img-markdown" /> image url)</p>
<p dir="auto">Is it possible to code angles on EMAs? Say for example where the curve happens where I have circled as well as the spike next to it. If so where can I get this code and if not is there anything that maybe might come close to it</p>
]]></description><link>http://quantiacs.com/community/topic/88/ema-angles-and-curves</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 02:44:28 GMT</lastBuildDate><atom:link href="http://quantiacs.com/community/topic/88.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 07 Jun 2021 21:52:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to EMA angles and curves on Wed, 16 Jun 2021 21:17:06 GMT]]></title><description><![CDATA[<p dir="auto">Hello.</p>
<p dir="auto">Try to use ROC (Rate Of Change).</p>
<p dir="auto"><a href="https://www.investopedia.com/terms/p/pricerateofchange.asp#:~:text=The%20Price%20Rate%20of%20Change%20(ROC)%20is%20a%20momentum%2D,certain%20number%20of%20periods%20ago" rel="nofollow ugc">https://www.investopedia.com/terms/p/pricerateofchange.asp#:~:text=The Price Rate of Change (ROC) is a momentum-,certain number of periods ago</a>.</p>
<pre><code class="language-python">...
import qnt.ta as qnta
...
def single_pass_strategy(data, wma_period=20, roc_period=10):
   wma = qnta.lwma(data.sel(field='close'), wma_period)
   sroc = qnta.roc(wma, roc_period) # it measures the angle (tg)
   weights = xr.where(sroc &gt; 0, 1, 0)
   return weights
...
</code></pre>
<p dir="auto">Regards.</p>
]]></description><link>http://quantiacs.com/community/post/394</link><guid isPermaLink="true">http://quantiacs.com/community/post/394</guid><dc:creator><![CDATA[support]]></dc:creator><pubDate>Wed, 16 Jun 2021 21:17:06 GMT</pubDate></item></channel></rss>