Navigation

    Quantiacs Community

    • Register
    • Login
    • Search
    • Categories
    • News
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. mobile.antelope
    3. Topics
    M
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 2
    • Best 0
    • Groups 0
    • Blog

    Topics created by mobile.antelope

    • M

      EMA
      Strategy help • • mobile.antelope

      2
      0
      Votes
      2
      Posts
      265
      Views

      support

      @mobile-antelope Sorry for delay. You should first define exactly (in math terms) what you want to scan, and then write the corresponding python code. We can help with the python code, but you should specify exactly what would you like to scan.

    • M

      EMA angles and curves
      Strategy help • angles curves ema • • mobile.antelope

      2
      0
      Votes
      2
      Posts
      380
      Views

      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.

    • Documentation
    • About
    • Career
    • My account
    • Privacy policy
    • Terms and Conditions
    • Cookies policy
    Home
    Copyright © 2014 - 2021 Quantiacs LLC.
    Powered by NodeBB | Contributors