最新更新 - 网站地图 -
您的当前位置:首页 > 股票公式 > 公式技巧 > 编一个(红线金叉白线)预警选股公式

编一个(红线金叉白线)预警选股公式

来源:网络 点击: 时间:2023-01-07 03:11:50

编写要求:

VAR1:=1; VAR2:=((((2*CLOSE)+HIGH)+LOW) / 4); 高位:90,COLORFFFF00; 低位:20,COLORFFFF00; VAR4:=LLV(LOW,5); VAR5:=HHV(HIGH,4); C1:(EMA((((VAR2-VAR4)/(VAR5-VAR4))*100),4)*VAR1),COLORFF00FF; C2:(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*VAR1),COLORFFFFFF; DRAWICON(CROSS(C1,C2) AND C2>0,C2,1); DRAWICON(CROSS(C2,C1) AND C2<-100,C1,2); DRAWICON(CROSS(C1,C2) AND C2<0,C2,1); DRAWICON(CROSS(C2,C1) AND C2>-100,C1,2); 条件:=CROSS(C1,C2) AND C1<40; 条件0:=CROSS(C2,C1) AND C1>90; TJ1:=CROSS(C1,C2); TJ2:=CROSS(C2,C1); TJ3:=CROSS(C1,C2) AND REF(C1,1)<20; TJ4:=CROSS(C2,C1) AND REF(C1,1)>80; DRAWTEXT(FILTER((REF(条件,1) AND (REF(LOW,1)>LOW OR TJ2)) OR (REF(条件,2) AND (REF(LOW,2)>LLV(LOW,3) OR TJ2)) OR (REF(条件,3) AND (REF(LOW,3)>LLV(LOW,4) OR TJ2)),4),50,'止'),COLORGREEN; DRAWTEXT(条件,20,'买'),COLORWHITE; DRAWTEXT(条件0,85,'卖'),COLORYELLOW; DRAWTEXT(CROSS(C1,75),70,'危险区'),COLORBLUE; DRAWTEXT(TJ3,65,'安'),COLORRED; DRAWTEXT(TJ3,56,'全'),COLORRED; DRAWTEXT(TJ3,47,'买'),COLORRED; DRAWTEXT(TJ4,85,'逃顶'),COLORYELLOW; DRAWTEXT(ISLASTBAR,88,'清仓'),COLORYELLOW; DRAWTEXT(ISLASTBAR,80,'减仓'),COLORYELLOW; DRAWTEXT(ISLASTBAR,50,'控盘'),COLORWHITE; DRAWTEXT(ISLASTBAR,20,'吸筹'),COLORGREEN;

解答:

?VAR1:=1;

VAR2:=((((2*CLOSE)+HIGH)+LOW) / 4);

    Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号

    免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!

    Top