Giter Site home page Giter Site logo

Alpha10公式有疑问 about ta_cn HOT 4 CLOSED

wukan1986 avatar wukan1986 commented on August 19, 2024
Alpha10公式有疑问

from ta_cn.

Comments (4)

huangdongqin avatar huangdongqin commented on August 19, 2024

image
image
估计写研报的也是困了

from ta_cn.

wukan1986 avatar wukan1986 commented on August 19, 2024

t1 = IF((RET < 0), STD(RET, 20), CLOSE)

有以下可能:

  1. (RANK(MAX(t1 ** 2), 5)) # 的确是错的
  2. (RANK(MAX(t1 ** 2, 5))) # 即求的是MAX(..., 5)
  3. (RANK(TSMAX(t1 ** 2, 5))) # 即求的是TSMAX(..., 5)

用哪种还不确定

from ta_cn.

wukan1986 avatar wukan1986 commented on August 19, 2024

我记得网上说Alpha191大量复制于Alpha101,所以我又去找了下101的写法

Alpha#1: (rank(Ts_ArgMax(SignedPower(((returns < 0) ? stddev(returns, 20) : close), 2.), 5)) - 0.5)

所以是TSMAX的可能性更大,不过101中是ts_argmax,这还是有区别的。

如果你也认同是TSMAX,我之后将修改一下

from ta_cn.

huangdongqin avatar huangdongqin commented on August 19, 2024

我记得网上说Alpha191大量复制于Alpha101,所以我又去找了下101的写法

Alpha#1: (rank(Ts_ArgMax(SignedPower(((returns < 0) ? stddev(returns, 20) : close), 2.), 5)) - 0.5)

所以是TSMAX的可能性更大,不过101中是ts_argmax,这还是有区别的。

如果你也认同是TSMAX,我之后将修改一下

我赞同改成RANK(TSMAX(t1**2,5))

from ta_cn.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.