MA1:=MA(C,5);
AA:=MA1*0.98;
BB:=REF(MA1,1)*0.98;
MM:=BARSLAST(REF(C,1)》=REF(MA1,1) AND C《MA1)+1;
NN:=BARSLAST(REF(C,1)》=REF(MA1,1) AND C《MA1);
QQ:=IF((REF(C,1)》=REF(MA1,1)) AND (C《MA1),
IF(REF(MA1,1)《MA1,AA,BB),IF(BARSSINCE(REF(C,1)》=REF(MA1,1)
AND C《MA1)》0,IF(REF(MA1, MM)《 REF(MA1,NN),REF(MA1,NN)*0.98,
REF(MA1,MM)*0.98), REF(MA1,1)));
MA5:=MA(C,5);
A51:= REF(MA5,1)*0.98;
A52:= REF(MA5,2)*0.98;
B52:= BARSLAST(REF(C,2)》=REF(MA5,2) AND REF(C,1)《REF(MA5,1))+2;
B51:= BARSLAST(REF(C,2)》=REF(MA5,2) AND REF(C,1)《REF(MA5,1))+1;
DZ:=IF((REF(C,2)》=REF(MA5,2)) AND (REF(C,1)《REF(MA5,1)),
IF(REF(MA5,2)《REF(MA5,1),A51,A52),IF(BARSSINCE(REF(C,2)》=REF(MA5,2)
AND REF(C,1)《REF(MA5,1))》0,IF(REF(MA5, B52)《 REF(MA5, B51),
REF(MA5,B51)*0.98, REF(MA5,B52)*0.98), REF(MA5,1)));
开涨:CLOSE》REF(QQ,1) AND REF(QQ,2)》REF(DZ,2);
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!