Navigation

    Quantiacs Community

    • Register
    • Login
    • Search
    • Categories
    • News
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    EMA angles and curves

    Strategy help
    angles curves ema
    2
    2
    380
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mobile.antelope last edited by

      ![alt text](944108F3-576B-4164-AB84-70E51C4472CA.jpeg image url)

      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

      1 Reply Last reply Reply Quote 0
      • support
        support last edited by support

        Hello.

        Try to use ROC (Rate Of Change).

        https://www.investopedia.com/terms/p/pricerateofchange.asp#:~:text=The Price Rate of Change (ROC) is a momentum-,certain number of periods ago.

        ...
        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 > 0, 1, 0)
           return weights
        ...
        

        Regards.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Powered by NodeBB | Contributors
        • Documentation
        • About
        • Career
        • My account
        • Privacy policy
        • Terms and Conditions
        • Cookies policy
        Home
        Copyright © 2014 - 2021 Quantiacs LLC.
        Powered by NodeBB | Contributors