Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

求CR指标,谢谢 #39

Open
gandalf1024 opened this issue Jan 10, 2023 · 1 comment
Open

求CR指标,谢谢 #39

gandalf1024 opened this issue Jan 10, 2023 · 1 comment

Comments

@gandalf1024
Copy link

这是通达信的参数

MID:=REF(HIGH+LOW+CLOSE,1)/3;
CR:SUM(MAX(0,HIGH-MID),N)/SUM(MAX(0,MID-LOW),N)*100,COLORFF7F27;

@mpquant
Copy link
Owner

mpquant commented Mar 5, 2023

def CR(CLOSE,HIGH,LOW, N=20):                   
    MID=REF(HIGH+LOW+CLOSE,1)/3;
    return SUM(MAX(0,HIGH-MID),N)/SUM(MAX(0,MID-LOW),N)*100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants