最新更新 - 网站地图 -
您的当前位置:首页 > 股票公式 > 公式技巧 > 决策密码指标改通达信指标

决策密码指标改通达信指标

来源:网络 点击: 时间:2022-12-17 12:44:47

编写要求:

N 0 1 1 IF(n1<1) { IF(CLOSE>OPEN) RETURN "阳"; ELSE IF(CLOSE=CLOSE[1]) RETURN "阳"; ELSE IF(CLOSE==OPEN AND OPEN<=CLOSE[1]) RETURN "阴"; MONEY; K线换手; } IF(n1>0) { Var1=MONEY/VOL; A=SMA(Var1,5,1)-SMA(Var1,55,1); B=SMA((A-SMA(A,5,1)),5,1); 风险系数:B; aa:=MA(CLOSE,5); 前非红:=IF(REF(CLOSE,1)MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1),1,2); LOWV1:=LLV(LOW,8); HIGHV1:=HHV(HIGH,8); RSV1:=EMA((CLOSE-LOWV1)/(HIGHV1-LOWV1)*100,3); K11:=EMA(RSV1,3); D11:=MA(K11,2); LOWV2:=LLV(LOW,21); HIGHV2:=HHV(HIGH,21); RSV2:=EMA((CLOSE-LOWV2)/(HIGHV2-LOWV2)*100,3); K22:=EMA(RSV2,3); D22:=MA(K22,2); V5:=MA(V,5); V18:=MA(V,18); IF(V>V5 AND V>V18) Ll:=6.5; ELSE Ll:=0; IF(D11>REF(D11,1)) dx:=2.1; ELSE dx:=0; IF(D11<25) dz:=7.6; ELSE IF(D11<28) dz:=6.1; ELSE IF(D11<31) dz:=4.6; ELSE IF(D11<35) dz:=3.1; ELSE IF(D11<40) dz:=1.6; IF(D22<25) dz2:=7.6; ELSE IF(D22<28) dz2:=6.1; ELSE IF(D22<31) dz2:=4.6; ELSE IF(D22<35) dz2:=3.1; ELSE IF(D22<40) dz2:=1.6; zz:=Ll+dx+dz+dz2; MAVOL$0:MA(VOL,2); MAVOL$1:MA(VOL,5); MAVOL$2:MA(VOL,20); RSV1=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; a1=SMA(RSV1,3,1); b1=SMA(a1,3,1); e1=3*a1-2*b1; IF(前非红=1 AND 当红=1 AND zz>16 AND C>O*0.985 AND C>REF(C,1)*0.98)//23 RETURN ("yang"); IF(CLOSE>MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1) AND REF(MAVOL$1,1)MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1)) RETURN ("colorred"); IF(CLOSEREF(A,1) AND B>REF(B,1)) RETURN ("colorwhite"); IF(AREF(A,1) AND BREF(B,1)) RETURN ("colorwhite");

解答:

?VAR1:=AMOUNT/VOL;

A:=SMA(VAR1,5,1)-SMA(VAR1,55,1);?

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

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

    Top